MDSTk Libraries  1.1.0
Medical Data Segmentation Toolkit
Public Types | Public Member Functions | Protected Member Functions
mds::math::CVectorBase< V > Class Template Reference

Base class for all vectors. More...

#include <mdsVectorBase.h>

Inheritance diagram for mds::math::CVectorBase< V >:
Inheritance graph
[legend]

List of all members.

Public Types

typedef CVectorTraits< V >
::tElement 
tElement
 Element tyoe.
typedef V tVector
 Vector type.

Public Member Functions

tElementat (tSize i)
 Returns reference to the element [i].
const tElementat (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.
tVectorgetImpl ()
 Returns reference to the vector implementation.
const tVectorgetImpl () const
tSize getSize () const
 Returns the vector size.
tSize getStride () const
 Returns stride between two neigbouring vector elements.
tElementoperator() (tSize i)
 Returns reference to the subscripted element [i].
const tElementoperator() (tSize i) const
tVectorset (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.
CVectorBaseoperator= (const CVectorBase &)
 Assignment operator.

Detailed Description

template<class V>
class mds::math::CVectorBase< V >

Base class for all vectors.


Member Typedef Documentation

template<class V>
typedef CVectorTraits<V>::tElement mds::math::CVectorBase< V >::tElement
template<class V>
typedef V mds::math::CVectorBase< V >::tVector

Constructor & Destructor Documentation

template<class V>
mds::math::CVectorBase< V >::CVectorBase ( ) [protected]

Default constructor.

template<class V>
mds::math::CVectorBase< V >::CVectorBase ( const CVectorBase< V > &  ) [protected]

Copy constructor.


Member Function Documentation

template<class V>
tElement& mds::math::CVectorBase< V >::at ( tSize  i)
template<class V>
const tElement& mds::math::CVectorBase< V >::at ( tSize  i) const
template<class V>
template<class Function >
Function mds::math::CVectorBase< V >::forEach ( Function  Func)
template<class V>
template<class Function >
Function mds::math::CVectorBase< V >::forEach ( Function  Func) const
template<class V>
tVector& mds::math::CVectorBase< V >::getImpl ( )

Returns reference to the vector implementation.

template<class V>
const tVector& mds::math::CVectorBase< V >::getImpl ( ) const
template<class V>
tSize mds::math::CVectorBase< V >::getSize ( ) const
template<class V>
tSize mds::math::CVectorBase< V >::getStride ( ) const
template<class V>
tElement& mds::math::CVectorBase< V >::operator() ( tSize  i)
template<class V>
const tElement& mds::math::CVectorBase< V >::operator() ( tSize  i) const
template<class V>
CVectorBase& mds::math::CVectorBase< V >::operator= ( const CVectorBase< V > &  ) [protected]

Assignment operator.

template<class V>
tVector& mds::math::CVectorBase< V >::set ( tSize  i,
const tElement Value 
)

Sets the vector element at the position [i].

template<class V>
tSize mds::math::CVectorBase< V >::size ( ) const

The documentation for this class was generated from the following file: