cisst-saw
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
Public Types | Public Member Functions | Protected Types | List of all members
prmMaskedVector< _elementType > Class Template Reference

#include <prmMaskedVector.h>

Inheritance diagram for prmMaskedVector< _elementType >:
mtsGenericObject cmnGenericObject

Public Types

typedef prmMaskedVector
< _elementType > 
ThisType
 
typedef mtsGenericObject BaseType
 
typedef vctDynamicVector
< _elementType > 
DataType
 

Public Member Functions

 prmMaskedVector (void)
 
void SetSize (size_type size)
 
 prmMaskedVector (size_type size)
 
 prmMaskedVector (const ThisType &otherVector)
 
 ~prmMaskedVector ()
 
virtual std::string ToString (void) const
 
virtual void ToStream (std::ostream &outputStream) const
 
void SerializeRaw (std::ostream &outputStream) const
 
void DeSerializeRaw (std::istream &inputStream)
 
- Public Member Functions inherited from mtsGenericObject
 mtsGenericObject (void)
 
 mtsGenericObject (double timestamp, bool automaticTimestamp, bool valid)
 
 mtsGenericObject (const mtsGenericObject &other)
 
virtual ~mtsGenericObject (void)
 
bool SetTimestampIfAutomatic (double timestamp)
 
virtual void ToStreamRaw (std::ostream &outputStream, const char delimiter= ' ', bool headerOnly=false, const std::string &headerPrefix="") const
 
virtual bool FromStreamRaw (std::istream &inputStream, const char delimiter= ' ')
 
size_t ScalarNumber (void) const
 
bool ScalarNumberIsFixed (void) const
 
double Scalar (const size_t index) const throw (std::out_of_range)
 
std::string ScalarDescription (const size_t index, const std::string &userDescription="") const throw (std::out_of_range)
 
- Public Member Functions inherited from cmnGenericObject
virtual ~cmnGenericObject (void)
 
virtual const
cmnClassServicesBase
Services (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 throw (std::out_of_range)
 
virtual std::string ScalarDescription (const size_t CMN_UNUSED(index), const std::string &CMN_UNUSED(userDescription)) const
 

Protected Types

typedef unsigned int size_type
 

Protected Member Functions

 CMN_DECLARE_MEMBER_AND_ACCESSORS (DataType, Data)
 
 CMN_DECLARE_MEMBER_AND_ACCESSORS (vctBoolVec, Mask)
 

Member Typedef Documentation

template<class _elementType >
typedef mtsGenericObject prmMaskedVector< _elementType >::BaseType
template<class _elementType >
typedef vctDynamicVector<_elementType> prmMaskedVector< _elementType >::DataType
template<class _elementType >
typedef unsigned int prmMaskedVector< _elementType >::size_type
protected

Type used to define the size of the vector.

template<class _elementType >
typedef prmMaskedVector<_elementType> prmMaskedVector< _elementType >::ThisType

This type.

Constructor & Destructor Documentation

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

Default constructor.

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

Constructor with memory allocation for a given size.

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

Copy constructor.

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

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

Member Function Documentation

template<class _elementType >
prmMaskedVector< _elementType >::CMN_DECLARE_MEMBER_AND_ACCESSORS ( DataType  ,
Data   
)
protected

Vector of values for this container

template<class _elementType >
prmMaskedVector< _elementType >::CMN_DECLARE_MEMBER_AND_ACCESSORS ( vctBoolVec  ,
Mask   
)
protected

Masks for the cooresponding vector

template<class _elementType >
void prmMaskedVector< _elementType >::DeSerializeRaw ( std::istream &  inputStream)
inlinevirtual

Binary deserialization

Reimplemented from mtsGenericObject.

template<class _elementType >
void prmMaskedVector< _elementType >::SerializeRaw ( std::ostream &  outputStream) const
inlinevirtual

Binary serialization

Reimplemented from mtsGenericObject.

template<class _elementType >
void prmMaskedVector< _elementType >::SetSize ( size_type  size)
inline

Set vector same size for each element, this is required if the above constructor is not used Sets all elements to 0

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

To stream human readable output

Reimplemented from mtsGenericObject.

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

To stream human readable output


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