HDK
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
GA_PageArray< DATA_T, TSIZE, TABLEHARDENED, PAGESHARDENED > Class Template Reference

#include <GA_PageArray.h>

+ Inheritance diagram for GA_PageArray< DATA_T, TSIZE, TABLEHARDENED, PAGESHARDENED >:

Classes

class  ga_SubPageBlock
 
class  LoadComponentArrayFunctor
 

Public Types

typedef UT_PageArray< DATA_T,
TSIZE, TABLEHARDENED,
PAGESHARDENED, GA_PAGE_BITS,
GA_Offset
Base
 
typedef GA_PageArray< DATA_T,
TSIZE, TABLEHARDENED,
PAGESHARDENED > 
ThisType
 
- Public Types inherited from UT_PageArray< DATA_T, TSIZE, TABLEHARDENED, PAGESHARDENED, GA_PAGE_BITS, GA_Offset >
typedef UT_PageArray< DATA_T,
TSIZE, TABLEHARDENED,
PAGESHARDENED, THEPAGEBITS,
GA_Offset
ThisType
 
typedef DATA_T DataType
 
typedef GA_Offset IndexType
 

Public Member Functions

 GA_PageArray ()
 
 GA_PageArray (exint tuplesize)
 
 GA_PageArray (GA_Storage storage)
 
 GA_PageArray (exint tuplesize, UT_Storage storage)
 
 GA_PageArray (exint tuplesize, GA_Storage storage)
 
SYS_FORCE_INLINE GA_Storage getStorage () const
 Get the storage type for each component of this GA_PageArray. More...
 
void setStorage (GA_Storage storage)
 Set the storage type for each component of this GA_PageArray. More...
 
template<typename SRC_T >
void setConstant (const GA_Range &range, SRC_T val)
 
void setConstant (const GA_Range &range, const GA_Defaults &defaults)
 
SYS_FORCE_INLINE void setConstant (GA_Offset start, GA_Offset end, const GA_Defaults &v)
 
template<typename SRC_T >
void setConstant (GA_Offset start, GA_Offset end, SRC_T val)
 
template<typename SRC_T >
void setConstantVector (const GA_Range &range, const UT_FixedVector< SRC_T, theSafeTupleSize > &val)
 
template<typename SRC_T >
void setConstantVector (GA_Offset start, GA_Offset end, const UT_FixedVector< SRC_T, theSafeTupleSize > &val)
 
void defragment (const GA_Defragment &defrag)
 Include GA_PageArrayImpl.h to call this. More...
 
template<typename SRC_DATA_T , exint SRC_TSIZE, bool SRC_TABLEHARDENED, bool SRC_PAGESHARDENED>
void mergeGrowArrayAndCopy (const GA_MergeMap &map, GA_AttributeOwner owner, const GA_PageArray< SRC_DATA_T, SRC_TSIZE, SRC_TABLEHARDENED, SRC_PAGESHARDENED > &src, const GA_Defaults &defaults)
 Include GA_PageArrayImpl.h to call this. More...
 
template<typename SRC_DATA_T , exint SRC_TSIZE, bool SRC_TABLEHARDENED, bool SRC_PAGESHARDENED>
void copy (const GA_Range &destrange, const GA_PageArray< SRC_DATA_T, SRC_TSIZE, SRC_TABLEHARDENED, SRC_PAGESHARDENED > &src, const GA_Range &srcrange)
 
template<typename T >
void getRange (const GA_Range &srcrange, T *dest) const
 
template<typename T >
void setRange (const GA_Range &destrange, const T *src)
 
void comparePages (UT_BitArray &bits, const ThisType &that) const
 
bool jsonSave (UT_JSONWriter &w, const GA_Range &range, const GA_SaveOptions *options=nullptr, const UT_IntArray *map=nullptr, int defvalue=-1) const
 
bool jsonLoad (UT_JSONParser &p, const GA_LoadMap &map, GA_AttributeOwner owner)
 
template<typename DEST_DATA_T >
SYS_FORCE_INLINE const
GA_PageArray< DEST_DATA_T,
TSIZE, TABLEHARDENED,
PAGESHARDENED > & 
castType () const
 
template<typename DEST_DATA_T >
SYS_FORCE_INLINE GA_PageArray
< DEST_DATA_T, TSIZE,
TABLEHARDENED, PAGESHARDENED > & 
castType ()
 
template<exint DEST_TSIZE>
SYS_FORCE_INLINE const
GA_PageArray< DATA_T,
DEST_TSIZE, TABLEHARDENED,
PAGESHARDENED > & 
castTupleSize () const
 
template<exint DEST_TSIZE>
SYS_FORCE_INLINE GA_PageArray
< DATA_T, DEST_TSIZE,
TABLEHARDENED, PAGESHARDENED > & 
castTupleSize ()
 
- Public Member Functions inherited from UT_PageArray< DATA_T, TSIZE, TABLEHARDENED, PAGESHARDENED, GA_PAGE_BITS, GA_Offset >
 UT_PageArray ()
 
 UT_PageArray (exint tuplesize)
 
 UT_PageArray (UT_Storage storage)
 
 UT_PageArray (exint tuplesize, UT_Storage storage)
 
 UT_PageArray (const ThisType &that)
 
 UT_PageArray (const UT_PageArray< SRC_DATA_T, SRC_TSIZE, SRC_TABLEHARDENED, SRC_PAGESHARDENED, THEPAGEBITS, GA_Offset > &that)
 
SYS_FORCE_INLINE ~UT_PageArray ()
 
SYS_FORCE_INLINE void clear ()
 
void clearAndDestroy ()
 
SYS_FORCE_INLINE ThisTypeoperator= (const ThisType &that)
 
SYS_FORCE_INLINE ThisTypeoperator= (const UT_PageArray< SRC_DATA_T, SRC_TSIZE, SRC_TABLEHARDENED, SRC_PAGESHARDENED, THEPAGEBITS, GA_Offset > &that)
 
void replace (const UT_PageArray< SRC_DATA_T, SRC_TSIZE, SRC_TABLEHARDENED, SRC_PAGESHARDENED, THEPAGEBITS, GA_Offset > &that)
 
SYS_FORCE_INLINE NotVoidType operator() (GA_Offseti, exint component=0) const
 Read element i's specified component (default component 0). More...
 
SYS_FORCE_INLINE NotVoidTypeoperator() (GA_Offseti, exint component=0)
 
SYS_FORCE_INLINE DEST_DATA_T get (GA_Offseti, exint component=0) const
 
SYS_FORCE_INLINE
UT_FixedVector< DEST_DATA_T,
DEST_TSIZE > 
getVector (GA_Offseti) const
 
SYS_FORCE_INLINE void set (GA_Offseti, SRC_DATA_T v)
 component == 0 in this version More...
 
SYS_FORCE_INLINE void set (GA_Offseti, exint component, SRC_DATA_T v)
 
SYS_FORCE_INLINE void add (GA_Offseti, SRC_DATA_T v)
 component == 0 in this version More...
 
SYS_FORCE_INLINE void add (GA_Offseti, exint component, SRC_DATA_T v)
 
SYS_FORCE_INLINE void op (GA_Offseti, exint component, SRC_DATA_T v)
 
SYS_FORCE_INLINE void setVector (GA_Offseti, const UT_FixedVector< SRC_DATA_T, SRC_TSIZE, SRC_INSTANTIATED > &v)
 
SYS_FORCE_INLINE void addVector (GA_Offseti, const UT_FixedVector< SRC_DATA_T, SRC_TSIZE, SRC_INSTANTIATED > &v)
 
SYS_FORCE_INLINE void opVector (GA_Offseti, const UT_FixedVector< SRC_DATA_T, SRC_TSIZE > &v)
 
SYS_FORCE_INLINE GA_Offset size () const
 
SYS_FORCE_INLINE GA_Offset capacity () const
 
void setCapacity (GA_Offsetnewcapacity)
 
void setCapacityIfNeeded (GA_Offsetnewcapacity)
 
void setSize (GA_Offsetnewsize)
 
void setSize (GA_Offsetnewsize, NotVoidType initval)
 
void setSize (GA_Offsetnewsize, const UT_FixedVector< NotVoidType, theSafeTupleSize > &initval)
 
void setSize (GA_Offsetnewsize, const UT_Defaults &initval)
 
void setConstant (GA_Offsetstart, GA_Offsetend, NotVoidType v)
 
void setConstant (GA_Offsetstart, GA_Offsetend, const UT_FixedVector< NotVoidType, theSafeTupleSize > &v)
 
void setConstant (GA_Offsetstart, GA_Offsetend, const UT_Defaults &v)
 
void setStorage (const UT_Storage newstorage)
 
void setTupleSize (exint newtuplesize, const UT_Defaults &v)
 
int64 getMemoryUsage (bool inclusive) const
 
void countMemory (UT_MemoryCounter &counter, bool inclusive) const
 
void moveRange (GA_Offsetsrcstart, GA_Offsetdeststart, GA_Offsetnelements)
 
void moveRange (const UT_PageArray< SRC_DATA_T, SRC_TSIZE, SRC_TABLEHARDENED, SRC_PAGESHARDENED, THEPAGEBITS, GA_Offset > &src, GA_Offsetsrcstart, GA_Offsetdeststart, GA_Offsetnelements)
 
void swapRange (GA_Offsetastart, GA_Offsetbstart, GA_Offsetnelements)
 
void copy (GA_Offsetdest, GA_Offsetsrc)
 Copies a single element from src to dest within this. More...
 
SYS_FORCE_INLINE void getRange (GA_Offsetsrcstart, GA_Offsetnelements, T *dest) const
 
SYS_FORCE_INLINE void setRange (GA_Offsetdeststart, GA_Offsetnelements, const T *src)
 
void getVectorRange (GA_Offsetsrcstart, GA_Offsetnelements, UT_FixedVector< DEST_DATA_T, DEST_TSIZE, DEST_INSTANTIATED > *dest) const
 
void setVectorRange (GA_Offsetdeststart, GA_Offsetnelements, const UT_FixedVector< SRC_DATA_T, SRC_TSIZE, SRC_INSTANTIATED > *src)
 
SYS_FORCE_INLINE bool isTableHardened () const
 Returns true iff the table isn't shared with any other UT_PageArray's. More...
 
SYS_FORCE_INLINE UT_PageArray
< DATA_T, TSIZE, true,
PAGESHARDENED, THEPAGEBITS,
GA_Offset > & 
hardenTable ()
 
SYS_FORCE_INLINE UT_PageArray
< DATA_T, TSIZE, true, true,
THEPAGEBITS, GA_Offset > & 
hardenAllPages (GA_Offsetstart=GA_Offset(0), GA_Offsetend=GA_Offset(-1))
 
SYS_FORCE_INLINE void tryCompressAllPages (GA_Offsetstart=GA_Offset(0), GA_Offsetend=GA_Offset(-1))
 
SYS_FORCE_INLINE exint getTupleSize () const
 
SYS_FORCE_INLINE UT_Storage getStorage () const
 
SYS_FORCE_INLINE bool isPageConstant (UT_PageNum pagenum) const
 Returns true iff the specified page is constant-compressed. More...
 
SYS_FORCE_INLINE bool isArrayZero () const
 Returns true iff the entire array is constant & zero. More...
 
SYS_FORCE_INLINE void setPageConstant (UT_PageNum pagenum, const NotVoidType &val)
 
SYS_FORCE_INLINE void setPageConstant (UT_PageNum pagenum, const UT_FixedVector< SRC_DATA_T, theSafeTupleSize > &val)
 
SYS_FORCE_INLINE void setPageConstant (UT_PageNum pagenum, const SRC_DATA_T *values)
 
SYS_FORCE_INLINE bool isPageHard (UT_PageNum pagenum) const
 
SYS_FORCE_INLINE NotVoidTypehardenPage (UT_PageNum pagenum)
 
SYS_FORCE_INLINE NotVoidTypehardenPageNoInit (UT_PageNum pagenum)
 
SYS_FORCE_INLINE NotVoidTypeunshareConstantPage (UT_PageNum pagenum)
 
SYS_FORCE_INLINE void tryCompressPage (UT_PageNum pagenum)
 
const NotVoidTypegetPageData (UT_PageNum pagenum) const
 
NotVoidTypegetPageData (UT_PageNum pagenum)
 
bool decRefIffSharedTable ()
 
bool decRefIffSharedPage (UT_PageNum pagenum)
 
SYS_FORCE_INLINE int64 getGuaranteedInt (GA_Offseti) const
 
bool hasNanInRange (GA_Offsetstart, GA_Offsetend) const
 
SYS_FORCE_INLINE const
UT_PageArray< DEST_DATA_T,
TSIZE, TABLEHARDENED,
PAGESHARDENED, THEPAGEBITS,
GA_Offset > & 
castType () const
 
SYS_FORCE_INLINE UT_PageArray
< DEST_DATA_T, TSIZE,
TABLEHARDENED, PAGESHARDENED,
THEPAGEBITS, GA_Offset > & 
castType ()
 
SYS_FORCE_INLINE const
UT_PageArray< DATA_T,
DEST_TSIZE, TABLEHARDENED,
PAGESHARDENED, THEPAGEBITS,
GA_Offset > & 
castTupleSize () const
 
SYS_FORCE_INLINE UT_PageArray
< DATA_T, DEST_TSIZE,
TABLEHARDENED, PAGESHARDENED,
THEPAGEBITS, GA_Offset > & 
castTupleSize ()
 

Additional Inherited Members

- Static Public Member Functions inherited from UT_PageArray< DATA_T, TSIZE, TABLEHARDENED, PAGESHARDENED, GA_PAGE_BITS, GA_Offset >
static SYS_FORCE_INLINE GA_Offset roundUpCapacity (GA_Offsetcapacity)
 
static SYS_FORCE_INLINE UT_PageNum pageNum (GA_Offseti)
 
static SYS_FORCE_INLINE UT_PageNum numPages (GA_Offsetnelements)
 
static SYS_FORCE_INLINE UT_PageOff pageOff (GA_Offseti)
 
static SYS_FORCE_INLINE UT_PageOff pageStart (GA_Offsetpage)
 
- Static Public Attributes inherited from UT_PageArray< DATA_T, TSIZE, TABLEHARDENED, PAGESHARDENED, GA_PAGE_BITS, GA_Offset >
static const UT_Storage theStorage
 
static const exint theTupleSize
 
static const exint theSafeTupleSize
 
static const exint thePageBits
 
static const exint thePageSize
 
static const exint thePageMask
 
- Protected Types inherited from UT_PageArray< DATA_T, TSIZE, TABLEHARDENED, PAGESHARDENED, GA_PAGE_BITS, GA_Offset >
typedef NotVoid< DATA_T >::type NotVoidType
 
- Protected Member Functions inherited from UT_PageArray< DATA_T, TSIZE, TABLEHARDENED, PAGESHARDENED, GA_PAGE_BITS, GA_Offset >
DEST_DATA_T getUnknownType (GA_Offseti, exint component=0) const
 
void opUnknownType (GA_Offseti, exint component, SRC_DATA_T v)
 
void opVectorUnknownType (GA_Offseti, const UT_FixedVector< SRC_DATA_T, SRC_TSIZE > &v)
 
UT_FixedVector< DEST_DATA_T,
DEST_TSIZE > 
getVectorUnknownType (GA_Offseti) const
 
UT_FixedVector< DEST_DATA_T,
DEST_TSIZE > 
getVectorUnknownSize (GA_Offseti) const
 
UT_FixedVector< DEST_DATA_T,
DEST_TSIZE > 
getVectorMismatchedSize (GA_Offseti) const
 
void hardenAllPagesUnknownType (GA_Offsetstart, GA_Offsetend)
 
void tryCompressAllPagesUnknownType (GA_Offsetstart, GA_Offsetend)
 
void tryCompressPageUnknownType (UT_PageNum pagenum)
 
void setPageConstantUnknownType (UT_PageNum pagenum, const UT_FixedVector< SRC_DATA_T, theSafeTupleSize > &val)
 
void setPageConstantUnknownType (UT_PageNum pagenum, const SRC_DATA_T *values)
 
void setPageConstantMismatchedType (UT_PageNum pagenum, const SRC_DATA_T *values)
 
void forceHardenTable (GA_Offsetnewcapacity)
 
- Static Protected Member Functions inherited from UT_PageArray< DATA_T, TSIZE, TABLEHARDENED, PAGESHARDENED, GA_PAGE_BITS, GA_Offset >
static SYS_FORCE_INLINE bool decCounterIffAbove1 (SYS_AtomicCounter &counter)
 
static SYS_FORCE_INLINE NotVoidType getConstant (const PageTableEntry *const page, exint component, exint tuplesize=TSIZE)
 
static SYS_FORCE_INLINE const
NotVoidType
getConstantPtr (const PageTableEntry *page, exint component=0, exint tuplesize=TSIZE)
 
static SYS_FORCE_INLINE
NotVoidType
getConstantPtr (PageTableEntry *page, exint component=0, exint tuplesize=TSIZE)
 
static SYS_FORCE_INLINE void makeConstant (PageTableEntry *page, const UT_FixedVector< NotVoidType, theSafeTupleSize > &val)
 
static void makeConstant (PageTableEntry *page, const NotVoidType &val, exint tuplesize=TSIZE)
 
static void makeConstant (PageTableEntry *page, const NotVoidType *values, exint tuplesize)
 
static void replacePage (PageTableEntry *dest, const typename SrcType::PageTableEntry *src, exint desttuplesize, exint srctuplesize, UT_PageOff destpagesize, UT_PageOff destpagecapacity)
 
static void copyPartialPage (PageTableEntry *dest, const typename SrcType::PageTableEntry *src, exint desttuplesize, exint srctuplesize, UT_PageOff destoff, UT_PageOff srcoff, UT_PageOff ntuples, UT_PageOff destpagecapacity)
 
static void makeConstantFrom (PageTableEntry *dest, const typename SrcType::PageTableEntry *src, exint desttuplesize, exint srctuplesize)
 
static void fillNonConstWithConst (NotVoidType *destpagedata, NotVoidType *destpageend, const SrcNotVoidType *stuple, exint mintuplesize, exint desttupleextra)
 
static void copyNonConst (NotVoidType *destpagedata, const SrcNotVoidType *srcpagedata, exint desttuplesize, exint srctuplesize, UT_PageOff ntuples)
 
static bool isEqualConst (const NotVoidType *tuple, const SrcNotVoidType *stuple, exint mintuplesize)
 
static void hardenConstantPage (PageTableEntry *page, UT_PageOff pagecapacity, exint tuplesize=TSIZE)
 
static void hardenConstantPageNoInit (PageTableEntry *page, UT_PageOff pagecapacity, exint tuplesize=TSIZE)
 
static void hardenSharedPage (PageTableEntry *page, UT_PageOff pagecapacity, exint tuplesize=TSIZE)
 
static void hardenSharedPageNoInit (PageTableEntry *page, UT_PageOff pagecapacity, exint tuplesize=TSIZE)
 
static SYS_FORCE_INLINE bool isZero (const T &val)
 
static SYS_FORCE_INLINE bool isZero (const T *val, exint tuplesize)
 
static SYS_FORCE_INLINE bool isEqual (const T0 *a, const T1 *b, exint tuplesize)
 
static SYS_FORCE_INLINE
UT_FixedVector< DEST_TYPE,
SRC_TSIZE > 
convertVectorStorage (const UT_FixedVector< SRC_TYPE, SRC_TSIZE, SRC_INSTANTIATED > &src)
 
static void hardenConstantPage (PageTable *pages, PageTableEntry *page)
 
static void hardenConstantPage (PageTable *pages, PageTableEntry *page, exint tuplesize)
 
static void hardenConstantPageNoInit (PageTable *pages, PageTableEntry *page)
 
static void hardenConstantPageNoInit (PageTable *pages, PageTableEntry *page, exint tuplesize)
 
static void hardenSharedPage (PageTable *pages, PageTableEntry *page)
 
static void hardenSharedPage (PageTable *pages, PageTableEntry *page, exint tuplesize)
 
static void hardenSharedPageNoInit (PageTable *pages, PageTableEntry *page)
 
static void hardenSharedPageNoInit (PageTable *pages, PageTableEntry *page, exint tuplesize)
 

Detailed Description

template<typename DATA_T = void, exint TSIZE = -1, bool TABLEHARDENED = true, bool PAGESHARDENED = false>
class GA_PageArray< DATA_T, TSIZE, TABLEHARDENED, PAGESHARDENED >

Definition at line 98 of file GA_PageArray.h.

Member Typedef Documentation

template<typename DATA_T = void, exint TSIZE = -1, bool TABLEHARDENED = true, bool PAGESHARDENED = false>
typedef UT_PageArray<DATA_T, TSIZE, TABLEHARDENED, PAGESHARDENED, GA_PAGE_BITS, GA_Offset> GA_PageArray< DATA_T, TSIZE, TABLEHARDENED, PAGESHARDENED >::Base

Definition at line 101 of file GA_PageArray.h.

template<typename DATA_T = void, exint TSIZE = -1, bool TABLEHARDENED = true, bool PAGESHARDENED = false>
typedef GA_PageArray<DATA_T, TSIZE, TABLEHARDENED, PAGESHARDENED> GA_PageArray< DATA_T, TSIZE, TABLEHARDENED, PAGESHARDENED >::ThisType

Definition at line 102 of file GA_PageArray.h.

Constructor & Destructor Documentation

template<typename DATA_T = void, exint TSIZE = -1, bool TABLEHARDENED = true, bool PAGESHARDENED = false>
GA_PageArray< DATA_T, TSIZE, TABLEHARDENED, PAGESHARDENED >::GA_PageArray ( )
inline

The default constructor can only be used if the tuple size and storage type are known at compile time. Unfortunately, this can't be asserted at compile time, because compilers aren't all that bright, but Base asserts it at runtime if paranoid asserts are on.

Definition at line 137 of file GA_PageArray.h.

template<typename DATA_T = void, exint TSIZE = -1, bool TABLEHARDENED = true, bool PAGESHARDENED = false>
GA_PageArray< DATA_T, TSIZE, TABLEHARDENED, PAGESHARDENED >::GA_PageArray ( exint  tuplesize)
inline

This constructor can only be used if the storage type is known at compile time, but the tuple size is not.

Definition at line 142 of file GA_PageArray.h.

template<typename DATA_T = void, exint TSIZE = -1, bool TABLEHARDENED = true, bool PAGESHARDENED = false>
GA_PageArray< DATA_T, TSIZE, TABLEHARDENED, PAGESHARDENED >::GA_PageArray ( GA_Storage  storage)
inline

This constructor can only be used if the storage type is known at compile time, but the tuple size is not.

Definition at line 147 of file GA_PageArray.h.

template<typename DATA_T = void, exint TSIZE = -1, bool TABLEHARDENED = true, bool PAGESHARDENED = false>
GA_PageArray< DATA_T, TSIZE, TABLEHARDENED, PAGESHARDENED >::GA_PageArray ( exint  tuplesize,
UT_Storage  storage 
)
inline

This constructor can only be used if the tuple size and storage type are unknown at compile time.

Definition at line 152 of file GA_PageArray.h.

template<typename DATA_T = void, exint TSIZE = -1, bool TABLEHARDENED = true, bool PAGESHARDENED = false>
GA_PageArray< DATA_T, TSIZE, TABLEHARDENED, PAGESHARDENED >::GA_PageArray ( exint  tuplesize,
GA_Storage  storage 
)
inline

This constructor can only be used if the tuple size and storage type are unknown at compile time.

Definition at line 157 of file GA_PageArray.h.

Member Function Documentation

template<typename DATA_T = void, exint TSIZE = -1, bool TABLEHARDENED = true, bool PAGESHARDENED = false>
template<exint DEST_TSIZE>
SYS_FORCE_INLINE const GA_PageArray<DATA_T,DEST_TSIZE,TABLEHARDENED,PAGESHARDENED>& GA_PageArray< DATA_T, TSIZE, TABLEHARDENED, PAGESHARDENED >::castTupleSize ( ) const
inline

This is for setting the TSIZE template after checking getTupleSize(), if TSIZE wasn't already known.

Definition at line 683 of file GA_PageArray.h.

template<typename DATA_T = void, exint TSIZE = -1, bool TABLEHARDENED = true, bool PAGESHARDENED = false>
template<exint DEST_TSIZE>
SYS_FORCE_INLINE GA_PageArray<DATA_T,DEST_TSIZE,TABLEHARDENED,PAGESHARDENED>& GA_PageArray< DATA_T, TSIZE, TABLEHARDENED, PAGESHARDENED >::castTupleSize ( )
inline

This is for setting the TSIZE template after checking getTupleSize(), if TSIZE wasn't already known.

Definition at line 691 of file GA_PageArray.h.

template<typename DATA_T = void, exint TSIZE = -1, bool TABLEHARDENED = true, bool PAGESHARDENED = false>
template<typename DEST_DATA_T >
SYS_FORCE_INLINE const GA_PageArray<DEST_DATA_T,TSIZE,TABLEHARDENED,PAGESHARDENED>& GA_PageArray< DATA_T, TSIZE, TABLEHARDENED, PAGESHARDENED >::castType ( ) const
inline

This is for setting the DATA_T template after checking getStorage(), if DATA_T wasn't already known.

Definition at line 662 of file GA_PageArray.h.

template<typename DATA_T = void, exint TSIZE = -1, bool TABLEHARDENED = true, bool PAGESHARDENED = false>
template<typename DEST_DATA_T >
SYS_FORCE_INLINE GA_PageArray<DEST_DATA_T,TSIZE,TABLEHARDENED,PAGESHARDENED>& GA_PageArray< DATA_T, TSIZE, TABLEHARDENED, PAGESHARDENED >::castType ( )
inline

This is for setting the DATA_T template after checking getStorage(), if DATA_T wasn't already known.

Definition at line 670 of file GA_PageArray.h.

template<typename DATA_T = void, exint TSIZE = -1, bool TABLEHARDENED = true, bool PAGESHARDENED = false>
void GA_PageArray< DATA_T, TSIZE, TABLEHARDENED, PAGESHARDENED >::comparePages ( UT_BitArray bits,
const ThisType that 
) const
inline

For each page, this sets a bit in bits iff there's a chance that the data in a page of this may be different from the data in the corresponding page of that. It will not clear bits. bits must be pre-sized to at least the number of pages in this, (which must be equal to the size of that). that must have the same tuple size and storage type as this. It will only check pointers and constant values. It will not compare full pages of data.

Definition at line 528 of file GA_PageArray.h.

template<typename DATA_T = void, exint TSIZE = -1, bool TABLEHARDENED = true, bool PAGESHARDENED = false>
template<typename SRC_DATA_T , exint SRC_TSIZE, bool SRC_TABLEHARDENED, bool SRC_PAGESHARDENED>
void GA_PageArray< DATA_T, TSIZE, TABLEHARDENED, PAGESHARDENED >::copy ( const GA_Range destrange,
const GA_PageArray< SRC_DATA_T, SRC_TSIZE, SRC_TABLEHARDENED, SRC_PAGESHARDENED > &  src,
const GA_Range srcrange 
)
inline

Definition at line 379 of file GA_PageArray.h.

template<typename DATA_T , exint TSIZE, bool TABLEHARDENED, bool PAGESHARDENED>
void GA_PageArray< DATA_T, TSIZE, TABLEHARDENED, PAGESHARDENED >::defragment ( const GA_Defragment defrag)

Include GA_PageArrayImpl.h to call this.

Definition at line 72 of file GA_PageArrayImpl.h.

template<typename DATA_T = void, exint TSIZE = -1, bool TABLEHARDENED = true, bool PAGESHARDENED = false>
template<typename T >
void GA_PageArray< DATA_T, TSIZE, TABLEHARDENED, PAGESHARDENED >::getRange ( const GA_Range srcrange,
T dest 
) const
inline

Definition at line 413 of file GA_PageArray.h.

template<typename DATA_T = void, exint TSIZE = -1, bool TABLEHARDENED = true, bool PAGESHARDENED = false>
SYS_FORCE_INLINE GA_Storage GA_PageArray< DATA_T, TSIZE, TABLEHARDENED, PAGESHARDENED >::getStorage ( ) const
inline

Get the storage type for each component of this GA_PageArray.

Definition at line 162 of file GA_PageArray.h.

template<typename DATA_T , exint TSIZE, bool TABLEHARDENED, bool PAGESHARDENED>
bool GA_PageArray< DATA_T, TSIZE, TABLEHARDENED, PAGESHARDENED >::jsonLoad ( UT_JSONParser p,
const GA_LoadMap map,
GA_AttributeOwner  owner 
)

Load data from a JSON stream Include GA_PageArrayImpl.h to call this.

Definition at line 988 of file GA_PageArrayImpl.h.

template<typename DATA_T , exint TSIZE, bool TABLEHARDENED, bool PAGESHARDENED>
bool GA_PageArray< DATA_T, TSIZE, TABLEHARDENED, PAGESHARDENED >::jsonSave ( UT_JSONWriter w,
const GA_Range range,
const GA_SaveOptions options = nullptr,
const UT_IntArray map = nullptr,
int  defvalue = -1 
) const

Save data to a JSON stream Include GA_PageArrayImpl.h to call this.

Definition at line 166 of file GA_PageArrayImpl.h.

template<typename DATA_T , exint TSIZE, bool TABLEHARDENED, bool PAGESHARDENED>
template<typename SRC_DATA_T , exint SRC_TSIZE, bool SRC_TABLEHARDENED, bool SRC_PAGESHARDENED>
void GA_PageArray< DATA_T, TSIZE, TABLEHARDENED, PAGESHARDENED >::mergeGrowArrayAndCopy ( const GA_MergeMap map,
GA_AttributeOwner  owner,
const GA_PageArray< SRC_DATA_T, SRC_TSIZE, SRC_TABLEHARDENED, SRC_PAGESHARDENED > &  src,
const GA_Defaults defaults 
)

Include GA_PageArrayImpl.h to call this.

Definition at line 95 of file GA_PageArrayImpl.h.

template<typename DATA_T = void, exint TSIZE = -1, bool TABLEHARDENED = true, bool PAGESHARDENED = false>
template<typename SRC_T >
void GA_PageArray< DATA_T, TSIZE, TABLEHARDENED, PAGESHARDENED >::setConstant ( const GA_Range range,
SRC_T  val 
)
inline

Definition at line 175 of file GA_PageArray.h.

template<typename DATA_T = void, exint TSIZE = -1, bool TABLEHARDENED = true, bool PAGESHARDENED = false>
void GA_PageArray< DATA_T, TSIZE, TABLEHARDENED, PAGESHARDENED >::setConstant ( const GA_Range range,
const GA_Defaults defaults 
)
inline

Definition at line 215 of file GA_PageArray.h.

template<typename DATA_T = void, exint TSIZE = -1, bool TABLEHARDENED = true, bool PAGESHARDENED = false>
SYS_FORCE_INLINE void GA_PageArray< DATA_T, TSIZE, TABLEHARDENED, PAGESHARDENED >::setConstant ( GA_Offset  start,
GA_Offset  end,
const GA_Defaults v 
)
inline

Definition at line 253 of file GA_PageArray.h.

template<typename DATA_T = void, exint TSIZE = -1, bool TABLEHARDENED = true, bool PAGESHARDENED = false>
template<typename SRC_T >
void GA_PageArray< DATA_T, TSIZE, TABLEHARDENED, PAGESHARDENED >::setConstant ( GA_Offset  start,
GA_Offset  end,
SRC_T  val 
)
inline

Definition at line 259 of file GA_PageArray.h.

template<typename DATA_T = void, exint TSIZE = -1, bool TABLEHARDENED = true, bool PAGESHARDENED = false>
template<typename SRC_T >
void GA_PageArray< DATA_T, TSIZE, TABLEHARDENED, PAGESHARDENED >::setConstantVector ( const GA_Range range,
const UT_FixedVector< SRC_T, theSafeTupleSize > &  val 
)
inline

Definition at line 295 of file GA_PageArray.h.

template<typename DATA_T = void, exint TSIZE = -1, bool TABLEHARDENED = true, bool PAGESHARDENED = false>
template<typename SRC_T >
void GA_PageArray< DATA_T, TSIZE, TABLEHARDENED, PAGESHARDENED >::setConstantVector ( GA_Offset  start,
GA_Offset  end,
const UT_FixedVector< SRC_T, theSafeTupleSize > &  val 
)
inline

Definition at line 336 of file GA_PageArray.h.

template<typename DATA_T = void, exint TSIZE = -1, bool TABLEHARDENED = true, bool PAGESHARDENED = false>
template<typename T >
void GA_PageArray< DATA_T, TSIZE, TABLEHARDENED, PAGESHARDENED >::setRange ( const GA_Range destrange,
const T src 
)
inline

Definition at line 467 of file GA_PageArray.h.

template<typename DATA_T = void, exint TSIZE = -1, bool TABLEHARDENED = true, bool PAGESHARDENED = false>
void GA_PageArray< DATA_T, TSIZE, TABLEHARDENED, PAGESHARDENED >::setStorage ( GA_Storage  storage)
inline

Set the storage type for each component of this GA_PageArray.

Definition at line 168 of file GA_PageArray.h.


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