ERC CISST - cisst software

mtsVector< _elementType > Class Template Reference

Inheritance diagram for mtsVector< _elementType >:

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

Collaboration graph
[legend]
List of all members.

Detailed Description

template<class _elementType>
class mtsVector< _elementType >

Definition at line 34 of file mtsVector.h.

Public Types

Public Member Functions

Public Attributes


Member Typedef Documentation

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

This type.

Reimplemented from vctDynamicVector< _elementType >.

Definition at line 43 of file mtsVector.h.

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

Type of vector used to store the elements.

Definition at line 46 of file mtsVector.h.


Constructor & Destructor Documentation

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

Default constructor.

Definition at line 49 of file mtsVector.h.

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

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

Definition at line 56 of file mtsVector.h.

References vctDynamicVectorBase< vctDynamicVectorOwner< _elementType >, _elementType >::Zeros().

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

Copy constructor.

Definition at line 73 of file mtsVector.h.

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

Pseudo copy constructor from vector type.

Definition at line 79 of file mtsVector.h.

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

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

Definition at line 86 of file mtsVector.h.


Member Function Documentation

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.

Definition at line 66 of file mtsVector.h.

References vctDynamicVectorBase< vctDynamicVectorOwner< _elementType >, _elementType >::Assign(), vctDynamicVector< _elementType >::SetSize(), and vctDynamicConstVectorBase< _vectorOwnerType, _elementType >::size().

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

To stream human readable output

Reimplemented from cmnGenericObject.

Definition at line 89 of file mtsVector.h.

References mtsVector< _elementType >::ToStream().

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

To stream human readable output

Reimplemented from mtsGenericObject.

Definition at line 96 of file mtsVector.h.

References vctDynamicConstVectorBase< vctDynamicVectorOwner< _elementType >, _elementType >::ToStream(), and mtsGenericObject::ToStream().

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

template<class _elementType>
virtual void mtsVector< _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 103 of file mtsVector.h.

References vctDynamicConstVectorBase< vctDynamicVectorOwner< _elementType >, _elementType >::ToStreamRaw(), and mtsGenericObject::ToStreamRaw().

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

Binary serialization

Reimplemented from mtsGenericObject.

Definition at line 111 of file mtsVector.h.

References vctDynamicConstVectorBase< vctDynamicVectorOwner< _elementType >, _elementType >::SerializeRaw(), and mtsGenericObject::SerializeRaw().

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

Binary deserialization

Reimplemented from mtsGenericObject.

Definition at line 118 of file mtsVector.h.

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


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