NumeRe v1.1.4
NumeRe: Framework für Numerische Rechnungen
tinyxml2::DynArray< T, INITIAL_SIZE > Class Template Reference

#include <tinyxml2.h>

Collaboration diagram for tinyxml2::DynArray< T, INITIAL_SIZE >:

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
 
void SwapRemove (int i)
 
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 [INITIAL_SIZE]
 
int _allocated
 
int _size
 

Detailed Description

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

Definition at line 206 of file tinyxml2.h.

Constructor & Destructor Documentation

◆ DynArray() [1/2]

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

Definition at line 209 of file tinyxml2.h.

◆ ~DynArray()

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

◆ DynArray() [2/2]

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

Member Function Documentation

◆ Capacity()

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

Definition at line 277 of file tinyxml2.h.

References tinyxml2::DynArray< T, INITIAL_SIZE >::_allocated, and TIXMLASSERT.

◆ Clear()

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

Definition at line 222 of file tinyxml2.h.

References tinyxml2::DynArray< T, INITIAL_SIZE >::_size.

◆ Empty()

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

Definition at line 253 of file tinyxml2.h.

References tinyxml2::DynArray< T, INITIAL_SIZE >::_size.

◆ EnsureCapacity()

◆ Mem() [1/2]

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

Definition at line 294 of file tinyxml2.h.

References tinyxml2::DynArray< T, INITIAL_SIZE >::_mem, and TIXMLASSERT.

◆ Mem() [2/2]

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

Definition at line 289 of file tinyxml2.h.

References tinyxml2::DynArray< T, INITIAL_SIZE >::_mem, and TIXMLASSERT.

◆ operator=()

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

◆ operator[]() [1/2]

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

◆ operator[]() [2/2]

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

◆ PeekTop()

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

◆ Pop()

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

◆ PopArr()

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

Definition at line 248 of file tinyxml2.h.

References tinyxml2::DynArray< T, INITIAL_SIZE >::_size, and TIXMLASSERT.

◆ Push()

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

Definition at line 226 of file tinyxml2.h.

References tinyxml2::DynArray< T, INITIAL_SIZE >::_mem, tinyxml2::DynArray< T, INITIAL_SIZE >::_size, tinyxml2::DynArray< T, INITIAL_SIZE >::EnsureCapacity(), and TIXMLASSERT.

Referenced by tinyxml2::XMLPrinter::OpenElement(), and tinyxml2::XMLPrinter::XMLPrinter().

Here is the call graph for this function:

◆ PushArr()

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

Definition at line 233 of file tinyxml2.h.

References tinyxml2::DynArray< T, INITIAL_SIZE >::_mem, tinyxml2::DynArray< T, INITIAL_SIZE >::_size, tinyxml2::DynArray< T, INITIAL_SIZE >::EnsureCapacity(), and TIXMLASSERT.

Referenced by tinyxml2::XMLPrinter::Print(), tinyxml2::XMLPrinter::Putc(), and tinyxml2::XMLPrinter::Write().

Here is the call graph for this function:

◆ Size()

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

Definition at line 272 of file tinyxml2.h.

References tinyxml2::DynArray< T, INITIAL_SIZE >::_size, and TIXMLASSERT.

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

◆ SwapRemove()

template<class T , int INITIAL_SIZE>
void tinyxml2::DynArray< T, INITIAL_SIZE >::SwapRemove ( int  i)
inline

Member Data Documentation

◆ _allocated

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

◆ _mem

◆ _pool

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

◆ _size


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