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

#include <mtsVector.h>

Inheritance diagram for mtsVector< _elementType >:
mtsGenericObject vctDynamicVector< _elementType > cmnGenericObject

Public Types

typedef mtsVector< value_typeThisType
typedef vctDynamicVector< value_typeVectorType

Public Member Functions

 VCT_CONTAINER_TRAITS_TYPEDEFS (_elementType)
 mtsVector (void)
 mtsVector (size_type size)
ThisTypeoperator= (const ThisType &other)
ThisTypeoperator= (const VectorType &data)
 mtsVector (const ThisType &otherVector)
 mtsVector (const VectorType &otherVector)
 ~mtsVector ()
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

◆ ThisType

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

This type.

◆ VectorType

template<class _elementType>
typedef vctDynamicVector<value_type> mtsVector< _elementType >::VectorType

Type of vector used to store the elements.

Constructor & Destructor Documentation

◆ mtsVector() [1/4]

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

Default constructor.

◆ mtsVector() [2/4]

template<class _elementType>
mtsVector< _elementType >::mtsVector ( size_type size)
inline

Constructor with memory allocation for a given size. Assign zero to all elements.

◆ mtsVector() [3/4]

template<class _elementType>
mtsVector< _elementType >::mtsVector ( const ThisType & otherVector)
inline

Copy constructor.

◆ mtsVector() [4/4]

template<class _elementType>
mtsVector< _elementType >::mtsVector ( const VectorType & otherVector)
inline

Pseudo copy constructor from vector type.

◆ ~mtsVector()

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

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

Member Function Documentation

◆ DeSerializeRaw()

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

Binary deserialization

Reimplemented from mtsGenericObject.

◆ operator=() [1/2]

template<class _elementType>
ThisType & mtsVector< _elementType >::operator= ( const ThisType & other)
inline

Assignment operator

◆ operator=() [2/2]

template<class _elementType>
ThisType & mtsVector< _elementType >::operator= ( const VectorType & 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 mtsVector< _elementType >::SerializeRaw ( std::ostream & outputStream) const
inlineoverridevirtual

Binary serialization

Reimplemented from mtsGenericObject.

◆ ToStream()

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

To stream human readable output

Reimplemented from mtsGenericObject.

◆ ToStreamRaw()

template<class _elementType>
void mtsVector< _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 mtsVector< _elementType >::ToString ( void ) const
inlinevirtual

To stream human readable output

◆ VCT_CONTAINER_TRAITS_TYPEDEFS()

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

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