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

#include <mtsHistory.h>

Inheritance diagram for mtsHistory< _elementType >:
mtsHistoryBase vctDynamicVector< _elementType > mtsGenericObject cmnGenericObject

Public Types

typedef _elementType value_type
typedef mtsHistory< value_typeThisType
typedef vctDynamicVector< value_typeVectorType
typedef VectorType::size_type size_type

Public Member Functions

 mtsHistory (void)
 mtsHistory (size_type size)
void SetHistorySize (const int historySize)
ThisTypeoperator= (const VectorType &data)
 mtsHistory (const ThisType &otherVector)
 ~mtsHistory ()
virtual std::string ToString (void) const
virtual void ToStream (std::ostream &outputStream) const
virtual void ToStreamRaw (std::ostream &outputStream, const char delimiter=' ', bool headerOnly=false, const std::string &headerPrefix="") const
Public Member Functions inherited from mtsHistoryBase
 mtsHistoryBase ()
 mtsHistoryBase (const mtsHistoryBase &other)
virtual ~mtsHistoryBase ()
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=' ')
virtual void SerializeRaw (std::ostream &outputStream) const
virtual void DeSerializeRaw (std::istream &inputStream)
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

◆ size_type

template<class _elementType>
typedef VectorType::size_type mtsHistory< _elementType >::size_type

Type used to define the size of the vector.

◆ ThisType

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

This type.

◆ value_type

template<class _elementType>
typedef _elementType mtsHistory< _elementType >::value_type

Type of elements.

◆ VectorType

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

Type of vector used to store the elements.

Constructor & Destructor Documentation

◆ mtsHistory() [1/3]

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

Default constructor.

◆ mtsHistory() [2/3]

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

Constructor with memory allocation for a given size.

◆ mtsHistory() [3/3]

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

Copy constructor.

◆ ~mtsHistory()

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

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

Member Function Documentation

◆ operator=()

template<class _elementType>
ThisType & mtsHistory< _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.

◆ SetHistorySize()

template<class _elementType>
void mtsHistory< _elementType >::SetHistorySize ( const int historySize)
inlinevirtual

Set the size of history buffer

Implements mtsHistoryBase.

◆ ToStream()

template<class _elementType>
virtual void mtsHistory< _elementType >::ToStream ( std::ostream & outputStream) const
inlinevirtual

To stream human readable output

Reimplemented from mtsGenericObject.

◆ ToStreamRaw()

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

To stream human readable output raw

Reimplemented from mtsGenericObject.

◆ ToString()

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

To stream human readable output


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