HDK
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
GA_Private::ga_DataArrayPage< T > Class Template Reference

#include <GA_DataArrayPageTableImpl.h>

Public Member Functions

 ga_DataArrayPage (GA_PageOff capacity)
 
 ~ga_DataArrayPage ()
 
int64 getMemoryUsage (bool inclusive) const
 Report memory usage (includes all shared memory) More...
 
void countMemory (UT_MemoryCounter &counter, bool inclusive) const
 
void ref () const
 
void unref ()
 
SYS_FORCE_INLINE bool isShared () const
 
ga_DataArrayPage< T > * copy (GA_PageOff newcapacity=GA_PageOff(GA_PAGE_SIZE)) const
 
const T * castToData () const
 
T * castToData ()
 
int capacity () const
 

Detailed Description

template<typename T>
class GA_Private::ga_DataArrayPage< T >

Definition at line 38 of file GA_DataArrayPageTableImpl.h.

Constructor & Destructor Documentation

template<typename T>
GA_Private::ga_DataArrayPage< T >::ga_DataArrayPage ( GA_PageOff  capacity)
inline

Definition at line 41 of file GA_DataArrayPageTableImpl.h.

template<typename T>
GA_Private::ga_DataArrayPage< T >::~ga_DataArrayPage ( )
inline

Definition at line 49 of file GA_DataArrayPageTableImpl.h.

Member Function Documentation

template<typename T>
int GA_Private::ga_DataArrayPage< T >::capacity ( ) const
inline

Definition at line 97 of file GA_DataArrayPageTableImpl.h.

template<typename T>
const T* GA_Private::ga_DataArrayPage< T >::castToData ( ) const
inline

Definition at line 94 of file GA_DataArrayPageTableImpl.h.

template<typename T>
T* GA_Private::ga_DataArrayPage< T >::castToData ( )
inline

Definition at line 95 of file GA_DataArrayPageTableImpl.h.

template<typename T>
ga_DataArrayPage<T>* GA_Private::ga_DataArrayPage< T >::copy ( GA_PageOff  newcapacity = GA_PageOff(GA_PAGE_SIZE)) const
inline

Definition at line 76 of file GA_DataArrayPageTableImpl.h.

template<typename T>
void GA_Private::ga_DataArrayPage< T >::countMemory ( UT_MemoryCounter counter,
bool  inclusive 
) const

Count memory usage using a UT_MemoryCounter in order to count shared memory correctly. If inclusive is true, the size of this object is counted, else only memory owned by this object is counted. If this is pointed to by the calling object, inclusive should be true. If this is contained in the calling object, inclusive should be false. (Its memory was already counted in the size of the calling object.)

template<typename T>
int64 GA_Private::ga_DataArrayPage< T >::getMemoryUsage ( bool  inclusive) const
inline

Report memory usage (includes all shared memory)

Definition at line 56 of file GA_DataArrayPageTableImpl.h.

template<typename T>
SYS_FORCE_INLINE bool GA_Private::ga_DataArrayPage< T >::isShared ( ) const
inline

Definition at line 73 of file GA_DataArrayPageTableImpl.h.

template<typename T>
void GA_Private::ga_DataArrayPage< T >::ref ( ) const
inline

Definition at line 71 of file GA_DataArrayPageTableImpl.h.

template<typename T>
void GA_Private::ga_DataArrayPage< T >::unref ( )
inline

Definition at line 72 of file GA_DataArrayPageTableImpl.h.


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