hxa7241_general::Array< TYPE > Class Template Reference

#include <Array.h>

Collaboration diagram for hxa7241_general::Array< TYPE >:

Collaboration graph
[legend]
List of all members.

Public Member Functions

 Array ()
 standard object services ---------------------------------------------------
 Array (dword length)
 ~Array ()
 Array (const Array &)
Arrayoperator= (const Array &)
void setLength (dword length)
 commands -------------------------------------------------------------------
void swap (Array &)
void append (const TYPE &)
void remove (int index)
void zeroStorage ()
TYPE * getStorage ()
TYPE & operator[] (int index)
dword getLength () const
 queries --------------------------------------------------------------------
bool isEmpty () const
const TYPE * getStorage () const
const TYPE & operator[] (int index) const

Static Public Member Functions

static dword getMaxLength ()

Protected Member Functions

void assign (const Array< TYPE > &)
 implementation -------------------------------------------------------------
void acquireStorage (dword length, bool isCopied)

Static Protected Member Functions

static void copyObjects (TYPE *lValStart, const TYPE *rValStart, dword length)

Detailed Description

template<class TYPE>
class hxa7241_general::Array< TYPE >

A simpler, compacter alternative to std::vector.

Length is explicit - there is no hidden reserve.

* pStorage_m is 0 or a valid address
* length_m is >= 0 and <= getMaxLength() (DWORD_MAX)


Constructor & Destructor Documentation

template<class TYPE>
hxa7241_general::Array< TYPE >::Array (  ) 

standard object services ---------------------------------------------------

template<class TYPE>
hxa7241_general::Array< TYPE >::Array ( dword  length  )  [explicit]

template<class TYPE>
hxa7241_general::Array< TYPE >::~Array (  ) 

template<class TYPE>
hxa7241_general::Array< TYPE >::Array ( const Array< TYPE > &   ) 


Member Function Documentation

template<class TYPE>
Array< TYPE > & hxa7241_general::Array< TYPE >::operator= ( const Array< TYPE > &   ) 

template<class TYPE>
void hxa7241_general::Array< TYPE >::setLength ( dword  length  ) 

commands -------------------------------------------------------------------

template<class TYPE>
void hxa7241_general::Array< TYPE >::swap ( Array< TYPE > &   ) 

template<class TYPE>
void hxa7241_general::Array< TYPE >::append ( const TYPE &   ) 

template<class TYPE>
void hxa7241_general::Array< TYPE >::remove ( int  index  ) 

template<class TYPE>
void hxa7241_general::Array< TYPE >::zeroStorage (  ) 

template<class TYPE>
TYPE * hxa7241_general::Array< TYPE >::getStorage (  )  [inline]

template<class TYPE>
TYPE & hxa7241_general::Array< TYPE >::operator[] ( int  index  )  [inline]

template<class TYPE>
dword hxa7241_general::Array< TYPE >::getLength (  )  const [inline]

queries --------------------------------------------------------------------

template<class TYPE>
bool hxa7241_general::Array< TYPE >::isEmpty (  )  const [inline]

template<class TYPE>
dword hxa7241_general::Array< TYPE >::getMaxLength (  )  [inline, static]

template<class TYPE>
const TYPE * hxa7241_general::Array< TYPE >::getStorage (  )  const [inline]

template<class TYPE>
const TYPE & hxa7241_general::Array< TYPE >::operator[] ( int  index  )  const [inline]

template<class TYPE>
void hxa7241_general::Array< TYPE >::assign ( const Array< TYPE > &   )  [protected]

implementation -------------------------------------------------------------

template<class TYPE>
void hxa7241_general::Array< TYPE >::acquireStorage ( dword  length,
bool  isCopied 
) [protected]

template<class TYPE>
void hxa7241_general::Array< TYPE >::copyObjects ( TYPE *  lValStart,
const TYPE *  rValStart,
dword  length 
) [static, protected]


The documentation for this class was generated from the following file:
Generated on Fri Feb 13 13:58:44 2009 for meshmorph by  doxygen 1.5.1