HDK
|
A tuple of bit arrays. More...
#include <GA_DataBitArrayTuple.h>
Public Member Functions | |
GA_DataBitArrayTuple () | |
~GA_DataBitArrayTuple () | |
int64 | getMemoryUsage (bool inclusive) const |
Report memory usage. More... | |
void | countMemory (UT_MemoryCounter &counter, bool inclusive) const |
void | setTupleSize (int tuple_size, GA_Offset array_size, const GA_Defaults &defs) |
Setting the tuple size requires the array_size and the defaults. More... | |
void | setArraySize (GA_Offset size) |
This method grows each array of the tuple. More... | |
GA_Offset | getArraySize () const |
This method queries the (common) size of the arrays. More... | |
void | mergeGrowArrayAndCopy (const GA_MergeMap &map, GA_AttributeOwner owner, const GA_DataBitArrayTuple &src) |
int | getTupleSize () const |
GA_DataBitArray * | getData (int tuple_index) |
const GA_DataBitArray * | getData (int tuple_index) const |
void | defragment (const GA_Defragment &defrag) |
A tuple of bit arrays.
This class maintains a tuple of bit arrays.
Definition at line 34 of file GA_DataBitArrayTuple.h.
GA_DataBitArrayTuple::GA_DataBitArrayTuple | ( | ) |
GA_DataBitArrayTuple::~GA_DataBitArrayTuple | ( | ) |
void GA_DataBitArrayTuple::countMemory | ( | UT_MemoryCounter & | counter, |
bool | inclusive | ||
) | const |
Count memory usage using a UT_MemoryCounter in order to count shared memory correctly. If inclusive is true, the size of this object is counted, else only memory owned by this object is counted. If this is pointed to by the calling object, inclusive should be true. If this is contained in the calling object, inclusive should be false. (Its memory was already counted in the size of the calling object.)
void GA_DataBitArrayTuple::defragment | ( | const GA_Defragment & | defrag | ) |
Interface for defragmentation
GA_Offset GA_DataBitArrayTuple::getArraySize | ( | ) | const |
This method queries the (common) size of the arrays.
|
inline |
Definition at line 67 of file GA_DataBitArrayTuple.h.
|
inline |
Definition at line 69 of file GA_DataBitArrayTuple.h.
int64 GA_DataBitArrayTuple::getMemoryUsage | ( | bool | inclusive | ) | const |
Report memory usage.
|
inline |
Definition at line 66 of file GA_DataBitArrayTuple.h.
void GA_DataBitArrayTuple::mergeGrowArrayAndCopy | ( | const GA_MergeMap & | map, |
GA_AttributeOwner | owner, | ||
const GA_DataBitArrayTuple & | src | ||
) |
This method grows each array of the tuple.
void GA_DataBitArrayTuple::setTupleSize | ( | int | tuple_size, |
GA_Offset | array_size, | ||
const GA_Defaults & | defs | ||
) |
Setting the tuple size requires the array_size and the defaults.