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

Additional container classes


Classes

class  simth::Array< T >
class  simth::checkedVector< T >
class  simth::checkedVector2d< T >
class  simth::vector2d< T >
class  simth::intVector2d
class  simth::boolVector2d
class  simth::intVector3d
class  simth::Array2d< T >

Functions

template<class T>
std::ostream & simth::operator<< (std::ostream &os, const Array< T > &a)
template<class T>
std::ostream & simth::operator<< (std::ostream &os, const checkedVector< T > &seq)
std::ostream & simth::operator<< (std::ostream &os, const checkedVector< Complex > &compSeq)
template<class T>
void simth::twoDim2oneDim (const Array2d< T > &arr, Array< T > *vec, bool fortranlike=false)
template<class T>
void simth::oneDim2twoDim (const Array< T > &vec, size_t xSize, size_t ySize, Array2d< T > *arr, bool fortranlike=false)
template<class T>
std::ostream & simth::operator<< (std::ostream &os, const Array2d< T > &a)
 simth::Array::Array (size_t size)
 simth::Array::Array (const T &val, size_t size)
 simth::Array::Array (const Array< T > &a)
Array< T > & simth::Array::operator= (const Array< T > &a)
void simth::Array::resize (size_t newSize, const T &val=T())
T & simth::Array::operator[] (size_t pos)
const T & simth::Array::operator[] (size_t pos) const
const_reference simth::checkedVector::operator[] (unsigned int pos) const
reference simth::checkedVector::operator[] (unsigned int pos)
checkedVector< T > & simth::checkedVector::operator= (const std::vector< T > &from)
checkedVector< T > & simth::checkedVector::operator= (const checkedVector< T > &from)
void simth::checkedVector::assign (unsigned int size, const T &val)
 simth::checkedVector2d::checkedVector2d (size_t cols, size_t rows)
 simth::vector2d::vector2d (size_t cols, size_t rows)
simth::vector2d::get (size_t col, size_t row) const
void simth::vector2d::set (size_t col, size_t row, const T &newVal)
 simth::Array2d::Array2d (size_t dim1, size_t dim2)
 simth::Array2d::Array2d (size_t dim1, size_t dim2, const T &Value)
 simth::Array2d::Array2d (const Array2d< T > &a)
Array2d< T > & simth::Array2d::operator= (const Array2d< T > &a)
void simth::Array2d::resize (size_t dim1, size_t dim2, const T &val=T())
Array< T > & simth::Array2d::operator[] (size_t pos)
const Array< T > & simth::Array2d::operator[] (size_t pos) const

Detailed Description

Several container classes are defined here. Some are templates, others are not. Some are a very simple extension of the STL class, others are higher-level classes needed from somewhere.

However, probably some of these classes are quite specialized and should rather be moved to somewhere else.

Several container classes are defined here. Some are templates, others are not. Some are a very simple extension of the STL class, others are higher-level classes needed from somewhere.

However, probably some of these classes are quite specialized and should rather be moved to somewhere else.

Several container classes are defined here. Some are templates, others are not. Some are a very simple extension of the STL class, others are higher-level classes needed from somewhere.

However, probably some of these classes are quite specialized and should rather be moved to somewhere else.


Function Documentation

template<class T>
std::ostream& operator<< std::ostream &  os,
const Array< T > &  a
 

template<class T>
std::ostream& operator<< std::ostream &  os,
const checkedVector< T > &  seq
 

std::ostream& operator<< std::ostream &  os,
const checkedVector< Complex > &  compSeq
 

template<class T>
void twoDim2oneDim const Array2d< T > &  arr,
Array< T > *  vec,
bool  fortranlike = false
 

template<class T>
void oneDim2twoDim const Array< T > &  vec,
size_t  xSize,
size_t  ySize,
Array2d< T > *  arr,
bool  fortranlike = false
 

template<class T>
std::ostream& operator<< std::ostream &  os,
const Array2d< T > &  a
 

template<class T>
simth::Array< T >::Array size_t  size  )  [inline, inherited]
 

Create 1D array of given size, with the elements initialized by their default constructor.

template<class T>
simth::Array< T >::Array const T &  val,
size_t  size
[inline, inherited]
 

Create 1D array of given size, and initialize array elements with given value val.

Note:
The order of the size and value arguments are the other way round compared to the resize() method.

template<class T>
simth::Array< T >::Array const Array< T > &  a  )  [inline, inherited]
 

Create copy of existing array

template<class T>
Array< T > & simth::Array< T >::operator= const Array< T > &  a  )  [inline, inherited]
 

Create copy of existing array

template<class T>
void simth::Array< T >::resize size_t  newSize,
const T &  val = T()
[inline, inherited]
 

Resize array and initialize elements with given value.

Note:
The order of the size and value arguments are the other way round compared to the constructor.

template<class T>
T & simth::Array< T >::operator[] size_t  pos  )  [inline, inherited]
 

Returns the element at the specified index.

template<class T>
const T & simth::Array< T >::operator[] size_t  pos  )  const [inline, inherited]
 

Returns the element at the specified index.

template<class T>
checkedVector< T >::const_reference simth::checkedVector< T >::operator[] unsigned int  pos  )  const [inline, inherited]
 

Returns a constant reference to the element specified by the position given as argument. See STL for further explanation.

template<class T>
checkedVector< T >::reference simth::checkedVector< T >::operator[] unsigned int  pos  )  [inline, inherited]
 

Returns a reference to the element specified by the position given as argument. See STL for further explanation.

template<class T>
checkedVector< T > & simth::checkedVector< T >::operator= const std::vector< T > &  from  )  [inline, inherited]
 

template<class T>
checkedVector< T > & simth::checkedVector< T >::operator= const checkedVector< T > &  from  )  [inline, inherited]
 

The contents of the sequence given as argument will be copied to this sequence. The size of the sequence will be adjusted. (Note, this is an 'expensive' operation.)

template<class T>
void simth::checkedVector< T >::assign unsigned int  size,
const T &  val
[inline, inherited]
 

Resizes the sequence to the size given as first argument and sets each sequence element to the value given as second argument.

template<class T>
simth::checkedVector2d< T >::checkedVector2d size_t  cols,
size_t  rows
[inherited]
 

template<class T>
simth::vector2d< T >::vector2d size_t  cols,
size_t  rows
[inherited]
 

template<class T>
T simth::vector2d< T >::get size_t  col,
size_t  row
const [inline, inherited]
 

template<class T>
void simth::vector2d< T >::set size_t  col,
size_t  row,
const T &  newVal
[inherited]
 

template<class T>
simth::Array2d< T >::Array2d size_t  dim1,
size_t  dim2
[inline, inherited]
 

Create 2D array of given size: dim1 rows, dim2 columns. The elements are initialized by their default constructor.

template<class T>
simth::Array2d< T >::Array2d size_t  dim1,
size_t  dim2,
const T &  Value
[inline, inherited]
 

Create 2D array of given size and initialize elements with given value val.

Note:
The order of the size and value arguments are the other way round compared to the resize() method.

template<class T>
simth::Array2d< T >::Array2d const Array2d< T > &  a  )  [inline, inherited]
 

Create copy of existing array

template<class T>
Array2d< T > & simth::Array2d< T >::operator= const Array2d< T > &  a  )  [inline, inherited]
 

Copy existing array into this one

template<class T>
void simth::Array2d< T >::resize size_t  dim1,
size_t  dim2,
const T &  val = T()
[inline, inherited]
 

Resize 2D-array and initialize elements with given value.

Note:
The order of the size and value arguments are the other way round compared to the constructor.

template<class T>
Array< T > & simth::Array2d< T >::operator[] size_t  pos  )  [inline, inherited]
 

Returns the row with the specified index

template<class T>
const Array< T > & simth::Array2d< T >::operator[] size_t  pos  )  const [inline, inherited]
 

Returns the row with the specified index


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