Main MRPT website > C++ reference for MRPT 1.4.0
CMatrixB.h
Go to the documentation of this file.
1/* +---------------------------------------------------------------------------+
2 | Mobile Robot Programming Toolkit (MRPT) |
3 | http://www.mrpt.org/ |
4 | |
5 | Copyright (c) 2005-2016, Individual contributors, see AUTHORS file |
6 | See: http://www.mrpt.org/Authors - All rights reserved. |
7 | Released under BSD License. See details in http://www.mrpt.org/License |
8 +---------------------------------------------------------------------------+ */
9#ifndef CMATRIXB_H
10#define CMATRIXB_H
11
14
15namespace mrpt
16{
17 namespace math
18 {
19 // This must be added to any CSerializable derived class:
20 DEFINE_SERIALIZABLE_PRE_CUSTOM_BASE( CMatrixB, mrpt::utils::CSerializable )
21
22 /** This class is a "CSerializable" wrapper for "CMatrixBool".
23 * \note For a complete introduction to Matrices and vectors in MRPT, see: http://www.mrpt.org/Matrices_vectors_arrays_and_Linear_Algebra_MRPT_and_Eigen_classes
24 * \ingroup mrpt_base_grp
25 */
26 class BASE_IMPEXP CMatrixB : public mrpt::utils::CSerializable, public CMatrixBool
27 {
28 // This must be added to any CSerializable derived class:
30 public:
31 /** Constructor */
32 CMatrixB(size_t row = 1, size_t col = 1) : CMatrixBool(row,col) { }
33 /** Copy constructor */
34 CMatrixB( const CMatrixBool &m ) : CMatrixBool(m) { }
35 /** Assignment operator for float matrixes */
36 CMatrixB & operator = (const CMatrixBool& m) { CMatrixBool::operator =(m); return *this; }
37 }; // end of class definition
38 DEFINE_SERIALIZABLE_POST_CUSTOM_BASE( CMatrixB, mrpt::utils::CSerializable )
39
40 } // End of namespace
41} // End of namespace
42
43#endif
#define DEFINE_SERIALIZABLE(class_name)
This declaration must be inserted in all CSerializable classes definition, within the class declarati...
#define DEFINE_SERIALIZABLE_POST_CUSTOM_BASE(class_name, base_name)
#define DEFINE_SERIALIZABLE_PRE_CUSTOM_BASE(class_name, base_name)
This declaration must be inserted in all CSerializable classes definition, before the class declarati...
This class is a "CSerializable" wrapper for "CMatrixBool".
Definition: CMatrixB.h:27
CMatrixB(const CMatrixBool &m)
Copy constructor.
Definition: CMatrixB.h:34
CMatrixB(size_t row=1, size_t col=1)
Constructor.
Definition: CMatrixB.h:32
Declares a matrix of booleans (non serializable).
CMatrixBool & operator=(const CMatrixTemplate< bool > &m)
Assignment operator for float matrixes.
This is the global namespace for all Mobile Robot Programming Toolkit (MRPT) libraries.



Page generated by Doxygen 1.9.6 for MRPT 1.4.0 SVN: at Fri Jan 20 00:13:14 UTC 2023