4#include <cgv/type/standard_types.h>
5#include <cgv/type/lib_begin.h>
80extern CGV_API
TypeId get_new_type_id();
87 static TypeId get_id() {
static TypeId ti = get_new_type_id();
return ti; }
119#include <cgv/config/lib_end.h>
complete implementation of method actions that only call one method when entering a node
TypeId get_type_id(const std::string &_type_name)
function that returns the type id of a type name
unsigned int get_type_size(TypeId tid)
function that returns the size of a type specified through TypeId
const char * get_type_name(TypeId tid)
function that returns the name of a type specified through TypeId
bool is_unsigned_integral(TypeId tid)
query if a kind is an unsigned integral type
TypeId
ids for the different types and type constructs
@ TI_FIRST
alias for character type
@ TI_INT16
signed integer stored in 8 bits
@ TI_INT32
signed integer stored in 16 bits
@ TI_STRING
wide character type
@ TI_TYPENAME
a type definition
@ TI_FUNCTION
function or method signature
@ TI_WCHAR
floating point type stored in 64 bits
@ TI_ARRAY
pointer type construct
@ TI_CLASSNAME
an undefined typename used as template parameter
@ TI_INSTANCE
constructor of a compound
@ TI_FIRST_TYPE
always the last standard type
@ TI_CHAR
always the index after the last type construct
@ TI_FLT32
floating point type stored in 16 bits
@ TI_TEMPLATE
an undefined class name used as template parameter
@ TI_MEMBER
base type of a compound type
@ TI_POINTER
reference type construct
@ TI_LAST_TYPE
always the first standard type
@ TI_CONST
union type compound
@ TI_BIT
used for undefined type
@ TI_UINT32
unsigned integer stored in 16 bits
@ TI_UINT8
signed integer stored in 64 bits
@ TI_METHOD
member of a compound
@ TI_SIGNATURE
function or method parameter
@ TI_INT64
signed integer stored in 32 bits
@ TI_CLASS
struct type compound
@ TI_TYPEDEF
an instance not a type
@ TI_FUNCTION_POINTER
array type construct
@ TI_METHOD_POINTER
member pointer type construct
@ TI_STRUCT
method pointer type construct
@ TI_FLT16
unsigned integer stored in 64 bits
@ TI_BASE
function not a function pointer
@ TI_MEMBER_POINTER
function pointer type construct
@ TI_CONSTRUCTOR
method of a compound, not a method pointer
@ TI_FIRST_STD_TYPE
always the first type construct
@ TI_EXPRESSION
const modifier
@ TI_UNION
class type compound
@ TI_UINT16
unsigned integer stored in 8 bits
@ TI_FLT64
floating point type stored in 32 bits
@ TI_UINT64
unsigned integer stored in 32 bits
@ TI_REFERENCE
all enum types
@ TI_LAST_STD_TYPE
always the first standard type
@ TI_PARAMETER
expression used for default parameters
@ TI_LAST
a template construct
wchar_t wchar_type
wide character type
template with a static member function get_id() of type TypeId returning the TypeId of the template a...