32 out << (
uint32_t)
sizeof(m_Val[0][0]);
37 if (m_Rows>0 && m_Cols>0)
38 for (
unsigned int i=0;i<m_Rows;i++)
39 out.WriteBuffer(m_Val[i],
sizeof(m_Val[0][0])*m_Cols);
55 if ( size_bool !=
sizeof(m_Val[0][0]) )
56 THROW_EXCEPTION(
"Error: size of 'bool' is different in serialized data!")
65 if (nRows>0 && nCols>0)
66 for (
unsigned int i=0;i<nRows;i++)
67 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 THROW_EXCEPTION(msg)
IMPLEMENTS_SERIALIZABLE(CLogFileRecord_FullEval, CHolonomicLogFileRecord, mrpt::nav) IMPLEMENTS_SERIALIZABLE(CHolonomicFullEval
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.
#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.
void readFromStream(mrpt::utils::CStream &in, int version)
Introduces a pure virtual method responsible for loading from a CStream This can not be used directly...
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