ILGPU  0.9.0
ILGPU.IR.Types.TypeConverter< TType > Class Template Referenceabstract

A converter adapter to convert nested types within structures. More...

Inheritance diagram for ILGPU.IR.Types.TypeConverter< TType >:
ILGPU.IR.Types.ITypeConverter< TypeNode > ILGPU.IR.Types.TypeLowering< TType >

Public Member Functions

TypeNode ConvertType< TTypeContext > (TTypeContext typeContext, TypeNode type)
 Converts the given type node. More...
 
int GetNumFields (TypeNode type)
 Resolves the number of element fields per type instance. More...
 
- Public Member Functions inherited from ILGPU.IR.Types.ITypeConverter< TypeNode >
TypeNode ConvertType< TTypeContext > (TTypeContext typeContext, TType type)
 Converts the given type node. More...
 
int GetNumFields (TType type)
 Resolves the number of element fields per type instance. More...
 

Protected Member Functions

 TypeConverter ()
 Constructs a new type converter. More...
 
abstract TypeNode ConvertType< TTypeContext > (TTypeContext typeContext, TType type)
 Converts the given type node. More...
 
abstract int GetNumFields (TType type)
 Resolves the number of element fields per type instance. More...
 

Detailed Description

A converter adapter to convert nested types within structures.

Template Parameters
TTypeThe node type.
Type Constraints
TType :TypeNode 

Constructor & Destructor Documentation

Constructs a new type converter.

Member Function Documentation

abstract TypeNode ILGPU.IR.Types.TypeConverter< TType >.ConvertType< TTypeContext > ( TTypeContext  typeContext,
TType  type 
)
protectedpure virtual

Converts the given type node.

Template Parameters
TTypeContextThe type context to use.
Parameters
typeContextThe type context instance to use.
typeThe type to convert.
Returns
The converted type.
Type Constraints
TTypeContext :IIRTypeContext 
TypeNode ILGPU.IR.Types.TypeConverter< TType >.ConvertType< TTypeContext > ( TTypeContext  typeContext,
TypeNode  type 
)

Converts the given type node.

Template Parameters
TTypeContextThe type context to use.
Parameters
typeContextThe type context instance to use.
typeThe type to convert.
Returns
The converted type.
Type Constraints
TTypeContext :IIRTypeContext 
TTypeContext :type 
TTypeContext :switch 
abstract int ILGPU.IR.Types.TypeConverter< TType >.GetNumFields ( TType  type)
protectedpure virtual

Resolves the number of element fields per type instance.

Parameters
typeThe parent type.
int ILGPU.IR.Types.TypeConverter< TType >.GetNumFields ( TypeNode  type)

Resolves the number of element fields per type instance.

Parameters
typeThe parent type.

The documentation for this class was generated from the following file: