TypeFuncPtr

Pointer to function type.

class TypeFuncPtr : Type {}

Inherited Members

From Type

next
Type next;

The next type in the type structure.

tid
TYP tid;

The ID of the type.

symbol
Symbol symbol;

Not null if this type has a symbol.

mangled
cstring mangled;

The mangled identifier of the type.

to
Class to()

Casts the type to Class.

mangledTypeInfoIdent
Identifier* mangledTypeInfoIdent(IdTable idtable)

Returns the mangled TypeInfo identifier for this type.

baseType
Type baseType()

Returns the base type if this is an enum or typedef, or itself otherwise.

hasBaseType
bool hasBaseType()

Returns true if this type has a base type (enum or typedef.)

opEquals
bool opEquals(Type other)

Returns true if this type equals the other one.

ptrTo
TypePointer ptrTo()

Returns a pointer type to this type.

arrayOf
TypeDArray arrayOf()

Returns a dynamic array type using this type as its base.

arrayOf
TypeAArray arrayOf(Type key)

Returns an associative array type using this type as its base.

arrayOf
TypeSArray arrayOf(size_t size)

Returns a static array type using this type as its base.

sizeOf
size_t sizeOf(TargetTInfo tti = null)

Returns the byte size of this type. Returns 0 if it could not be determined.

alignSizeOf
size_t alignSizeOf(TargetTInfo tti = null)

Returns the align size of this type. Returns 0 if it could not be determined.

flagsOf
TypeFlags flagsOf()

Returns the flags of this type.

hasBoolVal
bool hasBoolVal()

Returns true if this type has a boolean value.

isZeroInit
bool isZeroInit()

Returns true if this type is initialized with zero(s).

hasSymbol
bool hasSymbol()

Returns true if this type has a symbol.

toText
cstring toText()

Returns the type as a human-readable string.

isError
bool isError()

Returns true if error type.

isDArray
bool isDArray()

Returns true if dynamic array type.

isSArray
bool isSArray()

Returns true if static array type.

isAArray
bool isAArray()

Returns true if associative array type.

isParameter
bool isParameter()

Returns true if parameter type.

isParameters
bool isParameters()

Returns true if parameters type.

isEnum
bool isEnum()

Returns true if enum type.

isStruct
bool isStruct()

Returns true if struct type.

isClass
bool isClass()

Returns true if class type.

isTypedef
bool isTypedef()

Returns true if typedef type.

isFunction
bool isFunction()

Returns true if function type.

isDelegate
bool isDelegate()

Returns true if Delegate type.

isPointer
bool isPointer()

Returns true if pointer type.

isReference
bool isReference()

Returns true if reference type.

isIdentifier
bool isIdentifier()

Returns true if identifier type.

isTInstance
bool isTInstance()

Returns true if template instance type.

isTuple
bool isTuple()

Returns true if tuple type.

isConst
bool isConst()

Returns true if const type. D2.

isImmutable
bool isImmutable()

Returns true if immutable type. D2.

isDorSArray
bool isDorSArray()

Returns true if dynamic or static array type.

isBool
bool isBool()

Returns true if bool type.

isBaseBool
bool isBaseBool()

Like isBool(). Also checks base types of typedef/enum.

isSigned
bool isSigned()

Returns true if the type is signed.

isUnsigned
bool isUnsigned()

Returns true if the type is unsigned.

isBasic
bool isBasic()

Returns true if this is a basic type.

isIntegral
bool isIntegral()

Returns true if this type is an integral number type.

isFloating
bool isFloating()

Returns true if this type is a floating point number type.

isBaseFloating
bool isBaseFloating()

Like isFloating(). Also checks base types of typedef/enum.

isReal
bool isReal()

Returns true if this type is a real number type.

isBaseReal
bool isBaseReal()

Like isReal(). Also checks base types of typedef/enum.

isImaginary
bool isImaginary()

Returns true if this type is an imaginary number type.

isBaseImaginary
bool isBaseImaginary()

Like isImaginary(). Also checks base types of typedef/enum.

isComplex
bool isComplex()

Returns true if this type is a complex number type.

isBaseComplex
bool isBaseComplex()

Like isComplex(). Also checks base types of typedef/enum.

isScalar
bool isScalar()

Returns true for scalar types.

isBaseScalar
bool isBaseScalar()

Like isScalar(). Also checks base types of typedef/enum.

mangleChar
char mangleChar()

Returns the mangle character for this type.

toMangle
cstring toMangle()

Returns the mangled name of this type.

Meta