iz.rtti

The iz Runtime type informations.

Members

Aliases

TypeCtors
alias TypeCtors = EnumSet!(TypeCtor, Set8)

Set of TypeCtor.

Enums

RtType
enum RtType

Enumerates the types supported by the Rtti

StructType
enum StructType

Enumerates the special struct type recognized by the Rtti

TypeCtor
enum TypeCtor

Enumerates the type constructors

Functions

getRtti
const(Rtti)* getRtti(const(char)[] typeString)

Returns the Rtti for the type that has its .stringof property equal to typeString.

getRtti
const(Rtti)* getRtti(auto ref B b)

Registers and returns the Rtti for the type (or the variable) passed as argument.

isPublisingStruct
bool isPublisingStruct(const(Rtti)* ti)

Returns true if the Rtti passed as argument are for a "publising" struct.

size
ubyte size(RtType type)

Indicates the size of a variable according to its RtType

typeString
string typeString(T t)

Returns the identifier of a type.

Structs

AAInfo
struct AAInfo

Runtime information for the associative arrays

BinTraits
struct BinTraits

Runtime information for a struct that can be saved and reloaded from an array of bytes.

ClassInfo
struct ClassInfo

Runtime information for the classes.

EnumInfo
struct EnumInfo

Runtime information for the enums.

FunPtrInfo
struct FunPtrInfo

Runtime information for the function pointers.

GenericEnum
struct GenericEnum

used as a wildcard to represent any enum.

GenericFunPtr
struct GenericFunPtr

not reall used...

GenericStruct
struct GenericStruct

used as a wildcard to represent any struct.

GenericUnion
struct GenericUnion

used as a wildcard to represent any union.

PointerInfo
struct PointerInfo

Runtime information for the pointers

PubTraits
struct PubTraits

Runtime information for a struct that has the traits of a PropertyPublisher.

Rtti
struct Rtti

Runtime type information

StructInfo
struct StructInfo

Runtime information for the structs.

TextTraits
struct TextTraits

Runtime information for a struct that can be saved and reloaded from a string

UnionInfo
struct UnionInfo

Runtime information for the unions.

Templates

isBasicRtType
template isBasicRtType(T)

Indicates if T is a basic runtime type (fixed length, not array, no type identifier)

Meta