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

GT Data Array for booleans. More...

#include <GT_DABool.h>

+ Inheritance diagram for GT_DABool:

Public Member Functions

 GT_DABool (GT_Size array_size, GT_Size tuple_size=1, GT_Type type=GT_TYPE_NONE)
 
virtual ~GT_DABool ()
 
bool getBit (GT_Offset i, GT_Size tidx=0) const
 Get the bit at the given index. More...
 
bool setBit (GT_Offset i, bool v, GT_Size tidx=0)
 Set the bit at the given index – returns the previous value. More...
 
void setAllBits (bool v, GT_Size tidx=0)
 
virtual const char * className () const
 
virtual GT_DataArrayHandle harden () const
 
virtual GT_Size entries () const
 
virtual GT_Storage getStorage () const
 
virtual GT_Size getTupleSize () const
 
virtual int64 getMemoryUsage () const
 
virtual GT_Type getTypeInfo () const
 
virtual uint8 getU8 (GT_Offset i, int tidx=0) const
 
virtual int32 getI32 (GT_Offset i, int tidx=0) const
 
virtual int64 getI64 (GT_Offset i, int tidx=0) const
 
virtual fpreal16 getF16 (GT_Offset i, int tidx=0) const
 
virtual fpreal32 getF32 (GT_Offset i, int tidx=0) const
 
virtual fpreal64 getF64 (GT_Offset i, int tidx=0) const
 
virtual GT_String getS (GT_Offset, int) const
 
virtual GT_Size getStringIndexCount () const
 
virtual GT_Offset getStringIndex (GT_Offset, int) const
 
virtual void getIndexedStrings (UT_StringArray &, UT_IntArray &) const
 
- Public Member Functions inherited from GT_DataArray
 GT_DataArray ()
 
 GT_DataArray (const GT_DataArray &src)
 
virtual ~GT_DataArray ()
 
virtual bool hasArrayEntries () const
 Returns "true" if each entry is an array. More...
 
virtual bool getPointerAliasing (const void *data) const
 Return "true" if there's pointer aliasing. More...
 
virtual bool isValid () const
 Data array is valid; can be sampled from. More...
 
virtual int64 getDataId () const
 
virtual void getStrings (UT_StringArray &strings) const
 
void fillStrings (std::string *strings, int tuple_idx=0) const
 
virtual void extendedFillArray (uint8 *data, GT_Offset start, GT_Size length, int tsize, int nrepeats, int stride=-1, fpreal black=0, fpreal white=1) const
 
bool isEqual (const GT_DataArray &src) const
 Compare whether two data arrays are equal. More...
 
GT_Storage checkIndexing (GT_IndexingMode mode) const
 Test to see whether the data array requires int32 or int64 indexing. More...
 
void dumpValues (const char *msg=NULL) const
 For debugging, print values to stdout. More...
 
bool save (UT_JSONWriter &w, bool flat=true) const
 
void copyDataId (const GT_DataArray &src)
 
void setDataId (int64 id)
 
virtual void updateGeoDetail (const GU_ConstDetailHandle &dtl, const char *attrib_name, GT_Owner attrib_owner, const int expected_size)
 Update cached data, in case the underlying attribute changed. More...
 
template<typename T >
T getValue (GT_Offset index) const
 Public accessor for POD types. More...
 
template<typename T >
T lerpValue (GT_Offset i0, GT_Offset i1, fpreal t) const
 
template<typename T >
T bilerpValue (GT_Offset u0v0, GT_Offset u1v0, GT_Offset u0v1, GT_Offset u1v1, fpreal u, fpreal v)
 
virtual bool getSA (UT_StringArray &a, GT_Offset offset) const
 
virtual bool getFA32 (UT_ValArray< fpreal32 > &a, GT_Offset offset) const
 
virtual bool getIA32 (UT_ValArray< int32 > &a, GT_Offset offset) const
 
virtual const uint8getU8Array (GT_DataArrayHandle &buffer) const
 
virtual const int32getI32Array (GT_DataArrayHandle &buffer) const
 
virtual const int64getI64Array (GT_DataArrayHandle &buffer) const
 
virtual const fpreal16getF16Array (GT_DataArrayHandle &buffer) const
 
virtual const fpreal32getF32Array (GT_DataArrayHandle &buffer) const
 
virtual const fpreal64getF64Array (GT_DataArrayHandle &buffer) const
 
const fprealgetRealArray (GT_DataArrayHandle &buffer) const
 
void import (GT_Offset idx, int32 *data, GT_Size size=0) const
 
void import (GT_Offset idx, int64 *data, GT_Size size=0) const
 
void import (GT_Offset idx, fpreal16 *data, GT_Size size=0) const
 
void import (GT_Offset idx, fpreal32 *data, GT_Size size=0) const
 
void import (GT_Offset idx, fpreal64 *data, GT_Size size=0) const
 
void import (GT_Offset idx, UT_ValArray< fpreal32 > &data) const
 
void import (GT_Offset idx, UT_ValArray< int32 > &data) const
 
void import (GT_Offset idx, uint8 *data, GT_Size size=0, fpreal black=0, fpreal white=1) const
 
void fillArray (int32 *data, GT_Offset start, GT_Size length, int tsize, int stride=-1) const
 
void fillArray (int64 *data, GT_Offset start, GT_Size length, int tsize, int stride=-1) const
 
void fillArray (fpreal16 *data, GT_Offset start, GT_Size length, int tsize, int stride=-1) const
 
void fillArray (fpreal32 *data, GT_Offset start, GT_Size length, int tsize, int stride=-1) const
 
void fillArray (fpreal64 *data, GT_Offset start, GT_Size length, int tsize, int stride=-1) const
 
void fillArray (uint8 *data, GT_Offset start, GT_Size length, int tsize, int stride=-1, fpreal black=0, fpreal white=1) const
 
void fillVec3BBox (fpreal32 *dest, GT_Offset start, GT_Size length, UT_BoundingBoxF &bbox, int tsize, int stride=-1)
 
void fillVec3BBox (fpreal64 *dest, GT_Offset start, GT_Size length, UT_BoundingBoxD &bbox, int tsize, int stride=-1)
 
virtual void extendedFill (uint8 *data, GT_Offset start, GT_Size length, int tsize, int nrepeats, int stride=-1) const
 
virtual void extendedFill (int32 *data, GT_Offset start, GT_Size length, int tsize, int nrepeats, int stride=-1) const
 
virtual void extendedFill (int64 *data, GT_Offset start, GT_Size length, int tsize, int nrepeats, int stride=-1) const
 
virtual void extendedFill (fpreal16 *data, GT_Offset start, GT_Size length, int tsize, int nrepeats, int stride=-1) const
 
virtual void extendedFill (fpreal32 *data, GT_Offset start, GT_Size length, int tsize, int nrepeats, int stride=-1) const
 
virtual void extendedFill (fpreal64 *data, GT_Offset start, GT_Size length, int tsize, int nrepeats, int stride=-1) const
 
virtual const uint8get (GT_Offset i, uint8 *store, int sz) const
 
virtual const int32get (GT_Offset i, int32 *store, int sz) const
 
virtual const int64get (GT_Offset i, int64 *store, int sz) const
 
virtual const fpreal16get (GT_Offset i, fpreal16 *store, int z) const
 
virtual const fpreal32get (GT_Offset i, fpreal32 *store, int z) const
 
virtual const fpreal64get (GT_Offset i, fpreal64 *store, int z) const
 
virtual void getRange (exint &lo, exint &hi, int tuple_idx=0) const
 
virtual void getRange (fpreal &lo, fpreal &hi, int tidx=0) const
 
- Public Member Functions inherited from UT_IntrusiveRefCounter< GT_DataArray >
SYS_FORCE_INLINE UT_IntrusiveRefCounter ()
 Default constructor: Sets counter to 0. More...
 
SYS_FORCE_INLINE UT_IntrusiveRefCounter (const UT_IntrusiveRefCounter &)
 Copy constructor: Sets counter to 0. More...
 
UT_IntrusiveRefCounteroperator= (const UT_IntrusiveRefCounter &)
 Assignment operator: Does not modify counter. More...
 
SYS_FORCE_INLINE uint32 use_count () const
 Return current counter. More...
 

Protected Member Functions

virtual void doImport (GT_Offset i, uint8 *data, GT_Size sz) const
 
virtual void doImport (GT_Offset i, int32 *data, GT_Size sz) const
 
virtual void doImport (GT_Offset i, int64 *data, GT_Size sz) const
 
virtual void doImport (GT_Offset i, fpreal16 *data, GT_Size sz) const
 
virtual void doImport (GT_Offset i, fpreal32 *data, GT_Size sz) const
 
virtual void doImport (GT_Offset i, fpreal64 *data, GT_Size sz) const
 
virtual void dofillArray (uint8 *buf, GT_Offset start, GT_Size len, int tsize, int stride) const
 
virtual void dofillArray (int32 *buf, GT_Offset start, GT_Size len, int tsize, int stride) const
 
virtual void dofillArray (int64 *buf, GT_Offset start, GT_Size len, int tsize, int stride) const
 
virtual void dofillArray (fpreal16 *buf, GT_Offset start, GT_Size len, int tsize, int stride) const
 
virtual void dofillArray (fpreal32 *buf, GT_Offset start, GT_Size len, int tsize, int stride) const
 
virtual void dofillArray (fpreal64 *buf, GT_Offset start, GT_Size len, int tsize, int stride) const
 
virtual void doFillQuantizedArray (uint8 *data, GT_Offset start, GT_Size length, int tsize, int stride, fpreal, fpreal) const
 
virtual void doExtendedQuantizedFill (uint8 *data, GT_Offset start, GT_Size length, int nrepeats, int tsize, int stride, fpreal black, fpreal white) const
 
- Protected Member Functions inherited from GT_DataArray
SYS_STATIC_FORCE_INLINE GT_Size fixImportTupleSize (GT_Size size, GT_Size tuple_size)
 
template<typename T_POD >
void t_extendedFill (T_POD *dest, GT_Offset start, GT_Size length, int tsize, int nrepeats, int stride) const
 Templated method to fill an array. More...
 
virtual void doImportArray (GT_Offset idx, UT_ValArray< fpreal32 > &data) const
 
virtual void doImportArray (GT_Offset idx, UT_ValArray< int32 > &data) const
 
virtual void doImportQuantized (GT_Offset idx, uint8 *data, GT_Size size, fpreal black, fpreal white) const
 
virtual void doFillArray (uint8 *data, GT_Offset start, GT_Size length, int tuple_size, int stride) const
 
virtual void doFillArray (int32 *data, GT_Offset start, GT_Size length, int tuple_size, int stride) const
 
virtual void doFillArray (int64 *data, GT_Offset start, GT_Size length, int tuple_size, int stride) const
 
virtual void doFillArray (fpreal16 *data, GT_Offset start, GT_Size length, int tuple_size, int stride) const
 
virtual void doFillArray (fpreal32 *data, GT_Offset start, GT_Size length, int tuple_size, int stride) const
 
virtual void doFillArray (fpreal64 *data, GT_Offset start, GT_Size length, int tuple_size, int stride) const
 
virtual void doFillVec3BBox (fpreal32 *dest, GT_Offset start, GT_Size length, UT_BoundingBoxF &bbox, int, int stride)
 
virtual void doFillVec3BBox (fpreal64 *dest, GT_Offset start, GT_Size length, UT_BoundingBoxD &bbox, int, int stride)
 
- Protected Member Functions inherited from UT_IntrusiveRefCounter< GT_DataArray >
SYS_FORCE_INLINE ~UT_IntrusiveRefCounter ()
 Destructor: Only derived classes can destruct this. More...
 

Additional Inherited Members

- Static Public Member Functions inherited from GT_DataArray
static bool isBigInteger (GT_Size size)
 Quick & dirty test to see if a size is bigger than a 32 bit int. More...
 
static voidoperator new (size_t size)
 
static voidoperator new (size_t size, void *p)
 
static void operator delete (void *p, size_t size)
 

Detailed Description

GT Data Array for booleans.

Definition at line 19 of file GT_DABool.h.

Constructor & Destructor Documentation

GT_DABool::GT_DABool ( GT_Size  array_size,
GT_Size  tuple_size = 1,
GT_Type  type = GT_TYPE_NONE 
)
virtual GT_DABool::~GT_DABool ( )
virtual

Member Function Documentation

virtual const char* GT_DABool::className ( void  ) const
inlinevirtual

Virtual interface defined on GT_DataArray

Implements GT_DataArray.

Definition at line 28 of file GT_DABool.h.

virtual void GT_DABool::doExtendedQuantizedFill ( uint8 data,
GT_Offset  start,
GT_Size  length,
int  nrepeats,
int  tsize,
int  stride,
fpreal  black,
fpreal  white 
) const
inlineprotectedvirtual

Virtual interface implemented by calling existing methods

Reimplemented from GT_DataArray.

Definition at line 105 of file GT_DABool.h.

virtual void GT_DABool::dofillArray ( uint8 buf,
GT_Offset  start,
GT_Size  len,
int  tsize,
int  stride 
) const
protectedvirtual
virtual void GT_DABool::dofillArray ( int32 buf,
GT_Offset  start,
GT_Size  len,
int  tsize,
int  stride 
) const
protectedvirtual
virtual void GT_DABool::dofillArray ( int64 buf,
GT_Offset  start,
GT_Size  len,
int  tsize,
int  stride 
) const
protectedvirtual
virtual void GT_DABool::dofillArray ( fpreal16 buf,
GT_Offset  start,
GT_Size  len,
int  tsize,
int  stride 
) const
protectedvirtual
virtual void GT_DABool::dofillArray ( fpreal32 buf,
GT_Offset  start,
GT_Size  len,
int  tsize,
int  stride 
) const
protectedvirtual
virtual void GT_DABool::dofillArray ( fpreal64 buf,
GT_Offset  start,
GT_Size  len,
int  tsize,
int  stride 
) const
protectedvirtual
virtual void GT_DABool::doFillQuantizedArray ( uint8 data,
GT_Offset  start,
GT_Size  length,
int  tsize,
int  stride,
fpreal  ,
fpreal   
) const
inlineprotectedvirtual

Virtual interface implemented by calling existing methods

Reimplemented from GT_DataArray.

Definition at line 99 of file GT_DABool.h.

virtual void GT_DABool::doImport ( GT_Offset  i,
uint8 data,
GT_Size  sz 
) const
protectedvirtual

{@ Import data

Reimplemented from GT_DataArray.

virtual void GT_DABool::doImport ( GT_Offset  idx,
int32 data,
GT_Size  size 
) const
protectedvirtual

Virtual implementation for inline methods. Note that doImport is for tuple data, while doImportArray is for tuple array data.

Reimplemented from GT_DataArray.

virtual void GT_DABool::doImport ( GT_Offset  idx,
int64 data,
GT_Size  size 
) const
protectedvirtual

Virtual implementation for inline methods. Note that doImport is for tuple data, while doImportArray is for tuple array data.

Reimplemented from GT_DataArray.

virtual void GT_DABool::doImport ( GT_Offset  idx,
fpreal16 data,
GT_Size  size 
) const
protectedvirtual

Virtual implementation for inline methods. Note that doImport is for tuple data, while doImportArray is for tuple array data.

Reimplemented from GT_DataArray.

virtual void GT_DABool::doImport ( GT_Offset  idx,
fpreal32 data,
GT_Size  size 
) const
protectedvirtual

Virtual implementation for inline methods. Note that doImport is for tuple data, while doImportArray is for tuple array data.

Reimplemented from GT_DataArray.

virtual void GT_DABool::doImport ( GT_Offset  idx,
fpreal64 data,
GT_Size  size 
) const
protectedvirtual

Virtual implementation for inline methods. Note that doImport is for tuple data, while doImportArray is for tuple array data.

Reimplemented from GT_DataArray.

virtual GT_Size GT_DABool::entries ( void  ) const
inlinevirtual

Virtual interface defined on GT_DataArray

Implements GT_DataArray.

Definition at line 30 of file GT_DABool.h.

bool GT_DABool::getBit ( GT_Offset  i,
GT_Size  tidx = 0 
) const
inline

Get the bit at the given index.

Definition at line 56 of file GT_DABool.h.

virtual fpreal16 GT_DABool::getF16 ( GT_Offset  i,
int  tidx = 0 
) const
inlinevirtual

Virtual interface defined on GT_DataArray

Reimplemented from GT_DataArray.

Definition at line 42 of file GT_DABool.h.

virtual fpreal32 GT_DABool::getF32 ( GT_Offset  i,
int  tidx = 0 
) const
inlinevirtual

Virtual interface defined on GT_DataArray

Implements GT_DataArray.

Definition at line 44 of file GT_DABool.h.

virtual fpreal64 GT_DABool::getF64 ( GT_Offset  i,
int  tidx = 0 
) const
inlinevirtual

Virtual interface defined on GT_DataArray

Reimplemented from GT_DataArray.

Definition at line 46 of file GT_DABool.h.

virtual int32 GT_DABool::getI32 ( GT_Offset  i,
int  tidx = 0 
) const
inlinevirtual

Virtual interface defined on GT_DataArray

Implements GT_DataArray.

Definition at line 38 of file GT_DABool.h.

virtual int64 GT_DABool::getI64 ( GT_Offset  i,
int  tidx = 0 
) const
inlinevirtual

Virtual interface defined on GT_DataArray

Reimplemented from GT_DataArray.

Definition at line 40 of file GT_DABool.h.

virtual void GT_DABool::getIndexedStrings ( UT_StringArray ,
UT_IntArray  
) const
inlinevirtual

Virtual interface defined on GT_DataArray

Implements GT_DataArray.

Definition at line 51 of file GT_DABool.h.

virtual int64 GT_DABool::getMemoryUsage ( ) const
virtual

Virtual interface defined on GT_DataArray

Implements GT_DataArray.

virtual GT_String GT_DABool::getS ( GT_Offset  ,
int   
) const
inlinevirtual

Virtual interface defined on GT_DataArray

Implements GT_DataArray.

Definition at line 48 of file GT_DABool.h.

virtual GT_Storage GT_DABool::getStorage ( ) const
inlinevirtual

Virtual interface defined on GT_DataArray

Implements GT_DataArray.

Definition at line 31 of file GT_DABool.h.

virtual GT_Offset GT_DABool::getStringIndex ( GT_Offset  ,
int   
) const
inlinevirtual

Virtual interface defined on GT_DataArray

Implements GT_DataArray.

Definition at line 50 of file GT_DABool.h.

virtual GT_Size GT_DABool::getStringIndexCount ( ) const
inlinevirtual

Virtual interface defined on GT_DataArray

Implements GT_DataArray.

Definition at line 49 of file GT_DABool.h.

virtual GT_Size GT_DABool::getTupleSize ( ) const
inlinevirtual

Virtual interface defined on GT_DataArray

Implements GT_DataArray.

Definition at line 32 of file GT_DABool.h.

virtual GT_Type GT_DABool::getTypeInfo ( ) const
inlinevirtual

Virtual interface defined on GT_DataArray

Reimplemented from GT_DataArray.

Definition at line 34 of file GT_DABool.h.

virtual uint8 GT_DABool::getU8 ( GT_Offset  i,
int  tidx = 0 
) const
inlinevirtual

Virtual interface defined on GT_DataArray

Implements GT_DataArray.

Definition at line 36 of file GT_DABool.h.

virtual GT_DataArrayHandle GT_DABool::harden ( ) const
virtual

Virtual interface defined on GT_DataArray

Reimplemented from GT_DataArray.

void GT_DABool::setAllBits ( bool  v,
GT_Size  tidx = 0 
)
inline

Definition at line 67 of file GT_DABool.h.

bool GT_DABool::setBit ( GT_Offset  i,
bool  v,
GT_Size  tidx = 0 
)
inline

Set the bit at the given index – returns the previous value.

Definition at line 62 of file GT_DABool.h.


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