|
HDK
|
#include <APEX_Types.h>
Inheritance diagram for apex::APEX_TypeDefinitionBase:Public Member Functions | |
| virtual | ~APEX_TypeDefinitionBase () |
| virtual size_t | sizeT () const =0 |
| Return the size of a single instance of the type, or 0 if the type is not well-defined (i.e. a void). More... | |
| virtual const UT_StringRef & | repr () const =0 |
| Return a human-readable string representing the type. More... | |
| virtual void * | allocate (exint size) const =0 |
| virtual exint | append (void *mem) const =0 |
| virtual void | clear (void *mem) const =0 |
| Reset the instance of this type (member of buffer created in allocate) to a default value if possible. More... | |
| virtual void | deallocate (void *mem) const =0 |
| Free a resizable array created by allocate. More... | |
| virtual void * | getPtrAtIndex (void *mem, exint index) const =0 |
Get a pointer to the {index}-th value in the resizable array created by allocate stored at mem. More... | |
| virtual bool | compile (APEX_Buffer *buffer, APEX_Graph *graph, APEX_PortID port) const =0 |
| virtual void | setData (void *mem, const void *val) const =0 |
Copy the value at val to mem. More... | |
| virtual const APEX_TypeDefinitionBase * | subTypeDef () const =0 |
| If this is a compound type (such as variadics), return the type definition for the contained type. More... | |
| virtual std::type_index | typeIndex () const =0 |
| Return the RTTI information for the contained type. More... | |
| virtual bool | isCopyable () const =0 |
| Return whether the type is copy-assignable (i.e. can setData function). More... | |
| virtual bool | isArray () const |
| Return whether the type is an array. More... | |
| virtual bool | isVariadic () const |
| Return whether the type is a variadic arg. More... | |
| virtual bool | isHandle () const |
| Return whether the type is a handle to some shared data (i.e. geometry) More... | |
Definition at line 54 of file APEX_Types.h.
|
inlinevirtual |
Definition at line 57 of file APEX_Types.h.
Allocate a resizable array of the type. The current implementation uses a UT_Array behind-the-scenes, however the implementation is type-erased to allow flexibility.
Implemented in apex::APEX_TypeDefinition< T >, and apex::APEX_VoidTypeDefinition.
Append a default-constructed instance to the array previously allocated by allocate. If no allocation could be performed, return -1.
Implemented in apex::APEX_TypeDefinition< T >, and apex::APEX_VoidTypeDefinition.
Reset the instance of this type (member of buffer created in allocate) to a default value if possible.
Implemented in apex::APEX_TypeDefinition< T >, and apex::APEX_VoidTypeDefinition.
|
pure virtual |
Implemented in apex::APEX_TypeDefinition< T >, and apex::APEX_VoidTypeDefinition.
Free a resizable array created by allocate.
Implemented in apex::APEX_TypeDefinition< T >, and apex::APEX_VoidTypeDefinition.
|
pure virtual |
Get a pointer to the {index}-th value in the resizable array created by allocate stored at mem.
Implemented in apex::APEX_TypeDefinition< T >, and apex::APEX_VoidTypeDefinition.
|
inlinevirtual |
Return whether the type is an array.
Reimplemented in apex::APEX_TypeDefinition< T >.
Definition at line 87 of file APEX_Types.h.
|
pure virtual |
Return whether the type is copy-assignable (i.e. can setData function).
Implemented in apex::APEX_TypeDefinition< T >, and apex::APEX_VoidTypeDefinition.
|
inlinevirtual |
Return whether the type is a handle to some shared data (i.e. geometry)
Reimplemented in apex::APEX_TypeDefinition< T >.
Definition at line 91 of file APEX_Types.h.
|
inlinevirtual |
Return whether the type is a variadic arg.
Reimplemented in apex::APEX_TypeDefinition< T >.
Definition at line 89 of file APEX_Types.h.
|
pure virtual |
Return a human-readable string representing the type.
Implemented in apex::APEX_TypeDefinition< T >, and apex::APEX_VoidTypeDefinition.
|
pure virtual |
Copy the value at val to mem.
Implemented in apex::APEX_VoidTypeDefinition.
|
pure virtual |
Return the size of a single instance of the type, or 0 if the type is not well-defined (i.e. a void).
Implemented in apex::APEX_TypeDefinition< T >, and apex::APEX_VoidTypeDefinition.
|
pure virtual |
If this is a compound type (such as variadics), return the type definition for the contained type.
Implemented in apex::APEX_TypeDefinition< T >, and apex::APEX_VoidTypeDefinition.
|
pure virtual |
Return the RTTI information for the contained type.
Implemented in apex::APEX_TypeDefinition< T >, and apex::APEX_VoidTypeDefinition.