Bike-X  0.8
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros
tinyxml2::DynArray< T, INIT > Class Template Reference

#include "tinyxml2.h"

Inheritance diagram for tinyxml2::DynArray< T, INIT >:
Inheritance graph
Collaboration diagram for tinyxml2::DynArray< T, INIT >:
Collaboration graph

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
 

Detailed Description

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

Definition at line 188 of file tinyxml2.h.

Constructor & Destructor Documentation

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

Definition at line 191 of file tinyxml2.h.

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

Definition at line 197 of file tinyxml2.h.

Member Function Documentation

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

Definition at line 242 of file tinyxml2.h.

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

Definition at line 224 of file tinyxml2.h.

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

Definition at line 255 of file tinyxml2.h.

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

Definition at line 246 of file tinyxml2.h.

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

Definition at line 250 of file tinyxml2.h.

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

Definition at line 228 of file tinyxml2.h.

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

Definition at line 233 of file tinyxml2.h.

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

Definition at line 215 of file tinyxml2.h.

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

Definition at line 219 of file tinyxml2.h.

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

Definition at line 203 of file tinyxml2.h.

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

Definition at line 208 of file tinyxml2.h.

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

Definition at line 238 of file tinyxml2.h.

Field Documentation

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

Definition at line 270 of file tinyxml2.h.

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

Definition at line 268 of file tinyxml2.h.

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

Definition at line 269 of file tinyxml2.h.

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

Definition at line 271 of file tinyxml2.h.


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