HDK
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
GA_ListTypeRef< FromType, ToType, INT_TYPE >::ListTypeData Class Reference

#include <GA_OffsetList.h>

Public Member Functions

ListTypeDatareallocate (exint new_capacity)
 
ListTypeDatabumpCapacity (exint mincapacity)
 
ListTypeDatasetCapacity (exint new_capacity)
 
ListTypeDatacopy (exint size, exint new_capacity) const
 
void ref () const
 
void unref ()
 
bool isShared () const
 
SYS_FORCE_INLINE int64 getMemoryUsage (bool inclusive) const
 
void countMemory (UT_MemoryCounter &counter, bool inclusive) const
 
SYS_FORCE_INLINE GA_Size capacity () const
 
bool isTrivial (exint size) const
 
bool isAscending (exint size) const
 
ListTypeDatasetEntries (GA_Size sz, exint old_size, bool doresize=true)
 
FromType insert (FromType index, ToType value, FromType size)
 
FromType multipleInsert (FromType index, GA_Size count, FromType size)
 
FromType remove (FromType i, FromType size)
 
FromType findAndRemove (ToType v, FromType size)
 
GA_Size removeAll (ToType v, FromType size)
 
FromType find (ToType v, FromType s, FromType size) const
 
FromType findSorted (ToType v, FromType s, FromType size) const
 
SYS_FORCE_INLINE INT_TYPE & operator() (exint index)
 
SYS_FORCE_INLINE const INT_TYPE & operator() (exint index) const
 
SYS_FORCE_INLINE void set (FromType index, ToType value)
 
SYS_FORCE_INLINE ToType get (FromType index) const
 
void constant (ToType value, FromType size)
 
template<typename S >
void set (const S *data, exint size, ToType offset)
 
template<typename S >
void copyAdd (FromType destindex, const S *values, GA_Size srcindex, GA_Size n, ToType offset)
 
template<typename S >
void copyAdd (FromType destindex, const GA_ListTypeRef< FromType, ToType, S > &values, FromType srcindex, GA_Size n, ToType offset)
 
void cycle (GA_Size how_many, FromType size)
 
void reverse (FromType size)
 
void sortAscending (FromType size)
 
FromType sortAndRemoveDuplicates (FromType size)
 
FromType findInRange (FromType start, FromType end, ToType search) const
 
FromType findInRangeNotEqual (FromType start, FromType end, ToType search) const
 
FromType findValidInRange (FromType start, FromType end) const
 
FromType findInvalidInRange (FromType start, FromType end) const
 
SYS_FORCE_INLINE const INT_TYPE * getRawData () const
 
SYS_FORCE_INLINE INT_TYPE * getRawData ()
 

Static Public Member Functions

static ListTypeDataallocate (exint capacity)
 

Detailed Description

template<typename FromType, typename ToType, typename INT_TYPE = exint>
class GA_ListTypeRef< FromType, ToType, INT_TYPE >::ListTypeData

Definition at line 63 of file GA_OffsetList.h.

Member Function Documentation

template<typename FromType, typename ToType, typename INT_TYPE = exint>
static ListTypeData* GA_ListTypeRef< FromType, ToType, INT_TYPE >::ListTypeData::allocate ( exint  capacity)
inlinestatic

Definition at line 66 of file GA_OffsetList.h.

template<typename FromType, typename ToType, typename INT_TYPE = exint>
ListTypeData* GA_ListTypeRef< FromType, ToType, INT_TYPE >::ListTypeData::bumpCapacity ( exint  mincapacity)
inline

Definition at line 106 of file GA_OffsetList.h.

template<typename FromType, typename ToType, typename INT_TYPE = exint>
SYS_FORCE_INLINE GA_Size GA_ListTypeRef< FromType, ToType, INT_TYPE >::ListTypeData::capacity ( ) const
inline

Definition at line 190 of file GA_OffsetList.h.

template<typename FromType, typename ToType, typename INT_TYPE = exint>
void GA_ListTypeRef< FromType, ToType, INT_TYPE >::ListTypeData::constant ( ToType  value,
FromType  size 
)
inline

Definition at line 313 of file GA_OffsetList.h.

template<typename FromType, typename ToType, typename INT_TYPE = exint>
ListTypeData* GA_ListTypeRef< FromType, ToType, INT_TYPE >::ListTypeData::copy ( exint  size,
exint  new_capacity 
) const
inline

Definition at line 131 of file GA_OffsetList.h.

template<typename FromType, typename ToType, typename INT_TYPE = exint>
template<typename S >
void GA_ListTypeRef< FromType, ToType, INT_TYPE >::ListTypeData::copyAdd ( FromType  destindex,
const S values,
GA_Size  srcindex,
GA_Size  n,
ToType  offset 
)
inline

Definition at line 339 of file GA_OffsetList.h.

template<typename FromType, typename ToType, typename INT_TYPE = exint>
template<typename S >
void GA_ListTypeRef< FromType, ToType, INT_TYPE >::ListTypeData::copyAdd ( FromType  destindex,
const GA_ListTypeRef< FromType, ToType, S > &  values,
FromType  srcindex,
GA_Size  n,
ToType  offset 
)
inline

Definition at line 346 of file GA_OffsetList.h.

template<typename FromType, typename ToType, typename INT_TYPE = exint>
void GA_ListTypeRef< FromType, ToType, INT_TYPE >::ListTypeData::countMemory ( UT_MemoryCounter counter,
bool  inclusive 
) const
template<typename FromType, typename ToType, typename INT_TYPE = exint>
void GA_ListTypeRef< FromType, ToType, INT_TYPE >::ListTypeData::cycle ( GA_Size  how_many,
FromType  size 
)
inline

Definition at line 363 of file GA_OffsetList.h.

template<typename FromType, typename ToType, typename INT_TYPE = exint>
FromType GA_ListTypeRef< FromType, ToType, INT_TYPE >::ListTypeData::find ( ToType  v,
FromType  s,
FromType  size 
) const
inline

Definition at line 281 of file GA_OffsetList.h.

template<typename FromType, typename ToType, typename INT_TYPE = exint>
FromType GA_ListTypeRef< FromType, ToType, INT_TYPE >::ListTypeData::findAndRemove ( ToType  v,
FromType  size 
)
inline

Definition at line 245 of file GA_OffsetList.h.

template<typename FromType, typename ToType, typename INT_TYPE = exint>
FromType GA_ListTypeRef< FromType, ToType, INT_TYPE >::ListTypeData::findInRange ( FromType  start,
FromType  end,
ToType  search 
) const
inline

Definition at line 413 of file GA_OffsetList.h.

template<typename FromType, typename ToType, typename INT_TYPE = exint>
FromType GA_ListTypeRef< FromType, ToType, INT_TYPE >::ListTypeData::findInRangeNotEqual ( FromType  start,
FromType  end,
ToType  search 
) const
inline

Definition at line 423 of file GA_OffsetList.h.

template<typename FromType, typename ToType, typename INT_TYPE = exint>
FromType GA_ListTypeRef< FromType, ToType, INT_TYPE >::ListTypeData::findInvalidInRange ( FromType  start,
FromType  end 
) const
inline

Definition at line 444 of file GA_OffsetList.h.

template<typename FromType, typename ToType, typename INT_TYPE = exint>
FromType GA_ListTypeRef< FromType, ToType, INT_TYPE >::ListTypeData::findSorted ( ToType  v,
FromType  s,
FromType  size 
) const
template<typename FromType, typename ToType, typename INT_TYPE = exint>
FromType GA_ListTypeRef< FromType, ToType, INT_TYPE >::ListTypeData::findValidInRange ( FromType  start,
FromType  end 
) const
inline

Definition at line 434 of file GA_OffsetList.h.

template<typename FromType, typename ToType, typename INT_TYPE = exint>
SYS_FORCE_INLINE ToType GA_ListTypeRef< FromType, ToType, INT_TYPE >::ListTypeData::get ( FromType  index) const
inline

Definition at line 310 of file GA_OffsetList.h.

template<typename FromType, typename ToType, typename INT_TYPE = exint>
SYS_FORCE_INLINE int64 GA_ListTypeRef< FromType, ToType, INT_TYPE >::ListTypeData::getMemoryUsage ( bool  inclusive) const
inline

Definition at line 184 of file GA_OffsetList.h.

template<typename FromType, typename ToType, typename INT_TYPE = exint>
SYS_FORCE_INLINE const INT_TYPE* GA_ListTypeRef< FromType, ToType, INT_TYPE >::ListTypeData::getRawData ( ) const
inline

Definition at line 456 of file GA_OffsetList.h.

template<typename FromType, typename ToType, typename INT_TYPE = exint>
SYS_FORCE_INLINE INT_TYPE* GA_ListTypeRef< FromType, ToType, INT_TYPE >::ListTypeData::getRawData ( )
inline

Definition at line 461 of file GA_OffsetList.h.

template<typename FromType, typename ToType, typename INT_TYPE = exint>
FromType GA_ListTypeRef< FromType, ToType, INT_TYPE >::ListTypeData::insert ( FromType  index,
ToType  value,
FromType  size 
)
template<typename FromType, typename ToType, typename INT_TYPE = exint>
bool GA_ListTypeRef< FromType, ToType, INT_TYPE >::ListTypeData::isAscending ( exint  size) const
inline

Definition at line 208 of file GA_OffsetList.h.

template<typename FromType, typename ToType, typename INT_TYPE = exint>
bool GA_ListTypeRef< FromType, ToType, INT_TYPE >::ListTypeData::isShared ( ) const
inline

Definition at line 180 of file GA_OffsetList.h.

template<typename FromType, typename ToType, typename INT_TYPE = exint>
bool GA_ListTypeRef< FromType, ToType, INT_TYPE >::ListTypeData::isTrivial ( exint  size) const
inline

Definition at line 193 of file GA_OffsetList.h.

template<typename FromType, typename ToType, typename INT_TYPE = exint>
FromType GA_ListTypeRef< FromType, ToType, INT_TYPE >::ListTypeData::multipleInsert ( FromType  index,
GA_Size  count,
FromType  size 
)
template<typename FromType, typename ToType, typename INT_TYPE = exint>
SYS_FORCE_INLINE INT_TYPE& GA_ListTypeRef< FromType, ToType, INT_TYPE >::ListTypeData::operator() ( exint  index)
inline

Definition at line 297 of file GA_OffsetList.h.

template<typename FromType, typename ToType, typename INT_TYPE = exint>
SYS_FORCE_INLINE const INT_TYPE& GA_ListTypeRef< FromType, ToType, INT_TYPE >::ListTypeData::operator() ( exint  index) const
inline

Definition at line 302 of file GA_OffsetList.h.

template<typename FromType, typename ToType, typename INT_TYPE = exint>
ListTypeData* GA_ListTypeRef< FromType, ToType, INT_TYPE >::ListTypeData::reallocate ( exint  new_capacity)
inline

Definition at line 86 of file GA_OffsetList.h.

template<typename FromType, typename ToType, typename INT_TYPE = exint>
void GA_ListTypeRef< FromType, ToType, INT_TYPE >::ListTypeData::ref ( ) const
inline

Definition at line 144 of file GA_OffsetList.h.

template<typename FromType, typename ToType, typename INT_TYPE = exint>
FromType GA_ListTypeRef< FromType, ToType, INT_TYPE >::ListTypeData::remove ( FromType  i,
FromType  size 
)
inline

Definition at line 233 of file GA_OffsetList.h.

template<typename FromType, typename ToType, typename INT_TYPE = exint>
GA_Size GA_ListTypeRef< FromType, ToType, INT_TYPE >::ListTypeData::removeAll ( ToType  v,
FromType  size 
)
inline

Definition at line 264 of file GA_OffsetList.h.

template<typename FromType, typename ToType, typename INT_TYPE = exint>
void GA_ListTypeRef< FromType, ToType, INT_TYPE >::ListTypeData::reverse ( FromType  size)
inline

Definition at line 374 of file GA_OffsetList.h.

template<typename FromType, typename ToType, typename INT_TYPE = exint>
SYS_FORCE_INLINE void GA_ListTypeRef< FromType, ToType, INT_TYPE >::ListTypeData::set ( FromType  index,
ToType  value 
)
inline

Definition at line 307 of file GA_OffsetList.h.

template<typename FromType, typename ToType, typename INT_TYPE = exint>
template<typename S >
void GA_ListTypeRef< FromType, ToType, INT_TYPE >::ListTypeData::set ( const S data,
exint  size,
ToType  offset 
)
inline

Definition at line 321 of file GA_OffsetList.h.

template<typename FromType, typename ToType, typename INT_TYPE = exint>
ListTypeData* GA_ListTypeRef< FromType, ToType, INT_TYPE >::ListTypeData::setCapacity ( exint  new_capacity)
inline

Definition at line 119 of file GA_OffsetList.h.

template<typename FromType, typename ToType, typename INT_TYPE = exint>
ListTypeData* GA_ListTypeRef< FromType, ToType, INT_TYPE >::ListTypeData::setEntries ( GA_Size  sz,
exint  old_size,
bool  doresize = true 
)
template<typename FromType, typename ToType, typename INT_TYPE = exint>
FromType GA_ListTypeRef< FromType, ToType, INT_TYPE >::ListTypeData::sortAndRemoveDuplicates ( FromType  size)
inline

Definition at line 386 of file GA_OffsetList.h.

template<typename FromType, typename ToType, typename INT_TYPE = exint>
void GA_ListTypeRef< FromType, ToType, INT_TYPE >::ListTypeData::sortAscending ( FromType  size)
inline

Definition at line 380 of file GA_OffsetList.h.

template<typename FromType, typename ToType, typename INT_TYPE = exint>
void GA_ListTypeRef< FromType, ToType, INT_TYPE >::ListTypeData::unref ( )
inline

Definition at line 160 of file GA_OffsetList.h.


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