ERC CISST - cisst software

mtsMatrix< _elementType > Class Template Reference

Inheritance diagram for mtsMatrix< _elementType >:

Inheritance graph
[legend]
Collaboration diagram for mtsMatrix< _elementType >:

Collaboration graph
[legend]
List of all members.

Detailed Description

template<class _elementType>
class mtsMatrix< _elementType >

Definition at line 34 of file mtsMatrix.h.

Public Types

Public Member Functions

Public Attributes


Member Typedef Documentation

template<class _elementType>
typedef mtsMatrix<value_type> mtsMatrix< _elementType >::ThisType

This type.

Reimplemented from vctDynamicMatrix< _elementType >.

Definition at line 45 of file mtsMatrix.h.

template<class _elementType>
typedef vctDynamicMatrix<value_type> mtsMatrix< _elementType >::MatrixType

Type of matrix used to store the elements.

Definition at line 48 of file mtsMatrix.h.


Constructor & Destructor Documentation

template<class _elementType>
mtsMatrix< _elementType >::mtsMatrix ( void   )  [inline]

Default constructor.

Definition at line 51 of file mtsMatrix.h.

template<class _elementType>
mtsMatrix< _elementType >::mtsMatrix ( size_type  rows,
size_type  cols 
) [inline]

Constructor with memory allocation for a given size.

Definition at line 57 of file mtsMatrix.h.

References vctDynamicMatrixBase< vctDynamicMatrixOwner< _elementType >, _elementType >::Zeros().

template<class _elementType>
mtsMatrix< _elementType >::mtsMatrix ( const ThisType otherMatrix  )  [inline]

Copy constructor.

Definition at line 81 of file mtsMatrix.h.

template<class _elementType>
mtsMatrix< _elementType >::mtsMatrix ( const MatrixType otherMatrix  )  [inline]

Pseudo copy constructor from matrix type.

Definition at line 87 of file mtsMatrix.h.

template<class _elementType>
mtsMatrix< _elementType >::~mtsMatrix (  )  [inline]

Default destructor, will call the destructor of the contained vector and free the memory.

Definition at line 94 of file mtsMatrix.h.


Member Function Documentation

template<class _elementType>
ThisType& mtsMatrix< _elementType >::operator= ( const MatrixType data  )  [inline]

Assignment from vector base class. This operator assign the data from one vector to another, it doesn't replace the object itself, i.e. it doesn't release and allocate any new memory.

Definition at line 74 of file mtsMatrix.h.

References vctDynamicMatrixBase< vctDynamicMatrixOwner< _elementType >, _elementType >::Assign(), vctDynamicConstMatrixBase< _matrixOwnerType, _elementType >::cols(), vctDynamicConstMatrixBase< _matrixOwnerType, _elementType >::rows(), vctDynamicMatrix< _elementType >::SetSize(), and vctDynamicConstMatrixBase< _matrixOwnerType, _elementType >::StorageOrder().

template<class _elementType>
virtual std::string mtsMatrix< _elementType >::ToString ( void   )  const [inline, virtual]

To stream human readable output

Reimplemented from cmnGenericObject.

Definition at line 97 of file mtsMatrix.h.

References mtsMatrix< _elementType >::ToStream().

template<class _elementType>
virtual void mtsMatrix< _elementType >::ToStream ( std::ostream &  outputStream  )  const [inline, virtual]

To stream human readable output

Reimplemented from mtsGenericObject.

Definition at line 104 of file mtsMatrix.h.

References vctDynamicConstMatrixBase< vctDynamicMatrixOwner< _elementType >, _elementType >::ToStream(), and mtsGenericObject::ToStream().

Referenced by mtsMatrix< _elementType >::ToString().

template<class _elementType>
virtual void mtsMatrix< _elementType >::ToStreamRaw ( std::ostream &  outputStream,
const char  delimiter = ' ',
bool  headerOnly = false,
const std::string &  headerPrefix = "" 
) const [inline, virtual]

To stream raw data.

Reimplemented from mtsGenericObject.

Definition at line 111 of file mtsMatrix.h.

References vctDynamicConstMatrixBase< vctDynamicMatrixOwner< _elementType >, _elementType >::ToStreamRaw(), and mtsGenericObject::ToStreamRaw().

template<class _elementType>
void mtsMatrix< _elementType >::SerializeRaw ( std::ostream &  outputStream  )  const [inline, virtual]

Binary serialization

Reimplemented from mtsGenericObject.

Definition at line 119 of file mtsMatrix.h.

References vctDynamicConstMatrixBase< vctDynamicMatrixOwner< _elementType >, _elementType >::SerializeRaw(), and mtsGenericObject::SerializeRaw().

template<class _elementType>
void mtsMatrix< _elementType >::DeSerializeRaw ( std::istream &  inputStream  )  [inline, virtual]

Binary deserialization

Reimplemented from mtsGenericObject.

Definition at line 126 of file mtsMatrix.h.

References vctDynamicMatrix< _elementType >::DeSerializeRaw(), and mtsGenericObject::DeSerializeRaw().


The documentation for this class was generated from the following file:
erc-cisst-devel<at>lists.johnshopkins.edu