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

A array of arrays as values. Each item is an array of 0 or more items. More...

#include <GT_DAVaryingArray.h>

+ Inheritance diagram for GT_DAVaryingArray:

Public Member Functions

 GT_DAVaryingArray ()
 
 GT_DAVaryingArray (const GT_DataArrayHandle &values, const GT_CountArray &counts)
 
 ~GT_DAVaryingArray () override
 
const char * className () const override
 
bool isValid () const override
 
const GT_DataArrayHandlevalues () const
 
const GT_CountArraycounts () const
 
GT_Size itemSize (GT_Offset offset) const override
 Return the number of elements in the array for the given item. More...
 
exint getMemoryUsage () const override
 
bool hasArrayEntries () const override
 
GT_Size entries () const override
 Number of entries in the array. More...
 
GT_Size getTotalArrayEntries () const override
 
 IMPL_GET (fpreal16, getF16)
 
 IMPL_GET (fpreal32, getF32)
 
 IMPL_GET (fpreal64, getF64)
 
 IMPL_GET (uint8, getU8)
 
 IMPL_GET (int16, getI16)
 
 IMPL_GET (int32, getI32)
 
 IMPL_GET (int64, getI64)
 
 IMPL_GET (GT_String, getS)
 
 IMPL_GET (GT_Offset, getStringIndex)
 
 IMPL_GET (GT_Dict, getDict)
 
 IMPL_GET (GT_Offset, getDictIndex)
 
GT_Size getStringIndexCount () const override
 
void getIndexedStrings (UT_StringArray &strings, UT_IntArray &indices) const override
 
void fillStringArray (UT_StringArray &data, UT_ValArray< int > &sizes, GT_Offset start, GT_Size length) const override
 
GT_Size getDictIndexCount () const override
 
void getIndexedDicts (UT_Array< UT_OptionsHolder > &dicts, UT_IntArray &indices) const override
 
void fillDictionaryArray (UT_Array< UT_OptionsHolder > &data, UT_ValArray< int > &sizes, GT_Offset start, GT_Size length) const override
 
bool getSA (UT_StringArray &a, GT_Offset off) const override
 
bool getDictA (UT_Array< UT_OptionsHolder > &a, GT_Offset offset) const override
 
bool getFA16 (UT_ValArray< fpreal16 > &a, GT_Offset off) const override
 
bool getFA32 (UT_ValArray< fpreal32 > &a, GT_Offset off) const override
 
bool getFA64 (UT_ValArray< fpreal64 > &a, GT_Offset off) const override
 
bool getUA8 (UT_ValArray< uint8 > &a, GT_Offset off) const override
 
bool getIA8 (UT_ValArray< int8 > &a, GT_Offset off) const override
 
bool getIA16 (UT_ValArray< int16 > &a, GT_Offset off) const override
 
bool getIA32 (UT_ValArray< int32 > &a, GT_Offset off) const override
 
bool getIA64 (UT_ValArray< int64 > &a, GT_Offset off) const override
 
void doImportArray (GT_Offset off, UT_ValArray< fpreal16 > &a) const override
 
void doImportArray (GT_Offset off, UT_ValArray< fpreal32 > &a) const override
 
void doImportArray (GT_Offset off, UT_ValArray< fpreal64 > &a) const override
 
void doImportArray (GT_Offset off, UT_ValArray< uint8 > &a) const override
 
void doImportArray (GT_Offset off, UT_ValArray< int8 > &a) const override
 
void doImportArray (GT_Offset off, UT_ValArray< int16 > &a) const override
 
void doImportArray (GT_Offset off, UT_ValArray< int32 > &a) const override
 
void doImportArray (GT_Offset off, UT_ValArray< int64 > &a) const override
 
- Public Member Functions inherited from GT_DAInherit
 GT_DAInherit ()
 Default constructor. More...
 
 GT_DAInherit (const GT_DataArrayHandle &data)
 Convenience constructor. More...
 
 GT_DAInherit (const GT_DAInherit &src)
 Copy constructor. More...
 
 ~GT_DAInherit () override
 
void init (const GT_DataArrayHandle &data)
 
const GT_DataArrayHandlereferencedData () const
 
GT_Storage getStorage () const override
 
GT_Size getTupleSize () const override
 
GT_Type getTypeInfo () const override
 
bool getPointerAliasing (const void *data) const override
 Return "true" if there's pointer aliasing. More...
 
int64 getDataId () const override
 
void updateGeoDetail (const GU_ConstDetailHandle &dtl, const char *attrib_name, GT_Owner attrib_owner, const int expected_size) override
 
- Public Member Functions inherited from GT_DataArray
 GT_DataArray ()
 
 GT_DataArray (const GT_DataArray &src)
 
virtual ~GT_DataArray ()
 
virtual GT_DataArrayHandle harden () const
 Create a "hardened" version of the array. More...
 
virtual const voidgetBackingData () const
 
template<typename T >
const TgetArray (GT_DataArrayHandle &buffer) const
 Template-friendly version of getU8Array() and related methods. More...
 
virtual GT_Offset getStringIndex (GT_Offset offset, int idx=0) const =0
 
virtual void getStrings (UT_StringArray &strings) const
 
void fillStrings (UT_StringArray &result, int tuple_idx=0) const
 
virtual GT_Offset getDictIndex (GT_Offset offset, int idx=0) const =0
 
virtual void getDictionaries (UT_Array< UT_OptionsHolder > &dicts) 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
 
virtual bool isEqual (const GT_DataArray &src) const
 Compare whether two data arrays are equal. More...
 
bool getMinMax (fpreal64 *min, fpreal64 *max) const
 Enlarge a bounding box with values of this 3-tuple array. More...
 
bool enlargeBounds (UT_BoundingBox &b) const
 
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)
 
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 uint8 getU8 (GT_Offset offset, int idx=0) const =0
 
virtual int8 getI8 (GT_Offset offset, int idx=0) const
 
virtual int16 getI16 (GT_Offset offset, int idx=0) const
 
virtual int32 getI32 (GT_Offset offset, int idx=0) const =0
 
virtual int64 getI64 (GT_Offset offset, int idx=0) const
 
virtual fpreal16 getF16 (GT_Offset offset, int idx=0) const
 
virtual fpreal32 getF32 (GT_Offset offset, int idx=0) const =0
 
virtual fpreal64 getF64 (GT_Offset offset, int idx=0) const
 
virtual GT_String getS (GT_Offset offset, int idx=0) const =0
 
virtual GT_Dict getDict (GT_Offset offset, int idx=0) const
 
virtual const uint8getU8Array (GT_DataArrayHandle &buffer) const
 
virtual const int8getI8Array (GT_DataArrayHandle &buffer) const
 
virtual const int16getI16Array (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, int8 *data, GT_Size size=0) const
 
void import (GT_Offset idx, int16 *data, GT_Size size=0) 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< fpreal16 > &data) const
 
void import (GT_Offset idx, UT_ValArray< fpreal32 > &data) const
 
void import (GT_Offset idx, UT_ValArray< fpreal64 > &data) const
 
void import (GT_Offset idx, UT_ValArray< uint8 > &data) const
 
void import (GT_Offset idx, UT_ValArray< int8 > &data) const
 
void import (GT_Offset idx, UT_ValArray< int16 > &data) const
 
void import (GT_Offset idx, UT_ValArray< int32 > &data) const
 
void import (GT_Offset idx, UT_ValArray< int64 > &data) const
 
void import (GT_Offset idx, UT_StringArray &data) const
 
void import (GT_Offset idx, UT_Array< UT_OptionsHolder > &data) const
 
void import (GT_Offset idx, uint8 *data, GT_Size size=0, fpreal black=0, fpreal white=1) const
 
void fillArray (int8 *data, GT_Offset start, GT_Size length, int tsize, int stride=-1) const
 
void fillArray (int16 *data, GT_Offset start, GT_Size length, int tsize, int stride=-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)
 
void fillArray (UT_Array< uint8 > &data, UT_Array< int > &sizes, GT_Offset start, GT_Size length) const
 
void fillArray (UT_Array< int8 > &data, UT_Array< int > &sizes, GT_Offset start, GT_Size length) const
 
void fillArray (UT_Array< int16 > &data, UT_Array< int > &sizes, GT_Offset start, GT_Size length) const
 
void fillArray (UT_Array< int32 > &data, UT_Array< int > &sizes, GT_Offset start, GT_Size length) const
 
void fillArray (UT_Array< int64 > &data, UT_Array< int > &sizes, GT_Offset start, GT_Size length) const
 
void fillArray (UT_Array< fpreal16 > &data, UT_Array< int > &sizes, GT_Offset start, GT_Size length) const
 
void fillArray (UT_Array< fpreal32 > &data, UT_Array< int > &sizes, GT_Offset start, GT_Size length) const
 
void fillArray (UT_Array< fpreal64 > &data, UT_Array< int > &sizes, GT_Offset start, GT_Size length) const
 
virtual void extendedFill (uint8 *data, GT_Offset start, GT_Size length, int tsize, int nrepeats, int stride=-1) const
 
virtual void extendedFill (int8 *data, GT_Offset start, GT_Size length, int tsize, int nrepeats, int stride=-1) const
 
virtual void extendedFill (int16 *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 int8get (GT_Offset i, int8 *store, int sz) const
 
virtual const int16get (GT_Offset i, int16 *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
 
SYS_HashType hash () const
 
virtual SYS_HashType hashRange (exint begin, exint end) const
 
- Public Member Functions inherited from UT_IntrusiveRefCounter< GT_DataArray >
SYS_FORCE_INLINE UT_IntrusiveRefCounter () noexcept
 Default constructor: Sets counter to 0. More...
 
SYS_FORCE_INLINE UT_IntrusiveRefCounter (const UT_IntrusiveRefCounter &) noexcept
 Copy constructor: Sets counter to 0. More...
 
UT_IntrusiveRefCounteroperator= (const UT_IntrusiveRefCounter &) noexcept
 Assignment operator: Does not modify counter. More...
 
SYS_FORCE_INLINE uint32 use_count () const noexcept
 Return current counter. More...
 
SYS_FORCE_INLINE bool conditionalAddRef () noexcept
 

Protected Member Functions

template<typename T >
bool arrayImport (UT_ValArray< T > &a, GT_Offset offset) const
 
- Protected Member Functions inherited from GT_DataArray
virtual bool computeMinMax (fpreal64 *min, fpreal64 *max) const
 
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...
 
template<typename T_POD >
void t_extendedFillArray (UT_Array< T_POD > &dest, UT_Array< int > &sizes, GT_Offset start, GT_Size length) const
 Templated method to fill an array attribute. More...
 
virtual void doImport (GT_Offset idx, uint8 *data, GT_Size size) const
 
virtual void doImport (GT_Offset idx, int8 *data, GT_Size size) const
 
virtual void doImport (GT_Offset idx, int16 *data, GT_Size size) const
 
virtual void doImport (GT_Offset idx, int32 *data, GT_Size size) const
 
virtual void doImport (GT_Offset idx, int64 *data, GT_Size size) const
 
virtual void doImport (GT_Offset idx, fpreal16 *data, GT_Size size) const
 
virtual void doImport (GT_Offset idx, fpreal32 *data, GT_Size size) const
 
virtual void doImport (GT_Offset idx, fpreal64 *data, GT_Size size) 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 (int8 *data, GT_Offset start, GT_Size length, int tuple_size, int stride) const
 
virtual void doFillArray (int16 *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 doFillArrayAttr (UT_Array< uint8 > &data, UT_Array< int > &sizes, GT_Offset start, GT_Size length) const
 
virtual void doFillArrayAttr (UT_Array< int8 > &data, UT_Array< int > &sizes, GT_Offset start, GT_Size length) const
 
virtual void doFillArrayAttr (UT_Array< int16 > &data, UT_Array< int > &sizes, GT_Offset start, GT_Size length) const
 
virtual void doFillArrayAttr (UT_Array< int32 > &data, UT_Array< int > &sizes, GT_Offset start, GT_Size length) const
 
virtual void doFillArrayAttr (UT_Array< int64 > &data, UT_Array< int > &sizes, GT_Offset start, GT_Size length) const
 
virtual void doFillArrayAttr (UT_Array< fpreal16 > &data, UT_Array< int > &sizes, GT_Offset start, GT_Size length) const
 
virtual void doFillArrayAttr (UT_Array< fpreal32 > &data, UT_Array< int > &sizes, GT_Offset start, GT_Size length) const
 
virtual void doFillArrayAttr (UT_Array< fpreal64 > &data, UT_Array< int > &sizes, GT_Offset start, GT_Size length) const
 
virtual void doFillQuantizedArray (uint8 *data, GT_Offset start, GT_Size length, int tuple_size, int stride, fpreal black, fpreal white) const
 
virtual void doExtendedQuantizedFill (uint8 *data, GT_Offset start, GT_Size length, int tuple_size, int nrepeats, int stride, fpreal black, fpreal white) 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...
 

Protected Attributes

GT_CountArray myCounts
 
- Protected Attributes inherited from GT_DAInherit
GT_DataArrayHandle myData
 

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

A array of arrays as values. Each item is an array of 0 or more items.

Definition at line 19 of file GT_DAVaryingArray.h.

Constructor & Destructor Documentation

GT_DAVaryingArray::GT_DAVaryingArray ( )
inline

Definition at line 22 of file GT_DAVaryingArray.h.

GT_DAVaryingArray::GT_DAVaryingArray ( const GT_DataArrayHandle values,
const GT_CountArray counts 
)
inline

The values passed in are a run of values for all the entries of all the arrays. The counts array is the number of elements in each array. For example:

int values := { 0, 1, 2, 0, 1, 2, 3, 4, 5 };
counts := { 3, 0, 5}

Will define an data array of three entries. Each entry will be an array of integers:

this[0] = { 0, 1, 2 }
this[1] = {}
this[2] = { 0, 1, 2, 3, 4, 5 }

Definition at line 40 of file GT_DAVaryingArray.h.

GT_DAVaryingArray::~GT_DAVaryingArray ( )
override

Member Function Documentation

template<typename T >
bool GT_DAVaryingArray::arrayImport ( UT_ValArray< T > &  a,
GT_Offset  offset 
) const
protected

Extract an array of a given type. Implemented for fpreal16/32/64 int16/32/64.

The size of the array returned by arrayImport() will be itemSize()*getTupleSize() scalar values.

const char* GT_DAVaryingArray::className ( ) const
inlineoverridevirtual

Implements GT_DataArray.

Definition at line 53 of file GT_DAVaryingArray.h.

const GT_CountArray& GT_DAVaryingArray::counts ( ) const
inline

Definition at line 63 of file GT_DAVaryingArray.h.

void GT_DAVaryingArray::doImportArray ( GT_Offset  off,
UT_ValArray< fpreal16 > &  a 
) const
inlineoverridevirtual

Array accessors

Reimplemented from GT_DataArray.

Definition at line 142 of file GT_DAVaryingArray.h.

void GT_DAVaryingArray::doImportArray ( GT_Offset  off,
UT_ValArray< fpreal32 > &  a 
) const
inlineoverridevirtual

Array accessors

Reimplemented from GT_DataArray.

Definition at line 144 of file GT_DAVaryingArray.h.

void GT_DAVaryingArray::doImportArray ( GT_Offset  off,
UT_ValArray< fpreal64 > &  a 
) const
inlineoverridevirtual

Array accessors

Reimplemented from GT_DataArray.

Definition at line 146 of file GT_DAVaryingArray.h.

void GT_DAVaryingArray::doImportArray ( GT_Offset  off,
UT_ValArray< uint8 > &  a 
) const
inlineoverridevirtual

Array accessors

Reimplemented from GT_DataArray.

Definition at line 148 of file GT_DAVaryingArray.h.

void GT_DAVaryingArray::doImportArray ( GT_Offset  off,
UT_ValArray< int8 > &  a 
) const
inlineoverridevirtual

Array accessors

Reimplemented from GT_DataArray.

Definition at line 150 of file GT_DAVaryingArray.h.

void GT_DAVaryingArray::doImportArray ( GT_Offset  off,
UT_ValArray< int16 > &  a 
) const
inlineoverridevirtual

Array accessors

Reimplemented from GT_DataArray.

Definition at line 152 of file GT_DAVaryingArray.h.

void GT_DAVaryingArray::doImportArray ( GT_Offset  off,
UT_ValArray< int32 > &  a 
) const
inlineoverridevirtual

Array accessors

Reimplemented from GT_DataArray.

Definition at line 154 of file GT_DAVaryingArray.h.

void GT_DAVaryingArray::doImportArray ( GT_Offset  off,
UT_ValArray< int64 > &  a 
) const
inlineoverridevirtual

Array accessors

Reimplemented from GT_DataArray.

Definition at line 156 of file GT_DAVaryingArray.h.

GT_Size GT_DAVaryingArray::entries ( ) const
inlineoverridevirtual

Number of entries in the array.

Implements GT_DataArray.

Definition at line 75 of file GT_DAVaryingArray.h.

void GT_DAVaryingArray::fillDictionaryArray ( UT_Array< UT_OptionsHolder > &  data,
UT_ValArray< int > &  sizes,
GT_Offset  start,
GT_Size  length 
) const
overridevirtual

Fill an array of dictionaries from start to length number of entries. This should only be called for an array attribute of dictionaries. The data will contain a flattened array of dictionaries, with the sizes array containing the array length per entry.

Reimplemented from GT_DataArray.

void GT_DAVaryingArray::fillStringArray ( UT_StringArray data,
UT_ValArray< int > &  sizes,
GT_Offset  start,
GT_Size  length 
) const
overridevirtual

Fill array of strings from start to length number of entries. This should only be called for an array attribute of strings. The data will contain a flattened array of strings, with the sizes array containing the array length per entry.

Reimplemented from GT_DataArray.

bool GT_DAVaryingArray::getDictA ( UT_Array< UT_OptionsHolder > &  a,
GT_Offset  offset 
) const
overridevirtual

Array accessors

Reimplemented from GT_DataArray.

GT_Size GT_DAVaryingArray::getDictIndexCount ( ) const
inlineoverridevirtual

When an array of dictionaries is based on an indexed list of dictionaries, this method can be used to query the maximum number of indices. If the dictionaries are not indexed, the method should return -1.

Implements GT_DataArray.

Definition at line 112 of file GT_DAVaryingArray.h.

bool GT_DAVaryingArray::getFA16 ( UT_ValArray< fpreal16 > &  a,
GT_Offset  off 
) const
inlineoverridevirtual

Array accessors

Reimplemented from GT_DataArray.

Definition at line 126 of file GT_DAVaryingArray.h.

bool GT_DAVaryingArray::getFA32 ( UT_ValArray< fpreal32 > &  a,
GT_Offset  off 
) const
inlineoverridevirtual

Array accessors

Reimplemented from GT_DataArray.

Definition at line 128 of file GT_DAVaryingArray.h.

bool GT_DAVaryingArray::getFA64 ( UT_ValArray< fpreal64 > &  a,
GT_Offset  off 
) const
inlineoverridevirtual

Array accessors

Reimplemented from GT_DataArray.

Definition at line 130 of file GT_DAVaryingArray.h.

bool GT_DAVaryingArray::getIA16 ( UT_ValArray< int16 > &  a,
GT_Offset  off 
) const
inlineoverridevirtual

Array accessors

Reimplemented from GT_DataArray.

Definition at line 136 of file GT_DAVaryingArray.h.

bool GT_DAVaryingArray::getIA32 ( UT_ValArray< int32 > &  a,
GT_Offset  off 
) const
inlineoverridevirtual

Array accessors

Reimplemented from GT_DataArray.

Definition at line 138 of file GT_DAVaryingArray.h.

bool GT_DAVaryingArray::getIA64 ( UT_ValArray< int64 > &  a,
GT_Offset  off 
) const
inlineoverridevirtual

Array accessors

Reimplemented from GT_DataArray.

Definition at line 140 of file GT_DAVaryingArray.h.

bool GT_DAVaryingArray::getIA8 ( UT_ValArray< int8 > &  a,
GT_Offset  off 
) const
inlineoverridevirtual

Array accessors

Reimplemented from GT_DataArray.

Definition at line 134 of file GT_DAVaryingArray.h.

void GT_DAVaryingArray::getIndexedDicts ( UT_Array< UT_OptionsHolder > &  dicts,
UT_IntArray indices 
) const
inlineoverridevirtual

When an array of dictionaries is based on an indexed list of dictionaries, this method can be used to extract all the dictionaries and their corresponding indicies. It's possible that the indices may not be contiguous or may even be out of order.

Implements GT_DataArray.

Definition at line 114 of file GT_DAVaryingArray.h.

void GT_DAVaryingArray::getIndexedStrings ( UT_StringArray strings,
UT_IntArray indices 
) const
inlineoverridevirtual

When an array of strings is based on an indexed list of strings, this method can be used to extract all the strings and their corresponding indicies. It's possible that the indices may not be contiguous or may even be out of order.

Implements GT_DataArray.

Definition at line 102 of file GT_DAVaryingArray.h.

exint GT_DAVaryingArray::getMemoryUsage ( ) const
inlineoverridevirtual

Methods defined on GT_DataArray

Reimplemented from GT_DAInherit.

Definition at line 70 of file GT_DAVaryingArray.h.

bool GT_DAVaryingArray::getSA ( UT_StringArray a,
GT_Offset  off 
) const
overridevirtual

Array accessors

Reimplemented from GT_DataArray.

GT_Size GT_DAVaryingArray::getStringIndexCount ( ) const
inlineoverridevirtual

When an array of strings is based on an indexed list of strings, this method can be used to query the maximum number of indices. If the strings are not indexed, the method should return -1.

Implements GT_DataArray.

Definition at line 100 of file GT_DAVaryingArray.h.

GT_Size GT_DAVaryingArray::getTotalArrayEntries ( ) const
inlineoverridevirtual

This method may need to be overridden by derived classes depending on how the underlying data is referenced.

Reimplemented from GT_DAInherit.

Definition at line 76 of file GT_DAVaryingArray.h.

bool GT_DAVaryingArray::getUA8 ( UT_ValArray< uint8 > &  a,
GT_Offset  off 
) const
inlineoverridevirtual

Array accessors

Reimplemented from GT_DataArray.

Definition at line 132 of file GT_DAVaryingArray.h.

bool GT_DAVaryingArray::hasArrayEntries ( ) const
inlineoverridevirtual

Methods defined on GT_DataArray

Reimplemented from GT_DAInherit.

Definition at line 74 of file GT_DAVaryingArray.h.

GT_DAVaryingArray::IMPL_GET ( fpreal16  ,
getF16   
)
GT_DAVaryingArray::IMPL_GET ( fpreal32  ,
getF32   
)
GT_DAVaryingArray::IMPL_GET ( fpreal64  ,
getF64   
)
GT_DAVaryingArray::IMPL_GET ( uint8  ,
getU8   
)
GT_DAVaryingArray::IMPL_GET ( int16  ,
getI16   
)
GT_DAVaryingArray::IMPL_GET ( int32  ,
getI32   
)
GT_DAVaryingArray::IMPL_GET ( int64  ,
getI64   
)
GT_DAVaryingArray::IMPL_GET ( GT_String  ,
getS   
)
GT_DAVaryingArray::IMPL_GET ( GT_Offset  ,
getStringIndex   
)
GT_DAVaryingArray::IMPL_GET ( GT_Dict  ,
getDict   
)
GT_DAVaryingArray::IMPL_GET ( GT_Offset  ,
getDictIndex   
)
bool GT_DAVaryingArray::isValid ( ) const
inlineoverridevirtual

Methods defined on GT_DataArray

Reimplemented from GT_DAInherit.

Definition at line 54 of file GT_DAVaryingArray.h.

GT_Size GT_DAVaryingArray::itemSize ( GT_Offset  offset) const
inlineoverridevirtual

Return the number of elements in the array for the given item.

Reimplemented from GT_DAInherit.

Definition at line 65 of file GT_DAVaryingArray.h.

const GT_DataArrayHandle& GT_DAVaryingArray::values ( ) const
inline

Definition at line 62 of file GT_DAVaryingArray.h.

Member Data Documentation

GT_CountArray GT_DAVaryingArray::myCounts
protected

Definition at line 169 of file GT_DAVaryingArray.h.


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