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) | |
T | 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 |
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.
|
|
|
|
|
|
|
|
|
|
|
|
|
Create 1D array of given size, with the elements initialized by their default constructor. |
|
Create 1D array of given size, and initialize array elements with given value val.
|
|
Create copy of existing array |
|
Create copy of existing array |
|
Resize array and initialize elements with given value.
|
|
Returns the element at the specified index. |
|
Returns the element at the specified index. |
|
Returns a constant reference to the element specified by the position given as argument. See STL for further explanation. |
|
Returns a reference to the element specified by the position given as argument. See STL for further explanation. |
|
|
|
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.) |
|
Resizes the sequence to the size given as first argument and sets each sequence element to the value given as second argument. |
|
|
|
|
|
|
|
|
|
Create 2D array of given size: dim1 rows, dim2 columns. The elements are initialized by their default constructor. |
|
Create 2D array of given size and initialize elements with given value val.
|
|
Create copy of existing array |
|
Copy existing array into this one |
|
Resize 2D-array and initialize elements with given value.
|
|
Returns the row with the specified index |
|
Returns the row with the specified index |