19 template <
typename T,
typename U,
bool UIsObject>
20 class CBinaryRelation;
28 template <
typename U,
bool B>
45 template <
typename T,
typename U,
bool UIsObject,
typename FunctionType>
48 const T& T1,
const T& T2);
56 template <
typename A,
typename T>
135 template <
typename A,
typename T>
219 template <
typename MAT>
275 throw std::logic_error(
"Tried to resize a fixed-size vector");
278 template <
typename MAT>
305 MAT& mat,
size_t row,
size_t offset,
size_t space)
352 throw std::logic_error(
"Tried to resize a fixed-size vector");
355 template <
typename MAT>
357 MAT& m,
size_t rowIdx,
size_t offset,
size_t space = 1)
410 throw std::logic_error(
"Tried to resize a fixed-size vector");
413 template <
typename MAT>
440 const MAT& mat,
size_t row,
size_t offset,
size_t space)
472 throw std::logic_error(
"Tried to resize a fixed-size vector");
475 template <
typename MAT>
477 const MAT& m,
size_t rowIdx,
size_t offset,
size_t space = 1)
487 template <
typename MAT>
543 throw std::logic_error(
"Tried to resize a fixed-size vector");
546 template <
typename MAT>
557 template <
typename MAT>
571 MAT& mat,
size_t col,
size_t offset,
size_t space)
618 throw std::logic_error(
"Tried to resize a fixed-size vector");
621 template <
typename MAT>
623 MAT& m,
size_t colIdx,
size_t offset,
size_t space = 1)
674 throw std::logic_error(
"Tried to resize a fixed-size vector");
677 template <
typename MAT>
679 const MAT& m,
size_t colIdx)
689 template <
typename MAT>
703 const MAT& mat,
size_t col,
size_t offset,
size_t space)
735 throw std::logic_error(
"Tried to resize a fixed-size vector");
738 template <
typename MAT>
740 const MAT& m,
size_t colIdx,
size_t offset,
size_t space = 1)
detail::ReverseAccessorIterator< const CConstMatrixRowAccessor< MAT >, const value_type > const_reverse_iterator
bool operator==(const AccessorIterator< A, T > &it) const
CConstMatrixRowAccessor()
A vector-like wrapper for a const Matrix for accessing the elements of a given column with a [] opera...
void applyFunction(CBinaryRelation< T, U, UIsObject > &o, FunctionType fun, size_t e1, size_t e2, const T &T1, const T &T2)
const_iterator begin() const
detail::AccessorIterator< CMatrixRowAccessorExtended< MAT >, value_type > iterator
value_type & operator[](size_t i)
CMatrixTemplateObjects< U > MatrixType
CMatrixColumnAccessor(MAT &mat, size_t colIdx)
This template is a trick to switch the type of a variable using a boolean variable in the template...
CMatrixRowAccessorExtended()
CConstMatrixRowAccessorExtended(const MAT &mat, size_t row, size_t offset, size_t space)
const_reverse_iterator rbegin() const
detail::ReverseAccessorIterator< const CMatrixRowAccessorExtended< MAT >, const value_type > const_reverse_iterator
const_reverse_iterator rbegin() const
const_reverse_iterator rbegin() const
typename MAT::Scalar value_type
ReverseAccessorIterator(A &obj, size_t N)
value_type operator[](const size_t i) const
reverse_iterator rbegin()
detail::ReverseAccessorIterator< CMatrixRowAccessorExtended< MAT >, value_type > reverse_iterator
int operator-(const AccessorIterator< A, T > &it) const
const_reverse_iterator rbegin() const
value_type & operator[](const size_t i)
const_reverse_iterator rend() const
A vector-like wrapper for a const Matrix for accessing the elements of a given row with a [] operator...
detail::AccessorIterator< CMatrixColumnAccessor< MAT >, value_type > iterator
A vector-like wrapper for a Matrix for accessing the elements of a given column with a [] operator...
const_iterator end() const
const_iterator begin() const
detail::ReverseAccessorIterator< CMatrixColumnAccessor< MAT >, value_type > reverse_iterator
AccessorIterator< A, T > operator++(int)
detail::ReverseAccessorIterator< const CConstMatrixColumnAccessorExtended< MAT >, const value_type > const_reverse_iterator
This class models a binary relation through the elements of any given set.
ReverseAccessorIterator< A, T > operator--(int)
detail::AccessorIterator< const CMatrixRowAccessorExtended< MAT >, const value_type > const_iterator
ReverseAccessorIterator< A, T > operator++(int)
std::random_access_iterator_tag iterator_category
const_iterator begin() const
AccessorIterator< A, T > & operator+=(int off)
detail::AccessorIterator< const CConstMatrixColumnAccessorExtended< MAT >, const value_type > const_iterator
const_iterator begin() const
typename MAT::Scalar value_type
value_type operator[](size_t i) const
const_reverse_iterator rbegin() const
const_iterator end() const
const_iterator begin() const
const_reverse_iterator rend() const
A vector-like wrapper for a Matrix for accessing the elements of a given row with a [] operator...
typename MAT::Scalar value_type
const_reverse_iterator rend() const
#define ASSERT_(f)
Defines an assertion mechanism.
const_reverse_iterator rbegin() const
CMatrixRowAccessor< MAT > getRowAccessor(MAT &m, size_t rowIdx)
AccessorIterator< A, T > & operator--()
const_reverse_iterator rend() const
A vector-like wrapper for a const Matrix for accessing the elements of a given row with a [] operator...
CMatrixRowAccessorExtended(MAT &mat, size_t row, size_t offset, size_t space)
const_reverse_iterator rbegin() const
T & operator[](int off) const
int operator-(const ReverseAccessorIterator< A, T > &it) const
typename MAT::Scalar value_type
value_type operator[](size_t i) const
bool operator!=(const AccessorIterator< A, T > &it) const
detail::ReverseAccessorIterator< const CConstMatrixRowAccessorExtended< MAT >, const value_type > const_reverse_iterator
detail::AccessorIterator< const CConstMatrixRowAccessor< MAT >, const value_type > const_iterator
const_iterator begin() const
detail::ReverseAccessorIterator< CMatrixRowAccessor< MAT >, value_type > reverse_iterator
AccessorIterator< A, T > operator-(int off) const
bool operator!=(const ReverseAccessorIterator< A, T > &it) const
ReverseAccessorIterator< A, T > & operator+=(int off)
value_type operator[](size_t i) const
typename MAT::Scalar value_type
detail::ReverseAccessorIterator< const CMatrixRowAccessor< MAT >, const value_type > const_reverse_iterator
CConstMatrixColumnAccessorExtended(const MAT &mat, size_t col, size_t offset, size_t space)
A vector-like wrapper for a Matrix for accessing the elements of a given row with a [] operator...
reverse_iterator rbegin()
detail::AccessorIterator< CMatrixRowAccessor< MAT >, value_type > iterator
reverse_iterator rbegin()
const_iterator begin() const
value_type operator[](size_t i) const
ReverseAccessorIterator< A, T > & operator++()
ReverseAccessorIterator< A, T > & operator--()
CConstMatrixRowAccessor(const MAT &mat, size_t row)
const_iterator begin() const
detail::ReverseAccessorIterator< CMatrixColumnAccessorExtended< MAT >, value_type > reverse_iterator
CConstMatrixColumnAccessor(const MAT &mat, size_t colIdx)
CConstMatrixColumnAccessor()
detail::ReverseAccessorIterator< const CMatrixColumnAccessorExtended< MAT >, const value_type > const_reverse_iterator
const_iterator end() const
typename MAT::Scalar value_type
This is the global namespace for all Mobile Robot Programming Toolkit (MRPT) libraries.
const_reverse_iterator rend() const
typename MAT::Scalar value_type
typename MAT::Scalar value_type
Template class for matrix accessor's iterators.
T & operator[](int off) const
AccessorIterator< A, T > & operator++()
const_reverse_iterator rend() const
CMatrixColumnAccessor< MAT > getColumnAccessor(MAT &m, size_t colIdx)
detail::AccessorIterator< const CMatrixRowAccessor< MAT >, const value_type > const_iterator
const_iterator end() const
AccessorIterator< A, T > operator-(int off) const
value_type operator[](size_t i) const
const_reverse_iterator rbegin() const
detail::ReverseAccessorIterator< const CMatrixColumnAccessor< MAT >, const value_type > const_reverse_iterator
value_type & operator[](const size_t i)
ReverseAccessorIterator< A, T > operator+(int off) const
AccessorIterator(A &obj, size_t N)
CMatrixColumnAccessorExtended(MAT &mat, size_t col, size_t offset, size_t space)
AccessorIterator< A, T > operator+(int off) const
CConstMatrixRowAccessorExtended()
const_iterator end() const
detail::ReverseAccessorIterator< const CConstMatrixColumnAccessor< MAT >, const value_type > const_reverse_iterator
CConstMatrixColumnAccessorExtended()
const_reverse_iterator rend() const
Template class for matrix accessor's iterators.
detail::AccessorIterator< const CConstMatrixRowAccessorExtended< MAT >, const value_type > const_iterator
value_type operator[](size_t i) const
CMatrixColumnAccessorExtended()
AccessorIterator< A, T > operator--(int)
detail::AccessorIterator< const CMatrixColumnAccessorExtended< MAT >, const value_type > const_iterator
detail::AccessorIterator< const CConstMatrixColumnAccessor< MAT >, const value_type > const_iterator
const_reverse_iterator rend() const
const_iterator end() const
AccessorIterator< A, T > & operator-=(int off)
A vector-like wrapper for a Matrix for accessing the elements of a given column with a [] operator...
This template class provides the basic functionality for a general 2D any-size, resizable container o...
reverse_iterator rbegin()
const_iterator end() const
AccessorIterator< A, T > & operator-=(int off)
detail::AccessorIterator< CMatrixColumnAccessorExtended< MAT >, value_type > iterator
const_iterator end() const
detail::AccessorIterator< const CMatrixColumnAccessor< MAT >, const value_type > const_iterator
bool operator==(const ReverseAccessorIterator< A, T > &it) const
value_type operator[](const size_t i) const
value_type & operator[](size_t i)
CMatrixRowAccessor(MAT &mat, size_t rowIdx)
std::random_access_iterator_tag iterator_category
A vector-like wrapper for a const Matrix for accessing the elements of a given column with a [] opera...