Main Page | Modules | Namespace List | Class Hierarchy | Alphabetical List | Class List | Directories | File List | Namespace Members | Class Members | File Members | Related Pages

simth::checkedVector< T > Class Template Reference
[Additional container classes]

#include <checkedvector.h>

List of all members.

Public Types

typedef std::vector< T
>::iterator 
iterator
typedef std::vector< T
>::const_iterator 
const_iterator
typedef std::vector< T
>::reference 
reference
typedef std::vector< T
>::const_reference 
const_reference

Public Member Functions

 checkedVector ()
 checkedVector (unsigned int size, const T &val=T())
const_reference operator[] (unsigned int pos) const
reference operator[] (unsigned int pos)
void assign (unsigned int size, const T &val)
checkedVector< T > & operator= (const checkedVector< T > &from)
checkedVector< T > & operator= (const std::vector< T > &from)


Detailed Description

template<class T>
class simth::checkedVector< T >

The class checkedVector<T> acts like a std::vector<T> with an additional out of bounds checking when using the index operator.

The additional out of bounds checking can be disabled by undefining the macro DEBUG.


Member Typedef Documentation

template<class T>
typedef std::vector<T>::iterator simth::checkedVector< T >::iterator
 

The iterator type. See standard template library (STL) for further explanation.

template<class T>
typedef std::vector<T>::const_iterator simth::checkedVector< T >::const_iterator
 

The constant iterator type. See STL for further explanation.

template<class T>
typedef std::vector<T>::reference simth::checkedVector< T >::reference
 

The reference type. See STL for further explanation.

template<class T>
typedef std::vector<T>::const_reference simth::checkedVector< T >::const_reference
 

The reference type. See STL for further explanation.


Constructor & Destructor Documentation

template<class T>
simth::checkedVector< T >::checkedVector  )  [inline]
 

Class constructor to create an empty sequence.

template<class T>
simth::checkedVector< T >::checkedVector unsigned int  size,
const T &  val = T()
[inline, explicit]
 

Class constructor to create a sequence with the size given as argument. The second argument can be used to set the allocated elements to an inital value.


Generated on Mon Apr 24 21:19:19 2006 for simthetic by  doxygen 1.4.1