HDK
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros 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 howMany, 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 61 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 64 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 102 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 180 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 302 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 123 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 326 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 333 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  howMany,
FromType  size 
)
inline

Definition at line 350 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 271 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 235 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 400 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 410 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 431 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 421 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 300 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 174 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 443 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 448 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 198 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 170 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 183 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 287 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 292 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 84 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 136 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 223 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 254 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 361 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 297 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 310 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 113 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 373 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 367 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 152 of file GA_OffsetList.h.


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