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

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

#include <containers.h>

List of all members.

Public Member Functions

 Array2d ()
 Array2d (size_t dim1, size_t dim2)
 Array2d (size_t dim1, size_t dim2, const T &Value)
 Array2d (const Array2d< T > &a)
 ~Array2d ()
Array2d< T > & operator= (const Array2d< T > &a)
Array< T > & operator[] (size_t pos)
const Array< T > & operator[] (size_t pos) const
size_t dim1 () const
size_t dim2 () const
size_t size () const
void resize (size_t dim1, size_t dim2, const T &val=T())


Detailed Description

template<class T>
class simth::Array2d< T >

Template 2D-Array.

The storage and indexing as described below is described in row-column order, i.e. dim1 are the rows, dim2 are the columns.


Constructor & Destructor Documentation

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

Create empty 2D array.

template<class T>
simth::Array2d< T >::~Array2d  )  [inline]
 

Destructor


Member Function Documentation

template<class T>
size_t simth::Array2d< T >::dim1  )  const [inline]
 

Returns the number of rows in this 2D array

template<class T>
size_t simth::Array2d< T >::dim2  )  const [inline]
 

Returns the size of the rows in this 2D array, i.e. the number of columns

template<class T>
size_t simth::Array2d< T >::size  )  const [inline]
 

Returns the total number of elements in this 2D array.


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