Classes | Public Types | Public Member Functions | Private Member Functions | Private Attributes | List of all members
BT_TinyXML2::MemPoolT< ITEM_SIZE > Class Template Reference

#include <tinyxml2.h>

Inheritance diagram for BT_TinyXML2::MemPoolT< ITEM_SIZE >:
Inheritance graph
[legend]

Classes

struct  Block
 
union  Item
 

Public Types

enum  { ITEMS_PER_BLOCK = (4 * 1024) / ITEM_SIZE }
 

Public Member Functions

virtual void * Alloc ()
 
void Clear ()
 
int CurrentAllocs () const
 
virtual void Free (void *mem)
 
virtual int ItemSize () const
 
 MemPoolT ()
 
void SetTracked ()
 
void Trace (const char *name)
 
int Untracked () const
 
 ~MemPoolT ()
 
- Public Member Functions inherited from BT_TinyXML2::MemPool
 MemPool ()
 
virtual ~MemPool ()
 

Private Member Functions

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

Private Attributes

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

Detailed Description

template<int ITEM_SIZE>
class BT_TinyXML2::MemPoolT< ITEM_SIZE >

Definition at line 346 of file tinyxml2.h.

Member Enumeration Documentation

template<int ITEM_SIZE>
anonymous enum
Enumerator
ITEMS_PER_BLOCK 

Definition at line 437 of file tinyxml2.h.

Constructor & Destructor Documentation

template<int ITEM_SIZE>
BT_TinyXML2::MemPoolT< ITEM_SIZE >::MemPoolT ( )
inline

Definition at line 349 of file tinyxml2.h.

template<int ITEM_SIZE>
BT_TinyXML2::MemPoolT< ITEM_SIZE >::~MemPoolT ( )
inline

Definition at line 350 of file tinyxml2.h.

template<int ITEM_SIZE>
BT_TinyXML2::MemPoolT< ITEM_SIZE >::MemPoolT ( const MemPoolT< ITEM_SIZE > &  )
private

Member Function Documentation

template<int ITEM_SIZE>
virtual void* BT_TinyXML2::MemPoolT< ITEM_SIZE >::Alloc ( )
inlinevirtual

Implements BT_TinyXML2::MemPool.

Definition at line 374 of file tinyxml2.h.

template<int ITEM_SIZE>
void BT_TinyXML2::MemPoolT< ITEM_SIZE >::Clear ( )
inline

Definition at line 354 of file tinyxml2.h.

template<int ITEM_SIZE>
int BT_TinyXML2::MemPoolT< ITEM_SIZE >::CurrentAllocs ( ) const
inline

Definition at line 370 of file tinyxml2.h.

template<int ITEM_SIZE>
virtual void BT_TinyXML2::MemPoolT< ITEM_SIZE >::Free ( void *  mem)
inlinevirtual

Implements BT_TinyXML2::MemPool.

Definition at line 400 of file tinyxml2.h.

template<int ITEM_SIZE>
virtual int BT_TinyXML2::MemPoolT< ITEM_SIZE >::ItemSize ( ) const
inlinevirtual

Implements BT_TinyXML2::MemPool.

Definition at line 367 of file tinyxml2.h.

template<int ITEM_SIZE>
void BT_TinyXML2::MemPoolT< ITEM_SIZE >::operator= ( const MemPoolT< ITEM_SIZE > &  )
private
template<int ITEM_SIZE>
void BT_TinyXML2::MemPoolT< ITEM_SIZE >::SetTracked ( )
inlinevirtual

Implements BT_TinyXML2::MemPool.

Definition at line 418 of file tinyxml2.h.

template<int ITEM_SIZE>
void BT_TinyXML2::MemPoolT< ITEM_SIZE >::Trace ( const char *  name)
inline

Definition at line 412 of file tinyxml2.h.

template<int ITEM_SIZE>
int BT_TinyXML2::MemPoolT< ITEM_SIZE >::Untracked ( ) const
inline

Definition at line 422 of file tinyxml2.h.

Member Data Documentation

template<int ITEM_SIZE>
DynArray< Block*, 10 > BT_TinyXML2::MemPoolT< ITEM_SIZE >::_blockPtrs
private

Definition at line 450 of file tinyxml2.h.

template<int ITEM_SIZE>
int BT_TinyXML2::MemPoolT< ITEM_SIZE >::_currentAllocs
private

Definition at line 453 of file tinyxml2.h.

template<int ITEM_SIZE>
int BT_TinyXML2::MemPoolT< ITEM_SIZE >::_maxAllocs
private

Definition at line 455 of file tinyxml2.h.

template<int ITEM_SIZE>
int BT_TinyXML2::MemPoolT< ITEM_SIZE >::_nAllocs
private

Definition at line 454 of file tinyxml2.h.

template<int ITEM_SIZE>
int BT_TinyXML2::MemPoolT< ITEM_SIZE >::_nUntracked
private

Definition at line 456 of file tinyxml2.h.

template<int ITEM_SIZE>
Item* BT_TinyXML2::MemPoolT< ITEM_SIZE >::_root
private

Definition at line 451 of file tinyxml2.h.


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


behaviotree_cpp_v3
Author(s): Michele Colledanchise, Davide Faconti
autogenerated on Tue May 4 2021 02:56:26