MIDAS  0.75
 All Classes Namespaces Files Functions Variables Enumerations Enumerator Friends Macros
Public Member Functions | Private Member Functions | Private Attributes | List of all members
tinyxml2::DynArray< T, INIT > Class Template Reference

#include <tinyxml2.h>

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
 
const T & PeekTop () 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
 

Detailed Description

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

Definition at line 204 of file tinyxml2.h.

Constructor & Destructor Documentation

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

Definition at line 207 of file tinyxml2.h.

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

Definition at line 213 of file tinyxml2.h.

Member Function Documentation

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

Definition at line 263 of file tinyxml2.h.

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

Definition at line 240 of file tinyxml2.h.

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

Definition at line 267 of file tinyxml2.h.

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

Definition at line 271 of file tinyxml2.h.

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

Definition at line 244 of file tinyxml2.h.

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

Definition at line 249 of file tinyxml2.h.

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

Definition at line 254 of file tinyxml2.h.

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

Definition at line 231 of file tinyxml2.h.

Referenced by tinyxml2::XMLPrinter::CloseElement().

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

Definition at line 235 of file tinyxml2.h.

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

Definition at line 224 of file tinyxml2.h.

Referenced by tinyxml2::XMLPrinter::Print().

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

Definition at line 259 of file tinyxml2.h.

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: