22 #ifndef _mtsFixedSizeVector_h
23 #define _mtsFixedSizeVector_h
32 template <
class _elementType, vct::
size_type _size>
78 std::stringstream outputStream;
80 return outputStream.str();
84 virtual void ToStream(std::ostream & outputStream)
const {
86 outputStream << std::endl;
91 inline virtual void ToStreamRaw(std::ostream & outputStream,
const char delimiter =
' ',
92 bool headerOnly =
false,
const std::string & headerPrefix =
"")
const {
94 outputStream << delimiter;
115 #endif // _mtsFixedSizeVector_h
virtual void ToStreamRaw(std::ostream &outputStream, const char delimiter= ' ', bool headerOnly=false, const std::string &headerPrefix="") const
Definition: mtsFixedSizeVector.h:91
mtsFixedSizeVector(const VectorType &otherVector)
Definition: mtsFixedSizeVector.h:67
virtual void ToStream(std::ostream &outputStream) const
Definition: mtsFixedSizeVector.h:84
Definition: mtsFixedSizeVector.h:33
void ToStreamRaw(std::ostream &outputStream, const char delimiter= ' ', bool headerOnly=false, const std::string &headerPrefix="") const
Definition: vctFixedSizeConstVectorBase.h:1118
virtual void SerializeRaw(std::ostream &outputStream) const
void SerializeRaw(std::ostream &outputStream) const
Definition: vctFixedSizeConstVectorBase.h:1141
virtual void DeSerializeRaw(std::istream &inputStream)
virtual void ToStream(std::ostream &outputStream) const
ThisType & operator=(const VectorType &data)
Definition: mtsFixedSizeVector.h:55
Class register definitions and log macros.
Base class for data object in cisstMultiTask.
Definition: mtsGenericObject.h:56
ThisType & Assign(const vctFixedSizeConstVectorBase< _size, __stride, __elementType, __dataPtrType > &other)
Definition: vctFixedSizeVectorBase.h:274
~mtsFixedSizeVector()
Definition: mtsFixedSizeVector.h:74
Implementation of a fixed-size vector using template metaprogramming.
Definition: vctFixedSizeVector.h:52
VCT_CONTAINER_TRAITS_TYPEDEFS(_elementType)
void SerializeRaw(std::ostream &outputStream) const
Definition: mtsFixedSizeVector.h:99
mtsFixedSizeVector(const ThisType &otherVector)
Definition: mtsFixedSizeVector.h:61
Declaration of vctFixedSizeVector.
Forward declarations and #define for cisstMultiTask.
mtsFixedSizeVector< value_type, _size > ThisType
Definition: mtsFixedSizeVector.h:42
void DeSerializeRaw(std::istream &inputStream)
Definition: vctFixedSizeVector.h:299
virtual std::string ToString(void) const
Definition: mtsFixedSizeVector.h:77
bool Zeros(void)
Definition: vctFixedSizeVectorBase.h:256
A template for a fixed length vector with fixed spacing in memory.
Definition: vctFixedSizeConstVectorBase.h:107
mtsFixedSizeVector(void)
Definition: mtsFixedSizeVector.h:48
void DeSerializeRaw(std::istream &inputStream)
Definition: mtsFixedSizeVector.h:106
void ToStream(std::ostream &outputStream) const
Definition: vctFixedSizeConstVectorBase.h:1096
const int CMN_DYNAMIC_CREATION
Definition: cmnClassRegisterMacros.h:331
virtual void ToStreamRaw(std::ostream &outputStream, const char delimiter= ' ', bool headerOnly=false, const std::string &headerPrefix="") const
vctFixedSizeVector< value_type, _size > VectorType
Definition: mtsFixedSizeVector.h:45
#define CMN_LOG_ALLOW_DEFAULT
Definition: cmnLogLoD.h:76