MDSTk Libraries
1.1.0
Medical Data Segmentation Toolkit
|
Base class for all vectors. More...
#include <mdsVectorBase.h>
Public Types | |
typedef CVectorTraits< V > ::tElement | tElement |
Element tyoe. | |
typedef V | tVector |
Vector type. | |
Public Member Functions | |
tElement & | at (tSize i) |
Returns reference to the element [i]. | |
const tElement & | at (tSize i) const |
template<class Function > | |
Function | forEach (Function Func) |
Calls a function object for every vector element. | |
template<class Function > | |
Function | forEach (Function Func) const |
Calls a function object for every vector element. | |
tVector & | getImpl () |
Returns reference to the vector implementation. | |
const tVector & | getImpl () const |
tSize | getSize () const |
Returns the vector size. | |
tSize | getStride () const |
Returns stride between two neigbouring vector elements. | |
tElement & | operator() (tSize i) |
Returns reference to the subscripted element [i]. | |
const tElement & | operator() (tSize i) const |
tVector & | set (tSize i, const tElement &Value) |
Sets the vector element at the position [i]. | |
tSize | size () const |
Returns the vector size. | |
Protected Member Functions | |
CVectorBase () | |
Default constructor. | |
CVectorBase (const CVectorBase &) | |
Copy constructor. | |
CVectorBase & | operator= (const CVectorBase &) |
Assignment operator. |
Base class for all vectors.
typedef CVectorTraits<V>::tElement mds::math::CVectorBase< V >::tElement |
Element tyoe.
Reimplemented in mds::img::CArray< T >, mds::math::CStaticVector< T, M >, mds::math::CStaticVector< int, LUT_SIZE >, mds::math::CStaticVector< T, Size >, mds::math::CStaticVector< unsigned, Size >, mds::math::CStaticVector< float, Size >, mds::math::CStaticVector< T, N >, mds::math::CStaticVector< double, Size >, mds::math::CVector< T >, mds::math::CVector< tIndex >, and mds::math::CVector< tBin >.
typedef V mds::math::CVectorBase< V >::tVector |
Vector type.
Reimplemented in mds::img::CFeatureVector< T, Size >, mds::img::CFeatureVector< unsigned, N >, mds::img::CFeatureVector< double, 2 >, and mds::img::CFeatureVector< float, N >.
mds::math::CVectorBase< V >::CVectorBase | ( | ) | [protected] |
Default constructor.
mds::math::CVectorBase< V >::CVectorBase | ( | const CVectorBase< V > & | ) | [protected] |
Copy constructor.
tElement& mds::math::CVectorBase< V >::at | ( | tSize | i | ) |
Returns reference to the element [i].
Reimplemented in mds::img::CVolumeRow< V >, mds::img::CImageRow< I >, mds::img::CArray< T >, mds::math::CVector< T >, mds::math::CVector< tIndex >, mds::math::CVector< tBin >, mds::math::CStaticVector< T, M >, mds::math::CStaticVector< int, LUT_SIZE >, mds::math::CStaticVector< T, Size >, mds::math::CStaticVector< unsigned, Size >, mds::math::CStaticVector< float, Size >, mds::math::CStaticVector< T, N >, and mds::math::CStaticVector< double, Size >.
const tElement& mds::math::CVectorBase< V >::at | ( | tSize | i | ) | const |
Reimplemented in mds::img::CVolumeRow< V >, mds::img::CImageRow< I >, mds::img::CArray< T >, mds::math::CVector< T >, mds::math::CVector< tIndex >, mds::math::CVector< tBin >, mds::math::CStaticVector< T, M >, mds::math::CStaticVector< int, LUT_SIZE >, mds::math::CStaticVector< T, Size >, mds::math::CStaticVector< unsigned, Size >, mds::math::CStaticVector< float, Size >, mds::math::CStaticVector< T, N >, and mds::math::CStaticVector< double, Size >.
Function mds::math::CVectorBase< V >::forEach | ( | Function | Func | ) |
Calls a function object for every vector element.
Reimplemented in mds::img::CVolumeRow< V >, mds::img::CImageRow< I >, mds::img::CVolumeRow< V >, mds::img::CImageRow< I >, mds::img::CArray< T >, mds::math::CVector< T >, mds::img::CArray< T >, mds::math::CStaticVector< T, M >, mds::math::CVector< T >, mds::math::CVector< tIndex >, mds::math::CVector< tBin >, mds::math::CStaticVector< T, M >, mds::math::CStaticVector< int, LUT_SIZE >, mds::math::CStaticVector< T, Size >, mds::math::CStaticVector< unsigned, Size >, mds::math::CStaticVector< float, Size >, mds::math::CStaticVector< T, N >, and mds::math::CStaticVector< double, Size >.
Function mds::math::CVectorBase< V >::forEach | ( | Function | Func | ) | const |
Calls a function object for every vector element.
Reimplemented in mds::img::CVolumeRow< V >, mds::img::CImageRow< I >, mds::img::CVolumeRow< V >, mds::img::CImageRow< I >, mds::img::CArray< T >, mds::math::CVector< T >, mds::img::CArray< T >, mds::math::CStaticVector< T, M >, mds::math::CVector< T >, mds::math::CVector< tIndex >, mds::math::CVector< tBin >, mds::math::CStaticVector< T, M >, mds::math::CStaticVector< int, LUT_SIZE >, mds::math::CStaticVector< T, Size >, mds::math::CStaticVector< unsigned, Size >, mds::math::CStaticVector< float, Size >, mds::math::CStaticVector< T, N >, and mds::math::CStaticVector< double, Size >.
tVector& mds::math::CVectorBase< V >::getImpl | ( | ) |
Returns reference to the vector implementation.
const tVector& mds::math::CVectorBase< V >::getImpl | ( | ) | const |
tSize mds::math::CVectorBase< V >::getSize | ( | ) | const |
Returns the vector size.
Reimplemented in mds::img::CVolumeRow< V >, mds::img::CImageRow< I >, mds::img::CArray< T >, mds::math::CVector< T >, mds::math::CVector< tIndex >, mds::math::CVector< tBin >, mds::math::CStaticVector< T, M >, mds::math::CStaticVector< int, LUT_SIZE >, mds::math::CStaticVector< T, Size >, mds::math::CStaticVector< unsigned, Size >, mds::math::CStaticVector< float, Size >, mds::math::CStaticVector< T, N >, and mds::math::CStaticVector< double, Size >.
tSize mds::math::CVectorBase< V >::getStride | ( | ) | const |
Returns stride between two neigbouring vector elements.
Reimplemented in mds::img::CVolumeRow< V >, mds::img::CImageRow< I >, mds::img::CArray< T >, mds::math::CVector< T >, mds::math::CVector< tIndex >, mds::math::CVector< tBin >, mds::math::CStaticVector< T, M >, mds::math::CStaticVector< int, LUT_SIZE >, mds::math::CStaticVector< T, Size >, mds::math::CStaticVector< unsigned, Size >, mds::math::CStaticVector< float, Size >, mds::math::CStaticVector< T, N >, and mds::math::CStaticVector< double, Size >.
tElement& mds::math::CVectorBase< V >::operator() | ( | tSize | i | ) |
Returns reference to the subscripted element [i].
Reimplemented in mds::img::CVolumeRow< V >, mds::img::CImageRow< I >, mds::img::CArray< T >, mds::math::CVector< T >, mds::math::CVector< tIndex >, mds::math::CVector< tBin >, mds::math::CStaticVector< T, M >, mds::math::CStaticVector< int, LUT_SIZE >, mds::math::CStaticVector< T, Size >, mds::math::CStaticVector< unsigned, Size >, mds::math::CStaticVector< float, Size >, mds::math::CStaticVector< T, N >, and mds::math::CStaticVector< double, Size >.
const tElement& mds::math::CVectorBase< V >::operator() | ( | tSize | i | ) | const |
Reimplemented in mds::img::CVolumeRow< V >, mds::img::CImageRow< I >, mds::img::CArray< T >, mds::math::CVector< T >, mds::math::CVector< tIndex >, mds::math::CVector< tBin >, mds::math::CStaticVector< T, M >, mds::math::CStaticVector< int, LUT_SIZE >, mds::math::CStaticVector< T, Size >, mds::math::CStaticVector< unsigned, Size >, mds::math::CStaticVector< float, Size >, mds::math::CStaticVector< T, N >, and mds::math::CStaticVector< double, Size >.
CVectorBase& mds::math::CVectorBase< V >::operator= | ( | const CVectorBase< V > & | ) | [protected] |
Assignment operator.
tVector& mds::math::CVectorBase< V >::set | ( | tSize | i, |
const tElement & | Value | ||
) |
Sets the vector element at the position [i].
tSize mds::math::CVectorBase< V >::size | ( | ) | const |
Returns the vector size.
Reimplemented in mds::img::CVolumeRow< V >, mds::img::CImageRow< I >, mds::img::CArray< T >, mds::math::CVector< T >, mds::math::CVector< tIndex >, mds::math::CVector< tBin >, mds::math::CStaticVector< T, M >, mds::math::CStaticVector< int, LUT_SIZE >, mds::math::CStaticVector< T, Size >, mds::math::CStaticVector< unsigned, Size >, mds::math::CStaticVector< float, Size >, mds::math::CStaticVector< T, N >, and mds::math::CStaticVector< double, Size >.