HDK
|
Holds all of the memory for execution state of a compiled APEX graph. More...
#include <APEX_Buffer.h>
Public Member Functions | |
APEX_Buffer () | |
void | clear () |
APEX_TypedBuffer * | findTypedBuffer (const APEX_TypeDefinitionBase *type_defn) |
Get the type-specific storage for a given type, or nullptr if not found. More... | |
APEX_TypedBuffer * | getTypedBuffer (exint index) |
exint | typeIndex (const APEX_TypeDefinitionBase *type_defn) |
Get the index at which a given type is stored in this buffer, or -1 if not present. More... | |
exint | allocate (const APEX_TypeDefinitionBase *type_defn, exint size) |
APEX_Argument | append (const APEX_TypeDefinitionBase *type_defn) |
Extend the type-specific storage buffer of the given type by one element and return an ApexArgument tracking it. More... | |
void | set (APEX_Argument &arg, void *value) |
Set the value of the given argument in this buffer to the value. The type of the argument must support copying. More... | |
void | lock () |
Prevent further modifications to the layout of this buffer. More... | |
Static Public Member Functions | |
static APEX_DataID | nextDataId () |
Get a new unique data ID. More... | |
Holds all of the memory for execution state of a compiled APEX graph.
Definition at line 96 of file APEX_Buffer.h.
|
inline |
Definition at line 99 of file APEX_Buffer.h.
|
inline |
Allocate a type-specific storage buffer of the given type of the given size. Returns the index of the new storage.
Definition at line 148 of file APEX_Buffer.h.
APEX_Argument apex::APEX_Buffer::append | ( | const APEX_TypeDefinitionBase * | type_defn | ) |
Extend the type-specific storage buffer of the given type by one element and return an ApexArgument tracking it.
|
inline |
Definition at line 105 of file APEX_Buffer.h.
|
inline |
Get the type-specific storage for a given type, or nullptr
if not found.
Definition at line 112 of file APEX_Buffer.h.
|
inline |
Definition at line 122 of file APEX_Buffer.h.
|
inline |
Prevent further modifications to the layout of this buffer.
Definition at line 167 of file APEX_Buffer.h.
|
static |
Get a new unique data ID.
void apex::APEX_Buffer::set | ( | APEX_Argument & | arg, |
void * | value | ||
) |
Set the value of the given argument in this buffer to the value. The type of the argument must support copying.
|
inline |
Get the index at which a given type is stored in this buffer, or -1 if not present.
Definition at line 130 of file APEX_Buffer.h.