cisst-saw
Loading...
Searching...
No Matches
mtsMatrix< _elementType > Class Template Reference

#include <mtsMatrix.h>

Inheritance diagram for mtsMatrix< _elementType >:
mtsGenericObject vctDynamicMatrix< _elementType > cmnGenericObject

Public Types

enum  { DIMENSION = 2 }
typedef mtsMatrix< value_typeThisType
typedef vctDynamicMatrix< value_typeMatrixType

Public Member Functions

 VCT_CONTAINER_TRAITS_TYPEDEFS (_elementType)
 VCT_NARRAY_TRAITS_TYPEDEFS (DIMENSION)
 mtsMatrix (void)
 mtsMatrix (size_type rows, size_type cols)
 mtsMatrix (const nsize_type &size)
ThisTypeoperator= (const MatrixType &data)
 mtsMatrix (const ThisType &otherMatrix)
 mtsMatrix (const MatrixType &otherMatrix)
 ~mtsMatrix ()
virtual std::string ToString (void) const
void ToStream (std::ostream &outputStream) const override
void ToStreamRaw (std::ostream &outputStream, const char delimiter=' ', bool headerOnly=false, const std::string &headerPrefix="") const override
void SerializeRaw (std::ostream &outputStream) const override
void DeSerializeRaw (std::istream &inputStream) override
Public Member Functions inherited from mtsGenericObject
 mtsGenericObject (void)
 mtsGenericObject (double timestamp, bool automaticTimestamp, bool valid)
 mtsGenericObject (const mtsGenericObject &other)
virtual ~mtsGenericObject (void)
mtsGenericObjectoperator= (const mtsGenericObject &other)
bool SetTimestampIfAutomatic (double timestamp)
virtual bool FromStreamRaw (std::istream &inputStream, const char delimiter=' ')
size_t ScalarNumber (void) const
bool ScalarNumberIsFixed (void) const
Public Member Functions inherited from cmnGenericObject
virtual ~cmnGenericObject (void)
virtual const cmnClassServicesBaseServices (void) const =0
bool ReconstructFrom (const cmnGenericObject &other)
std::string ToString (void) const
virtual cmnLogger::StreamBufTypeGetLogMultiplexer (void) const
virtual double Scalar (const size_t CMN_UNUSED(index)) const CISST_THROW(std
virtual std::string ScalarDescription (const size_t CMN_UNUSED(index), const std::string &CMN_UNUSED(userDescription)) const

Member Typedef Documentation

◆ MatrixType

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

Type of matrix used to store the elements.

◆ ThisType

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

This type.

Member Enumeration Documentation

◆ anonymous enum

template<class _elementType>
anonymous enum
Enumerator
DIMENSION 

Constructor & Destructor Documentation

◆ mtsMatrix() [1/5]

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

Default constructor.

◆ mtsMatrix() [2/5]

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

Constructor with memory allocation for a given size.

◆ mtsMatrix() [3/5]

template<class _elementType>
mtsMatrix< _elementType >::mtsMatrix ( const nsize_type & size)
inline

◆ mtsMatrix() [4/5]

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

Copy constructor.

◆ mtsMatrix() [5/5]

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

Pseudo copy constructor from matrix type.

◆ ~mtsMatrix()

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

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

Member Function Documentation

◆ DeSerializeRaw()

template<class _elementType>
void mtsMatrix< _elementType >::DeSerializeRaw ( std::istream & inputStream)
inlineoverridevirtual

Binary deserialization

Reimplemented from mtsGenericObject.

◆ operator=()

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.

◆ SerializeRaw()

template<class _elementType>
void mtsMatrix< _elementType >::SerializeRaw ( std::ostream & outputStream) const
inlineoverridevirtual

Binary serialization

Reimplemented from mtsGenericObject.

◆ ToStream()

template<class _elementType>
void mtsMatrix< _elementType >::ToStream ( std::ostream & outputStream) const
inlineoverridevirtual

To stream human readable output

Reimplemented from mtsGenericObject.

◆ ToStreamRaw()

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

To stream raw data.

Reimplemented from mtsGenericObject.

◆ ToString()

template<class _elementType>
virtual std::string mtsMatrix< _elementType >::ToString ( void ) const
inlinevirtual

To stream human readable output

◆ VCT_CONTAINER_TRAITS_TYPEDEFS()

template<class _elementType>
mtsMatrix< _elementType >::VCT_CONTAINER_TRAITS_TYPEDEFS ( _elementType )

◆ VCT_NARRAY_TRAITS_TYPEDEFS()

template<class _elementType>
mtsMatrix< _elementType >::VCT_NARRAY_TRAITS_TYPEDEFS ( DIMENSION )

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