ECOGEN 4.0
Evolutive, Compressible, Open, Genuine, Easy, N-phase
Loading...
Searching...
No Matches
tinyxml2::DynArray< T, INIT > Class Template Reference

#include <tinyxml2.h>

Public Member Functions

 DynArray ()
 
 ~DynArray ()
 
void Clear ()
 
void Push (T t)
 
T * PushArr (int count)
 
Pop ()
 
void PopArr (int count)
 
bool Empty () const
 
T & operator[] (int i)
 
const T & operator[] (int i) const
 
const T & PeekTop () const
 
int Size () const
 
int Capacity () const
 
const T * Mem () const
 
T * Mem ()
 

Private Member Functions

 DynArray (const DynArray &)
 
void operator= (const DynArray &)
 
void EnsureCapacity (int cap)
 

Private Attributes

T * _mem
 
_pool [INIT]
 
int _allocated
 
int _size
 

Constructor & Destructor Documentation

◆ DynArray() [1/2]

template<class T , int INIT>
tinyxml2::DynArray< T, INIT >::DynArray ( )
inline

◆ ~DynArray()

template<class T , int INIT>
tinyxml2::DynArray< T, INIT >::~DynArray ( )
inline

◆ DynArray() [2/2]

template<class T , int INIT>
tinyxml2::DynArray< T, INIT >::DynArray ( const DynArray< T, INIT > &  )
private

Member Function Documentation

◆ Capacity()

template<class T , int INIT>
int tinyxml2::DynArray< T, INIT >::Capacity ( ) const
inline

◆ Clear()

template<class T , int INIT>
void tinyxml2::DynArray< T, INIT >::Clear ( )
inline

◆ Empty()

template<class T , int INIT>
bool tinyxml2::DynArray< T, INIT >::Empty ( ) const
inline

◆ EnsureCapacity()

template<class T , int INIT>
void tinyxml2::DynArray< T, INIT >::EnsureCapacity ( int  cap)
inlineprivate

◆ Mem() [1/2]

template<class T , int INIT>
T * tinyxml2::DynArray< T, INIT >::Mem ( )
inline

◆ Mem() [2/2]

template<class T , int INIT>
const T * tinyxml2::DynArray< T, INIT >::Mem ( ) const
inline

◆ operator=()

template<class T , int INIT>
void tinyxml2::DynArray< T, INIT >::operator= ( const DynArray< T, INIT > &  )
private

◆ operator[]() [1/2]

template<class T , int INIT>
T & tinyxml2::DynArray< T, INIT >::operator[] ( int  i)
inline

◆ operator[]() [2/2]

template<class T , int INIT>
const T & tinyxml2::DynArray< T, INIT >::operator[] ( int  i) const
inline

◆ PeekTop()

template<class T , int INIT>
const T & tinyxml2::DynArray< T, INIT >::PeekTop ( ) const
inline

◆ Pop()

template<class T , int INIT>
T tinyxml2::DynArray< T, INIT >::Pop ( )
inline

◆ PopArr()

template<class T , int INIT>
void tinyxml2::DynArray< T, INIT >::PopArr ( int  count)
inline

◆ Push()

template<class T , int INIT>
void tinyxml2::DynArray< T, INIT >::Push ( t)
inline

◆ PushArr()

template<class T , int INIT>
T * tinyxml2::DynArray< T, INIT >::PushArr ( int  count)
inline

◆ Size()

template<class T , int INIT>
int tinyxml2::DynArray< T, INIT >::Size ( ) const
inline

Member Data Documentation

◆ _allocated

template<class T , int INIT>
int tinyxml2::DynArray< T, INIT >::_allocated
private

◆ _mem

template<class T , int INIT>
T* tinyxml2::DynArray< T, INIT >::_mem
private

◆ _pool

template<class T , int INIT>
T tinyxml2::DynArray< T, INIT >::_pool[INIT]
private

◆ _size

template<class T , int INIT>
int tinyxml2::DynArray< T, INIT >::_size
private

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