HDK
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
typeRegistry.h File Reference
+ Include dependency graph for typeRegistry.h:

Go to the source code of this file.

Classes

class  TsTypeRegistry
 Type registry which provides a mapping from dynamically typed objects to statically typed internal ones. More...
 

Macros

#define TS_REGISTER_TYPE(TYPE)
 

Macro Definition Documentation

#define TS_REGISTER_TYPE (   TYPE)
Value:
TsTypeRegistry &reg = TsTypeRegistry::GetInstance(); \
reg.RegisterTypedDataFactory<TYPE>( \
[](Ts_PolymorphicDataHolder *holder, const VtValue &value) { \
holder->New(value.Get<TYPE>()); \
}); \
}
GLsizei const GLfloat * value
Definition: glcorearb.h:824
Type registry which provides a mapping from dynamically typed objects to statically typed internal on...
Definition: typeRegistry.h:48
static TS_API TsTypeRegistry & GetInstance()
Return the single instance of TsTypeRegistry.
Definition: typeRegistry.h:55
Definition: core.h:1131
Definition: value.h:164
#define TF_REGISTRY_FUNCTION(KEY_TYPE)

Definition at line 96 of file typeRegistry.h.