CAPD::DynSys Library  6.0.0
capd::vectalg::MatrixContainer< Scalar, rows, cols > Class Template Reference

This class inherits form general Container class and provides constructors and methods specific for two dimensional data. More...

#include <capd/vectalg/MatrixContainer.h>

Public Types

typedef Scalar ScalarType
 
typedef Container< Scalar, rows *cols >::iterator iterator
 
typedef Container< Scalar, rows *cols >::const_iterator const_iterator
 
typedef MatrixContainer ContainerType
 
typedef Container< Scalar, rows > ColumnContainer
 
typedef Container< Scalar, cols > RowContainer
 
typedef __size_type size_type
 
typedef __difference_type difference_type
 
typedef std::pair< size_type, size_typeDimension
 
typedef std::reverse_iterator< iteratorreverse_iterator
 
typedef std::reverse_iterator< const_iteratorconst_reverse_iterator
 

Public Member Functions

 MatrixContainer ()
 
 MatrixContainer (size_type _rows, size_type _cols)
 
 MatrixContainer (const MatrixContainer &mc)
 
 MatrixContainer (size_type _rows, size_type _cols, bool)
 
 MatrixContainer (const Dimension &)
 
 MatrixContainer (const Dimension &, bool)
 
size_type numberOfRows () const
 
size_type numberOfColumns () const
 
MatrixContaineroperator= (const MatrixContainer &a)
 
void resize (size_type r, size_type c)
 
iterator begin ()
 
const_iterator begin () const
 
iterator end ()
 
const_iterator end () const
 
reverse_iterator rbegin ()
 
const_reverse_iterator rbegin () const
 
reverse_iterator rend ()
 
const_reverse_iterator rend () const
 
void resize (size_type newCapacity)
 
ScalarTypeoperator[] (size_type)
 
const ScalarTypeoperator[] (size_type) const
 
ScalarTypeoperator() (size_type)
 
const ScalarTypeoperator() (size_type) const
 
void clear ()
 

Static Public Member Functions

static Dimension dimension ()
 
static size_type size ()
 

Static Public Attributes

static const size_type ROWS = rows
 
static const size_type COLS = cols
 

Protected Attributes

ScalarType data [capacity]
 

Detailed Description

template<typename Scalar, __size_type rows, __size_type cols>
class capd::vectalg::MatrixContainer< Scalar, rows, cols >

This class inherits form general Container class and provides constructors and methods specific for two dimensional data.

Member Typedef Documentation

◆ ColumnContainer

template<typename Scalar , __size_type rows, __size_type cols>
typedef Container<Scalar,rows> capd::vectalg::MatrixContainer< Scalar, rows, cols >::ColumnContainer

◆ const_iterator

template<typename Scalar , __size_type rows, __size_type cols>
typedef Container<Scalar,rows*cols>::const_iterator capd::vectalg::MatrixContainer< Scalar, rows, cols >::const_iterator

◆ const_reverse_iterator

typedef std::reverse_iterator<const_iterator> capd::vectalg::Container< Scalar, capacity >::const_reverse_iterator
inherited

◆ ContainerType

template<typename Scalar , __size_type rows, __size_type cols>
typedef MatrixContainer capd::vectalg::MatrixContainer< Scalar, rows, cols >::ContainerType

◆ difference_type

template<typename Scalar , __size_type rows, __size_type cols>
typedef __difference_type capd::vectalg::MatrixContainer< Scalar, rows, cols >::difference_type

◆ Dimension

template<typename Scalar , __size_type rows, __size_type cols>
typedef std::pair<size_type,size_type> capd::vectalg::MatrixContainer< Scalar, rows, cols >::Dimension

◆ iterator

template<typename Scalar , __size_type rows, __size_type cols>
typedef Container<Scalar,rows*cols>::iterator capd::vectalg::MatrixContainer< Scalar, rows, cols >::iterator

◆ reverse_iterator

typedef std::reverse_iterator<iterator> capd::vectalg::Container< Scalar, capacity >::reverse_iterator
inherited

◆ RowContainer

template<typename Scalar , __size_type rows, __size_type cols>
typedef Container<Scalar,cols> capd::vectalg::MatrixContainer< Scalar, rows, cols >::RowContainer

◆ ScalarType

template<typename Scalar , __size_type rows, __size_type cols>
typedef Scalar capd::vectalg::MatrixContainer< Scalar, rows, cols >::ScalarType

◆ size_type

template<typename Scalar , __size_type rows, __size_type cols>
typedef __size_type capd::vectalg::MatrixContainer< Scalar, rows, cols >::size_type

Constructor & Destructor Documentation

◆ MatrixContainer() [1/6]

template<typename Scalar , __size_type rows, __size_type cols>
capd::vectalg::MatrixContainer< Scalar, rows, cols >::MatrixContainer ( )
inline

◆ MatrixContainer() [2/6]

template<typename Scalar , __size_type rows, __size_type cols>
capd::vectalg::MatrixContainer< Scalar, rows, cols >::MatrixContainer ( size_type  _rows,
size_type  _cols 
)
inline

◆ MatrixContainer() [3/6]

template<typename Scalar , __size_type rows, __size_type cols>
capd::vectalg::MatrixContainer< Scalar, rows, cols >::MatrixContainer ( const MatrixContainer< Scalar, rows, cols > &  mc)
inline

◆ MatrixContainer() [4/6]

template<typename Scalar , __size_type rows, __size_type cols>
capd::vectalg::MatrixContainer< Scalar, rows, cols >::MatrixContainer ( size_type  _rows,
size_type  _cols,
bool   
)
inline

◆ MatrixContainer() [5/6]

template<typename Scalar , __size_type rows, __size_type cols>
capd::vectalg::MatrixContainer< Scalar, rows, cols >::MatrixContainer ( const Dimension )
inline

◆ MatrixContainer() [6/6]

template<typename Scalar , __size_type rows, __size_type cols>
capd::vectalg::MatrixContainer< Scalar, rows, cols >::MatrixContainer ( const Dimension ,
bool   
)
inline

Member Function Documentation

◆ begin() [1/2]

Container< Scalar, capacity >::iterator capd::vectalg::Container< Scalar, capacity >::begin
inlineinherited

◆ begin() [2/2]

Container< Scalar, capacity >::const_iterator capd::vectalg::Container< Scalar, capacity >::begin
inlineinherited

◆ clear()

void capd::vectalg::Container< Scalar, capacity >::clear
inherited

◆ dimension()

template<typename Scalar , __size_type rows, __size_type cols>
static Dimension capd::vectalg::MatrixContainer< Scalar, rows, cols >::dimension ( )
inlinestatic

◆ end() [1/2]

Container< Scalar, capacity >::iterator capd::vectalg::Container< Scalar, capacity >::end
inlineinherited

◆ end() [2/2]

Container< Scalar, capacity >::const_iterator capd::vectalg::Container< Scalar, capacity >::end
inlineinherited

◆ numberOfColumns()

template<typename Scalar , __size_type rows, __size_type cols>
size_type capd::vectalg::MatrixContainer< Scalar, rows, cols >::numberOfColumns ( ) const
inline

◆ numberOfRows()

template<typename Scalar , __size_type rows, __size_type cols>
size_type capd::vectalg::MatrixContainer< Scalar, rows, cols >::numberOfRows ( ) const
inline

◆ operator()() [1/2]

Scalar & capd::vectalg::Container< Scalar, capacity >::operator() ( size_type  i)
inlineinherited

◆ operator()() [2/2]

const Scalar & capd::vectalg::Container< Scalar, capacity >::operator() ( size_type  i) const
inlineinherited

◆ operator=()

template<typename Scalar , __size_type rows, __size_type cols>
MatrixContainer& capd::vectalg::MatrixContainer< Scalar, rows, cols >::operator= ( const MatrixContainer< Scalar, rows, cols > &  a)
inline

◆ operator[]() [1/2]

Scalar & capd::vectalg::Container< Scalar, capacity >::operator[] ( size_type  i)
inlineinherited

◆ operator[]() [2/2]

const Scalar & capd::vectalg::Container< Scalar, capacity >::operator[] ( size_type  i) const
inlineinherited

◆ rbegin() [1/2]

Container< Scalar, capacity >::reverse_iterator capd::vectalg::Container< Scalar, capacity >::rbegin
inlineinherited

◆ rbegin() [2/2]

Container< Scalar, capacity >::const_reverse_iterator capd::vectalg::Container< Scalar, capacity >::rbegin
inlineinherited

◆ rend() [1/2]

Container< Scalar, capacity >::reverse_iterator capd::vectalg::Container< Scalar, capacity >::rend
inlineinherited

◆ rend() [2/2]

Container< Scalar, capacity >::const_reverse_iterator capd::vectalg::Container< Scalar, capacity >::rend
inlineinherited

◆ resize() [1/2]

void capd::vectalg::Container< Scalar, capacity >::resize ( size_type  newCapacity)
inherited

◆ resize() [2/2]

template<typename Scalar , __size_type rows, __size_type cols>
void capd::vectalg::MatrixContainer< Scalar, rows, cols >::resize ( size_type  r,
size_type  c 
)
inline

◆ size()

static size_type capd::vectalg::Container< Scalar, capacity >::size ( )
inlinestaticinherited

Member Data Documentation

◆ COLS

template<typename Scalar , __size_type rows, __size_type cols>
const size_type capd::vectalg::MatrixContainer< Scalar, rows, cols >::COLS = cols
static

◆ data

ScalarType capd::vectalg::Container< Scalar, capacity >::data[capacity]
protectedinherited

◆ ROWS

template<typename Scalar , __size_type rows, __size_type cols>
const size_type capd::vectalg::MatrixContainer< Scalar, rows, cols >::ROWS = rows
static

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