|
HDK
|
#include <APEX_Types.h>
Inheritance diagram for apex::APEX_TypeDefinition< T >:Public Types | |
| typedef T | value_type |
Public Member Functions | |
| APEX_TypeDefinition (const UT_StringLit &&type_name) | |
| ~APEX_TypeDefinition () override | |
| const UT_StringRef & | repr () const override |
| Return a human-readable string representing the type. More... | |
| size_t | sizeT () const override |
| Return the size of a single instance of the type, or 0 if the type is not well-defined (i.e. a void). More... | |
| exint | entries (void *mem) const |
| void * | allocate (exint size) const override |
| void | clear (void *mem) const override |
| Reset the instance of this type (member of buffer created in allocate) to a default value if possible. More... | |
| exint | append (void *mem) const override |
| void | deallocate (void *mem) const override |
| Free a resizable array created by allocate. More... | |
| void * | getPtrAtIndex (void *mem, exint index) const override |
Get a pointer to the {index}-th value in the resizable array created by allocate stored at mem. More... | |
| void | setData (SYS_MAYBE_UNUSED void *mem, SYS_MAYBE_UNUSED const void *val) const override |
| bool | compile (APEX_Buffer *buffer, APEX_Graph *graph, APEX_PortID port) const override |
| std::type_index | typeIndex () const override |
| Return the RTTI information for the contained type. More... | |
| bool | isCopyable () const override |
| Return whether the type is copy-assignable (i.e. can setData function). More... | |
| bool | isArray () const override |
| Return whether the type is an array. More... | |
| bool | isVariadic () const override |
| Return whether the type is a variadic arg. More... | |
| bool | isHandle () const override |
| Return whether the type is a handle to some shared data (i.e. geometry) More... | |
| const APEX_TypeDefinitionBase * | subTypeDef () const override |
| If this is a compound type (such as variadics), return the type definition for the contained type. More... | |
Public Member Functions inherited from apex::APEX_TypeDefinitionBase | |
| virtual | ~APEX_TypeDefinitionBase () |
| virtual void | setData (void *mem, const void *val) const =0 |
Copy the value at val to mem. More... | |
Definition at line 305 of file APEX_Types.h.
| typedef T apex::APEX_TypeDefinition< T >::value_type |
Definition at line 332 of file APEX_Types.h.
|
inline |
Definition at line 308 of file APEX_Types.h.
|
inlineoverride |
Definition at line 330 of file APEX_Types.h.
|
inlineoverridevirtual |
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.
Implements apex::APEX_TypeDefinitionBase.
Definition at line 347 of file APEX_Types.h.
|
inlineoverridevirtual |
Append a default-constructed instance to the array previously allocated by allocate. If no allocation could be performed, return -1.
Implements apex::APEX_TypeDefinitionBase.
Definition at line 357 of file APEX_Types.h.
|
inlineoverridevirtual |
Reset the instance of this type (member of buffer created in allocate) to a default value if possible.
Implements apex::APEX_TypeDefinitionBase.
Definition at line 352 of file APEX_Types.h.
|
inlineoverridevirtual |
Implements apex::APEX_TypeDefinitionBase.
Definition at line 398 of file APEX_Types.h.
|
inlineoverridevirtual |
Free a resizable array created by allocate.
Implements apex::APEX_TypeDefinitionBase.
Definition at line 374 of file APEX_Types.h.
|
inline |
Return number of definitions present in the provided memory block.
Definition at line 340 of file APEX_Types.h.
|
inlineoverridevirtual |
Get a pointer to the {index}-th value in the resizable array created by allocate stored at mem.
Implements apex::APEX_TypeDefinitionBase.
Definition at line 380 of file APEX_Types.h.
|
inlineoverridevirtual |
Return whether the type is an array.
Reimplemented from apex::APEX_TypeDefinitionBase.
Definition at line 406 of file APEX_Types.h.
|
inlineoverridevirtual |
Return whether the type is copy-assignable (i.e. can setData function).
Implements apex::APEX_TypeDefinitionBase.
Definition at line 404 of file APEX_Types.h.
|
inlineoverridevirtual |
Return whether the type is a handle to some shared data (i.e. geometry)
Reimplemented from apex::APEX_TypeDefinitionBase.
Definition at line 408 of file APEX_Types.h.
|
inlineoverridevirtual |
Return whether the type is a variadic arg.
Reimplemented from apex::APEX_TypeDefinitionBase.
Definition at line 407 of file APEX_Types.h.
|
inlineoverridevirtual |
Return a human-readable string representing the type.
Implements apex::APEX_TypeDefinitionBase.
Definition at line 334 of file APEX_Types.h.
|
inlineoverride |
Definition at line 386 of file APEX_Types.h.
|
inlineoverridevirtual |
Return the size of a single instance of the type, or 0 if the type is not well-defined (i.e. a void).
Implements apex::APEX_TypeDefinitionBase.
Definition at line 336 of file APEX_Types.h.
|
inlineoverridevirtual |
If this is a compound type (such as variadics), return the type definition for the contained type.
Implements apex::APEX_TypeDefinitionBase.
Definition at line 410 of file APEX_Types.h.
|
inlineoverridevirtual |
Return the RTTI information for the contained type.
Implements apex::APEX_TypeDefinitionBase.
Definition at line 403 of file APEX_Types.h.