VR-Vantage
Loading...
Searching...
No Matches
ImSpanAllocator< CHUNKS > Struct Template Reference

Public Member Functions

 ImSpanAllocator ()
void Reserve (int n, size_t sz, int a=4)
int GetArenaSizeInBytes ()
void SetArenaBasePtr (void *base_ptr)
void * GetSpanPtrBegin (int n)
void * GetSpanPtrEnd (int n)
template<typename T>
void GetSpan (int n, ImSpan< T > *span)

Public Attributes

char * BasePtr
int CurrOff
int CurrIdx
int Offsets [CHUNKS]
int Sizes [CHUNKS]

Constructor & Destructor Documentation

◆ ImSpanAllocator()

template<int CHUNKS>
ImSpanAllocator< CHUNKS >::ImSpanAllocator ( )
inline

Member Function Documentation

◆ Reserve()

template<int CHUNKS>
void ImSpanAllocator< CHUNKS >::Reserve ( int n,
size_t sz,
int a = 4 )
inline

◆ GetArenaSizeInBytes()

template<int CHUNKS>
int ImSpanAllocator< CHUNKS >::GetArenaSizeInBytes ( )
inline

References CurrOff.

◆ SetArenaBasePtr()

template<int CHUNKS>
void ImSpanAllocator< CHUNKS >::SetArenaBasePtr ( void * base_ptr)
inline

References BasePtr.

◆ GetSpanPtrBegin()

template<int CHUNKS>
void * ImSpanAllocator< CHUNKS >::GetSpanPtrBegin ( int n)
inline

References BasePtr, CurrIdx, IM_ASSERT, and Offsets.

Referenced by GetSpan().

◆ GetSpanPtrEnd()

template<int CHUNKS>
void * ImSpanAllocator< CHUNKS >::GetSpanPtrEnd ( int n)
inline

References BasePtr, CurrIdx, IM_ASSERT, Offsets, and Sizes.

Referenced by GetSpan().

◆ GetSpan()

template<int CHUNKS>
template<typename T>
void ImSpanAllocator< CHUNKS >::GetSpan ( int n,
ImSpan< T > * span )
inline

Member Data Documentation

◆ BasePtr

template<int CHUNKS>
char* ImSpanAllocator< CHUNKS >::BasePtr

◆ CurrOff

template<int CHUNKS>
int ImSpanAllocator< CHUNKS >::CurrOff

Referenced by GetArenaSizeInBytes(), and Reserve().

◆ CurrIdx

template<int CHUNKS>
int ImSpanAllocator< CHUNKS >::CurrIdx

◆ Offsets

template<int CHUNKS>
int ImSpanAllocator< CHUNKS >::Offsets[CHUNKS]

◆ Sizes

template<int CHUNKS>
int ImSpanAllocator< CHUNKS >::Sizes[CHUNKS]

Referenced by GetSpanPtrEnd(), and Reserve().


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