HDK
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
GA_DataBitArrayTuple Class Reference

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_DataBitArraygetData (int tuple_index)
 
const GA_DataBitArraygetData (int tuple_index) const
 
void defragment (const GA_Defragment &defrag)
 

Detailed Description

A tuple of bit arrays.

This class maintains a tuple of bit arrays.

See Also
GA_DataBitArray, GA_DataArrayTuple

Definition at line 34 of file GA_DataBitArrayTuple.h.

Constructor & Destructor Documentation

GA_DataBitArrayTuple::GA_DataBitArrayTuple ( )
GA_DataBitArrayTuple::~GA_DataBitArrayTuple ( )

Member Function Documentation

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.

GA_DataBitArray* GA_DataBitArrayTuple::getData ( int  tuple_index)
inline

Definition at line 67 of file GA_DataBitArrayTuple.h.

const GA_DataBitArray* GA_DataBitArrayTuple::getData ( int  tuple_index) const
inline

Definition at line 69 of file GA_DataBitArrayTuple.h.

int64 GA_DataBitArrayTuple::getMemoryUsage ( bool  inclusive) const

Report memory usage.

int GA_DataBitArrayTuple::getTupleSize ( ) const
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 
)
void GA_DataBitArrayTuple::setArraySize ( GA_Offset  size)

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.


The documentation for this class was generated from the following file: