21 uint8_t
CMatrixB::serializeGetVersion()
const {
return 0; }
24 out.WriteAs<uint32_t>(
sizeof(bool));
31 out.WriteBuffer(&(*
this)(0, 0),
sizeof(
bool) *
cols() *
rows());
42 if (size_bool !=
sizeof(
bool))
44 "Error: size of 'bool' is different in serialized data!");
46 uint32_t nRows, nCols;
53 if (nRows > 0 && nCols > 0)
#define THROW_EXCEPTION(msg)
#define IMPLEMENTS_SERIALIZABLE(class_name, base, NameSpace)
To be added to all CSerializable-classes implementation files.
#define MRPT_THROW_UNKNOWN_SERIALIZATION_VERSION(__V)
For use in CSerializable implementations.
This base provides a set of functions for maths stuff.
size_type rows() const
Number of rows in the matrix.
size_type cols() const
Number of columns in the matrix.
This is the global namespace for all Mobile Robot Programming Toolkit (MRPT) libraries.
Virtual base class for "archives": classes abstracting I/O streams.
mrpt::vision::TStereoCalibResults out
void setSize(size_t row, size_t col, bool zeroNewElements=false)
Changes the size of matrix, maintaining the previous contents.
size_t ReadBuffer(void *Buffer, size_t Count)
Reads a block of bytes from the stream into Buffer.
This class is a "CSerializable" wrapper for "CMatrixBool".
void serializeFrom(mrpt::serialization::CArchive &in, uint8_t serial_version) override
Pure virtual method for reading (deserializing) from an abstract archive.
void serializeTo(mrpt::serialization::CArchive &out) const override
Pure virtual method for writing (serializing) to an abstract archive.