Go to the documentation of this file.
9 #ifndef mrpt_matrix_adaptors_H
10 #define mrpt_matrix_adaptors_H
20 template <
typename T,
typename U,
bool UIsObject>
21 class CBinaryRelation;
29 template <
typename U,
bool B>
46 template <
typename T,
typename U,
bool UIsObject,
typename FunctionType>
49 const T& T1,
const T& T2);
57 template <
typename A,
typename T>
136 template <
typename A,
typename T>
220 template <
typename MAT>
276 throw std::logic_error(
"Tried to resize a fixed-size vector");
279 template <
typename MAT>
306 MAT& mat,
size_t row,
size_t offset,
size_t space)
353 throw std::logic_error(
"Tried to resize a fixed-size vector");
356 template <
typename MAT>
358 MAT& m,
size_t rowIdx,
size_t offset,
size_t space = 1)
411 throw std::logic_error(
"Tried to resize a fixed-size vector");
414 template <
typename MAT>
441 const MAT& mat,
size_t row,
size_t offset,
size_t space)
473 throw std::logic_error(
"Tried to resize a fixed-size vector");
476 template <
typename MAT>
478 const MAT& m,
size_t rowIdx,
size_t offset,
size_t space = 1)
488 template <
typename MAT>
544 throw std::logic_error(
"Tried to resize a fixed-size vector");
547 template <
typename MAT>
558 template <
typename MAT>
572 MAT& mat,
size_t col,
size_t offset,
size_t space)
619 throw std::logic_error(
"Tried to resize a fixed-size vector");
622 template <
typename MAT>
624 MAT& m,
size_t colIdx,
size_t offset,
size_t space = 1)
675 throw std::logic_error(
"Tried to resize a fixed-size vector");
678 template <
typename MAT>
680 const MAT& m,
size_t colIdx)
690 template <
typename MAT>
704 const MAT& mat,
size_t col,
size_t offset,
size_t space)
736 throw std::logic_error(
"Tried to resize a fixed-size vector");
739 template <
typename MAT>
741 const MAT& m,
size_t colIdx,
size_t offset,
size_t space = 1)
value_type operator[](size_t i) const
std::random_access_iterator_tag iterator_category
detail::AccessorIterator< const CConstMatrixColumnAccessor< MAT >, const value_type > const_iterator
detail::ReverseAccessorIterator< const CConstMatrixRowAccessor< MAT >, const value_type > const_reverse_iterator
reverse_iterator rbegin()
reverse_iterator rbegin()
detail::AccessorIterator< CMatrixColumnAccessorExtended< MAT >, value_type > iterator
const_iterator end() const
const_iterator end() const
CConstMatrixRowAccessorExtended()
value_type & operator[](const size_t i)
value_type operator[](const size_t i) const
AccessorIterator< A, T > & operator+=(int off)
AccessorIterator< A, T > & operator-=(int off)
const Scalar * const_iterator
typename MAT::Scalar value_type
const_iterator begin() const
typename MAT::Scalar value_type
typename MAT::Scalar value_type
detail::ReverseAccessorIterator< CMatrixRowAccessorExtended< MAT >, value_type > reverse_iterator
detail::AccessorIterator< CMatrixRowAccessorExtended< MAT >, value_type > iterator
Template class for matrix accessor's iterators.
detail::AccessorIterator< const CConstMatrixRowAccessorExtended< MAT >, const value_type > const_iterator
This class models a binary relation through the elements of any given set.
CMatrixColumnAccessorExtended(MAT &mat, size_t col, size_t offset, size_t space)
bool operator==(const ReverseAccessorIterator< A, T > &it) const
CMatrixColumnAccessorExtended()
const_reverse_iterator rbegin() const
AccessorIterator< A, T > & operator--()
This template class provides the basic functionality for a general 2D any-size, resizable container o...
Template class for matrix accessor's iterators.
bool operator==(const AccessorIterator< A, T > &it) const
bool operator!=(const AccessorIterator< A, T > &it) const
const_iterator begin() const
void applyFunction(CBinaryRelation< T, U, UIsObject > &o, FunctionType fun, size_t e1, size_t e2, const T &T1, const T &T2)
GLsizei GLsizei GLuint * obj
detail::AccessorIterator< CMatrixRowAccessor< MAT >, value_type > iterator
A vector-like wrapper for a const Matrix for accessing the elements of a given column with a [] opera...
bool operator!=(const ReverseAccessorIterator< A, T > &it) const
value_type operator[](size_t i) const
value_type operator[](size_t i) const
CMatrixColumnAccessor< MAT > getColumnAccessor(MAT &m, size_t colIdx)
AccessorIterator< A, T > operator++(int)
AccessorIterator< A, T > operator-(int off) const
value_type & operator[](size_t i)
const_reverse_iterator rend() const
ReverseAccessorIterator< A, T > operator--(int)
This is the global namespace for all Mobile Robot Programming Toolkit (MRPT) libraries.
typename MAT::Scalar value_type
const_reverse_iterator rend() const
CConstMatrixColumnAccessorExtended()
const_iterator end() const
const_reverse_iterator rend() const
detail::AccessorIterator< const CMatrixRowAccessorExtended< MAT >, const value_type > const_iterator
detail::ReverseAccessorIterator< CMatrixColumnAccessor< MAT >, value_type > reverse_iterator
const_reverse_iterator rend() const
#define ASSERT_(f)
Defines an assertion mechanism.
A vector-like wrapper for a Matrix for accessing the elements of a given row with a [] operator.
AccessorIterator< A, T > operator+(int off) const
A vector-like wrapper for a Matrix for accessing the elements of a given column with a [] operator,...
detail::ReverseAccessorIterator< const CMatrixRowAccessor< MAT >, const value_type > const_reverse_iterator
detail::AccessorIterator< const CMatrixRowAccessor< MAT >, const value_type > const_iterator
CConstMatrixRowAccessor()
const_reverse_iterator rbegin() const
int operator-(const AccessorIterator< A, T > &it) const
AccessorIterator< A, T > & operator-=(int off)
const_iterator end() const
const_reverse_iterator rbegin() const
ReverseAccessorIterator< A, T > & operator--()
typename MAT::Scalar value_type
AccessorIterator(A &obj, size_t N)
detail::ReverseAccessorIterator< const CMatrixRowAccessorExtended< MAT >, const value_type > const_reverse_iterator
CConstMatrixColumnAccessor()
detail::AccessorIterator< const CMatrixColumnAccessor< MAT >, const value_type > const_iterator
detail::AccessorIterator< const CConstMatrixRowAccessor< MAT >, const value_type > const_iterator
detail::ReverseAccessorIterator< CMatrixColumnAccessorExtended< MAT >, value_type > reverse_iterator
CMatrixColumnAccessor(MAT &mat, size_t colIdx)
const_iterator begin() const
A vector-like wrapper for a Matrix for accessing the elements of a given row with a [] operator,...
const_iterator end() const
ReverseAccessorIterator< A, T > operator+(int off) const
value_type & operator[](const size_t i)
CMatrixRowAccessorExtended(MAT &mat, size_t row, size_t offset, size_t space)
This template is a trick to switch the type of a variable using a boolean variable in the template.
const_reverse_iterator rend() const
ReverseAccessorIterator(A &obj, size_t N)
detail::AccessorIterator< CMatrixColumnAccessor< MAT >, value_type > iterator
const_reverse_iterator rbegin() const
T & operator[](int off) const
T & operator[](int off) const
typename MAT::Scalar value_type
detail::ReverseAccessorIterator< const CMatrixColumnAccessorExtended< MAT >, const value_type > const_reverse_iterator
This template class extends the class "CMatrixTemplate" for storing "objects" at each matrix entry.
int operator-(const ReverseAccessorIterator< A, T > &it) const
A vector-like wrapper for a Matrix for accessing the elements of a given column with a [] operator.
typename MAT::Scalar value_type
ReverseAccessorIterator< A, T > & operator+=(int off)
typename MAT::Scalar value_type
detail::ReverseAccessorIterator< const CConstMatrixColumnAccessorExtended< MAT >, const value_type > const_reverse_iterator
const_reverse_iterator rend() const
const_reverse_iterator rbegin() const
A vector-like wrapper for a const Matrix for accessing the elements of a given row with a [] operator...
const_iterator begin() const
value_type operator[](size_t i) const
const_reverse_iterator rbegin() const
A vector-like wrapper for a const Matrix for accessing the elements of a given row with a [] operator...
const_iterator begin() const
const_iterator end() const
detail::ReverseAccessorIterator< CMatrixRowAccessor< MAT >, value_type > reverse_iterator
const_iterator begin() const
ReverseAccessorIterator< A, T > operator++(int)
CConstMatrixColumnAccessor(const MAT &mat, size_t colIdx)
reverse_iterator rbegin()
CMatrixRowAccessorExtended()
const_iterator end() const
GLenum GLenum GLvoid * row
CConstMatrixRowAccessorExtended(const MAT &mat, size_t row, size_t offset, size_t space)
CConstMatrixRowAccessor(const MAT &mat, size_t row)
detail::ReverseAccessorIterator< const CConstMatrixRowAccessorExtended< MAT >, const value_type > const_reverse_iterator
CMatrixRowAccessor(MAT &mat, size_t rowIdx)
const_reverse_iterator rbegin() const
value_type operator[](size_t i) const
A vector-like wrapper for a const Matrix for accessing the elements of a given column with a [] opera...
detail::AccessorIterator< const CConstMatrixColumnAccessorExtended< MAT >, const value_type > const_iterator
detail::ReverseAccessorIterator< const CConstMatrixColumnAccessor< MAT >, const value_type > const_reverse_iterator
ReverseAccessorIterator< A, T > & operator++()
value_type operator[](size_t i) const
AccessorIterator< A, T > & operator++()
value_type & operator[](size_t i)
const_iterator begin() const
reverse_iterator rbegin()
const_reverse_iterator rbegin() const
CMatrixRowAccessor< MAT > getRowAccessor(MAT &m, size_t rowIdx)
value_type operator[](const size_t i) const
AccessorIterator< A, T > operator--(int)
const_reverse_iterator rend() const
detail::AccessorIterator< const CMatrixColumnAccessorExtended< MAT >, const value_type > const_iterator
detail::ReverseAccessorIterator< const CMatrixColumnAccessor< MAT >, const value_type > const_reverse_iterator
std::random_access_iterator_tag iterator_category
const_iterator begin() const
AccessorIterator< A, T > operator-(int off) const
const_reverse_iterator rend() const
const_iterator end() const
CConstMatrixColumnAccessorExtended(const MAT &mat, size_t col, size_t offset, size_t space)
Page generated by Doxygen 1.8.17 for MRPT 1.9.9 Git: ad3a9d8ae Tue May 1 23:10:22 2018 -0700 at miƩ 12 jul 2023 10:03:34 CEST | |