Virtual Belgium  2.0
A micro-simulation platform for the Belgian population
 All Classes Namespaces Files Functions Variables Typedefs Enumerator Friends Macros Pages
tinyxml2::DynArray< T, INIT > Class Template Reference

#include <tinyxml2.hpp>

Public Member Functions

 DynArray ()
 
 ~DynArray ()
 
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
 
int Size () const
 
int Capacity () const
 
const T * Mem () const
 
T * Mem ()
 

Private Member Functions

void EnsureCapacity (int cap)
 

Private Attributes

T * mem
 
pool [INIT]
 
int allocated
 
int size
 

Constructor & Destructor Documentation

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

Member Function Documentation

template<class T, int INIT>
int tinyxml2::DynArray< T, INIT >::Capacity ( ) const
inline
template<class T, int INIT>
bool tinyxml2::DynArray< T, INIT >::Empty ( ) const
inline
template<class T, int INIT>
void tinyxml2::DynArray< T, INIT >::EnsureCapacity ( int  cap)
inlineprivate
template<class T, int INIT>
const T* tinyxml2::DynArray< T, INIT >::Mem ( ) const
inline
template<class T, int INIT>
T* tinyxml2::DynArray< T, INIT >::Mem ( )
inline
template<class T, int INIT>
T& tinyxml2::DynArray< T, INIT >::operator[] ( int  i)
inline
template<class T, int INIT>
const T& tinyxml2::DynArray< T, INIT >::operator[] ( int  i) const
inline
template<class T, int INIT>
T tinyxml2::DynArray< T, INIT >::Pop ( )
inline
template<class T, int INIT>
void tinyxml2::DynArray< T, INIT >::PopArr ( int  count)
inline
template<class T, int INIT>
void tinyxml2::DynArray< T, INIT >::Push ( t)
inline
template<class T, int INIT>
T* tinyxml2::DynArray< T, INIT >::PushArr ( int  count)
inline
template<class T, int INIT>
int tinyxml2::DynArray< T, INIT >::Size ( ) const
inline

Member Data Documentation

template<class T, int INIT>
int tinyxml2::DynArray< T, INIT >::allocated
private
template<class T, int INIT>
T* tinyxml2::DynArray< T, INIT >::mem
private
template<class T, int INIT>
T tinyxml2::DynArray< T, INIT >::pool[INIT]
private
template<class T, int INIT>
int tinyxml2::DynArray< T, INIT >::size
private

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