base::TempArray< T, TEMP, TEMP_SIZE > Class Template Reference

Template class for reusing a pre-allocated array for speed. More...

#include <base_types_array.hh>

Inheritance diagram for base::TempArray< T, TEMP, TEMP_SIZE >:

base::NonThreadable base::Shared

List of all members.

Public Types

typedef T Type

Public Member Functions

 TempArray (void)
 TempArray (uint cnt)
 ~TempArray ()
T * PTR (void) const
const T * CONST_PTR (void) const
T & operator[] (uint i)
const T & operator[] (uint i) const
void push_back (const T &val)
uint empty (void) const
uint size (void) const
void resize (uint cnt)
void reserve (UNUSED uint cnt)

Private Attributes

uint mSize


Detailed Description

template<typename T, T * TEMP, uint TEMP_SIZE>
class base::TempArray< T, TEMP, TEMP_SIZE >

Template class for reusing a pre-allocated array for speed.

Remarks:
NOTE: Client must the underlying memory allocated (passed as template args).

Member Typedef Documentation

template<typename T, T * TEMP, uint TEMP_SIZE>
typedef T base::TempArray< T, TEMP, TEMP_SIZE >::Type


Constructor & Destructor Documentation

template<typename T, T * TEMP, uint TEMP_SIZE>
base::TempArray< T, TEMP, TEMP_SIZE >::TempArray ( void   )  [inline]

template<typename T, T * TEMP, uint TEMP_SIZE>
base::TempArray< T, TEMP, TEMP_SIZE >::TempArray ( uint  cnt  )  [inline, explicit]

template<typename T, T * TEMP, uint TEMP_SIZE>
base::TempArray< T, TEMP, TEMP_SIZE >::~TempArray (  )  [inline]


Member Function Documentation

template<typename T, T * TEMP, uint TEMP_SIZE>
T* base::TempArray< T, TEMP, TEMP_SIZE >::PTR ( void   )  const [inline]

template<typename T, T * TEMP, uint TEMP_SIZE>
const T* base::TempArray< T, TEMP, TEMP_SIZE >::CONST_PTR ( void   )  const [inline]

template<typename T, T * TEMP, uint TEMP_SIZE>
T& base::TempArray< T, TEMP, TEMP_SIZE >::operator[] ( uint  i  )  [inline]

template<typename T, T * TEMP, uint TEMP_SIZE>
const T& base::TempArray< T, TEMP, TEMP_SIZE >::operator[] ( uint  i  )  const [inline]

template<typename T, T * TEMP, uint TEMP_SIZE>
void base::TempArray< T, TEMP, TEMP_SIZE >::push_back ( const T &  val  )  [inline]

template<typename T, T * TEMP, uint TEMP_SIZE>
uint base::TempArray< T, TEMP, TEMP_SIZE >::empty ( void   )  const [inline]

template<typename T, T * TEMP, uint TEMP_SIZE>
uint base::TempArray< T, TEMP, TEMP_SIZE >::size ( void   )  const [inline]

template<typename T, T * TEMP, uint TEMP_SIZE>
void base::TempArray< T, TEMP, TEMP_SIZE >::resize ( uint  cnt  )  [inline]

template<typename T, T * TEMP, uint TEMP_SIZE>
void base::TempArray< T, TEMP, TEMP_SIZE >::reserve ( UNUSED uint  cnt  )  [inline]


Member Data Documentation

template<typename T, T * TEMP, uint TEMP_SIZE>
uint base::TempArray< T, TEMP, TEMP_SIZE >::mSize [private]


The documentation for this class was generated from the following file: Palomino 3D Engine documents generated by doxygen 1.5.3 on Fri Nov 23 11:26:20 2007