Twitch SDK (Internal)
Classes | Public Types | Public Member Functions | Private Member Functions | Private Attributes | List of all members
ttv::xml::MemPoolT< SIZE > Class Template Reference

#include <tinyxml2.h>

Inheritance diagram for ttv::xml::MemPoolT< SIZE >:
ttv::xml::MemPool

Classes

struct  Block
 
union  Chunk
 

Public Types

enum  { COUNT = (4*1024)/SIZE }
 

Public Member Functions

 MemPoolT ()
 
 ~MemPoolT ()
 
void Clear ()
 
virtual int ItemSize () const
 
int CurrentAllocs () const
 
virtual void * Alloc ()
 
virtual void Free (void *mem)
 
void Trace (const char *name)
 
void SetTracked ()
 
int Untracked () const
 

Private Member Functions

 MemPoolT (const MemPoolT &)
 
void operator= (const MemPoolT &)
 

Private Attributes

DynArray< Block *, 10 > _blockPtrs
 
Chunk_root
 
int _currentAllocs
 
int _nAllocs
 
int _maxAllocs
 
int _nUntracked
 

Class Documentation

◆ ttv::xml::MemPoolT::Block

struct ttv::xml::MemPoolT::Block

template<int SIZE>
struct ttv::xml::MemPoolT< SIZE >::Block

Class Members
Chunk chunk[COUNT]

◆ ttv::xml::MemPoolT::Chunk

union ttv::xml::MemPoolT::Chunk

template<int SIZE>
union ttv::xml::MemPoolT< SIZE >::Chunk

Class Members
char mem[SIZE]
Chunk * next

Member Enumeration Documentation

◆ anonymous enum

template<int SIZE>
anonymous enum
Enumerator
COUNT 

Constructor & Destructor Documentation

◆ MemPoolT() [1/2]

template<int SIZE>
ttv::xml::MemPoolT< SIZE >::MemPoolT ( )
inline

◆ ~MemPoolT()

template<int SIZE>
ttv::xml::MemPoolT< SIZE >::~MemPoolT ( )
inline

◆ MemPoolT() [2/2]

template<int SIZE>
ttv::xml::MemPoolT< SIZE >::MemPoolT ( const MemPoolT< SIZE > &  )
private

Member Function Documentation

◆ Alloc()

template<int SIZE>
virtual void* ttv::xml::MemPoolT< SIZE >::Alloc ( )
inlinevirtual

Implements ttv::xml::MemPool.

◆ Clear()

template<int SIZE>
void ttv::xml::MemPoolT< SIZE >::Clear ( )
inlinevirtual

Implements ttv::xml::MemPool.

◆ CurrentAllocs()

template<int SIZE>
int ttv::xml::MemPoolT< SIZE >::CurrentAllocs ( ) const
inline

◆ Free()

template<int SIZE>
virtual void ttv::xml::MemPoolT< SIZE >::Free ( void *  mem)
inlinevirtual

Implements ttv::xml::MemPool.

◆ ItemSize()

template<int SIZE>
virtual int ttv::xml::MemPoolT< SIZE >::ItemSize ( ) const
inlinevirtual

Implements ttv::xml::MemPool.

◆ operator=()

template<int SIZE>
void ttv::xml::MemPoolT< SIZE >::operator= ( const MemPoolT< SIZE > &  )
private

◆ SetTracked()

template<int SIZE>
void ttv::xml::MemPoolT< SIZE >::SetTracked ( )
inlinevirtual

Implements ttv::xml::MemPool.

◆ Trace()

template<int SIZE>
void ttv::xml::MemPoolT< SIZE >::Trace ( const char *  name)
inline

◆ Untracked()

template<int SIZE>
int ttv::xml::MemPoolT< SIZE >::Untracked ( ) const
inline

Member Data Documentation

◆ _blockPtrs

template<int SIZE>
DynArray< Block*, 10 > ttv::xml::MemPoolT< SIZE >::_blockPtrs
private

◆ _currentAllocs

template<int SIZE>
int ttv::xml::MemPoolT< SIZE >::_currentAllocs
private

◆ _maxAllocs

template<int SIZE>
int ttv::xml::MemPoolT< SIZE >::_maxAllocs
private

◆ _nAllocs

template<int SIZE>
int ttv::xml::MemPoolT< SIZE >::_nAllocs
private

◆ _nUntracked

template<int SIZE>
int ttv::xml::MemPoolT< SIZE >::_nUntracked
private

◆ _root

template<int SIZE>
Chunk* ttv::xml::MemPoolT< SIZE >::_root
private

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