31 out << (
uint32_t)
sizeof(m_Val[0][0]);
36 if (m_Rows > 0 && m_Cols > 0)
37 for (
unsigned int i = 0; i < m_Rows; i++)
38 out.WriteBuffer(m_Val[i],
sizeof(m_Val[0][0]) * m_Cols);
53 if (size_bool !=
sizeof(m_Val[0][0]))
55 "Error: size of 'bool' is different in serialized data!")
64 if (nRows > 0 && nCols > 0)
65 for (
unsigned int i = 0; i < nRows; i++)
66 in.ReadBuffer(m_Val[i],
sizeof(m_Val[0][0]) * m_Cols);
Classes for serialization, sockets, ini-file manipulation, streams, list of properties-values, timewatch, extensions to STL.
Declares a matrix of booleans (non serializable).
CMatrixBool & operator=(const CMatrixTemplate< bool > &m)
Assignment operator for float matrixes.
The virtual base class which provides a unified interface for all persistent objects in MRPT...
#define IMPLEMENTS_SERIALIZABLE(class_name, base, NameSpace)
This must be inserted in all CSerializable classes implementation files.
#define THROW_EXCEPTION(msg)
This base class is used to provide a unified interface to files,memory buffers,..Please see the deriv...
This base provides a set of functions for maths stuff.
void readFromStream(mrpt::utils::CStream &in, int version) override
Introduces a pure virtual method responsible for loading from a CStream This can not be used directly...
#define MRPT_THROW_UNKNOWN_SERIALIZATION_VERSION(__V)
For use in CSerializable implementations.
EIGEN_STRONG_INLINE void setSize(size_t row, size_t col)
Changes the size of matrix, maintaining its previous content as possible and padding with zeros where...
CMatrixBool(size_t row=1, size_t col=1)
Constructor.
This template class provides the basic functionality for a general 2D any-size, resizable container o...
This is the global namespace for all Mobile Robot Programming Toolkit (MRPT) libraries.
GLenum GLenum GLvoid * row
This class is a "CSerializable" wrapper for "CMatrixBool".
typedef void(APIENTRYP PFNGLBLENDCOLORPROC)(GLclampf red
CMatrixTemplate & operator=(const CMatrixTemplate &m)
Assignment operator from another matrix.
unsigned __int32 uint32_t