A vector-like wrapper for a Matrix for accessing the elements of a given row with a [] operator.
For usage with MRPT's CMatrixTemplate only (for MRPT numeric matrices, use Eigen methods)
#include <mrpt/math/matrix_adaptors.h>
Public Types | |
| typedef MAT::value_type | value_type |
| typedef CMatrixRowAccessor< MAT > | mrpt_autotype |
| typedef detail::AccessorIterator < CMatrixRowAccessor< MAT > , value_type > | iterator |
| typedef detail::AccessorIterator < const CMatrixRowAccessor < MAT >, const value_type > | const_iterator |
| typedef detail::ReverseAccessorIterator < CMatrixRowAccessor< MAT > , value_type > | reverse_iterator |
| typedef detail::ReverseAccessorIterator < const CMatrixRowAccessor < MAT >, const value_type > | const_reverse_iterator |
Public Member Functions | |
| CMatrixRowAccessor (MAT &mat, size_t rowIdx) | |
| CMatrixRowAccessor () | |
| value_type & | operator[] (const size_t i) |
| value_type | operator[] (const size_t i) const |
| iterator | begin () |
| const_iterator | begin () const |
| iterator | end () |
| const_iterator | end () const |
| reverse_iterator | rbegin () |
| const_reverse_iterator | rbegin () const |
| reverse_iterator | rend () |
| const_reverse_iterator | rend () const |
| size_t | size () const |
| void | resize (size_t N) |
Protected Attributes | |
| MAT * | m_mat |
| size_t | m_rowInd |
| typedef detail::AccessorIterator<const CMatrixRowAccessor<MAT>,const value_type> mrpt::math::CMatrixRowAccessor::const_iterator |
Definition at line 226 of file matrix_adaptors.h.
| typedef detail::ReverseAccessorIterator<const CMatrixRowAccessor<MAT>,const value_type> mrpt::math::CMatrixRowAccessor::const_reverse_iterator |
Definition at line 228 of file matrix_adaptors.h.
| typedef detail::AccessorIterator<CMatrixRowAccessor<MAT>,value_type> mrpt::math::CMatrixRowAccessor::iterator |
Definition at line 225 of file matrix_adaptors.h.
Definition at line 217 of file matrix_adaptors.h.
| typedef detail::ReverseAccessorIterator<CMatrixRowAccessor<MAT>,value_type> mrpt::math::CMatrixRowAccessor::reverse_iterator |
Definition at line 227 of file matrix_adaptors.h.
Definition at line 216 of file matrix_adaptors.h.
| mrpt::math::CMatrixRowAccessor::CMatrixRowAccessor | ( | MAT & | mat, |
| size_t | rowIdx | ||
| ) | [inline] |
Definition at line 221 of file matrix_adaptors.h.
References ASSERT_.
| mrpt::math::CMatrixRowAccessor::CMatrixRowAccessor | ( | ) | [inline] |
Definition at line 222 of file matrix_adaptors.h.
| iterator mrpt::math::CMatrixRowAccessor::begin | ( | ) | [inline] |
Definition at line 229 of file matrix_adaptors.h.
| const_iterator mrpt::math::CMatrixRowAccessor::begin | ( | ) | const [inline] |
Definition at line 232 of file matrix_adaptors.h.
| iterator mrpt::math::CMatrixRowAccessor::end | ( | ) | [inline] |
Definition at line 235 of file matrix_adaptors.h.
References m_mat.
| const_iterator mrpt::math::CMatrixRowAccessor::end | ( | ) | const [inline] |
Definition at line 238 of file matrix_adaptors.h.
References m_mat.
| value_type& mrpt::math::CMatrixRowAccessor::operator[] | ( | const size_t | i | ) | [inline] |
Definition at line 223 of file matrix_adaptors.h.
| value_type mrpt::math::CMatrixRowAccessor::operator[] | ( | const size_t | i | ) | const [inline] |
Definition at line 224 of file matrix_adaptors.h.
| reverse_iterator mrpt::math::CMatrixRowAccessor::rbegin | ( | ) | [inline] |
Definition at line 241 of file matrix_adaptors.h.
References m_mat.
| const_reverse_iterator mrpt::math::CMatrixRowAccessor::rbegin | ( | ) | const [inline] |
Definition at line 244 of file matrix_adaptors.h.
References m_mat.
| reverse_iterator mrpt::math::CMatrixRowAccessor::rend | ( | ) | [inline] |
Definition at line 247 of file matrix_adaptors.h.
| const_reverse_iterator mrpt::math::CMatrixRowAccessor::rend | ( | ) | const [inline] |
Definition at line 250 of file matrix_adaptors.h.
| void mrpt::math::CMatrixRowAccessor::resize | ( | size_t | N | ) | [inline] |
Definition at line 256 of file matrix_adaptors.h.
References size().
| size_t mrpt::math::CMatrixRowAccessor::size | ( | ) | const [inline] |
Definition at line 253 of file matrix_adaptors.h.
References m_mat.
Referenced by resize(), mrpt::math::CMatrixRowAccessorExtended::resize(), mrpt::math::CConstMatrixRowAccessor::resize(), mrpt::math::CConstMatrixRowAccessorExtended::resize(), mrpt::math::CMatrixColumnAccessor::resize(), mrpt::math::CMatrixColumnAccessorExtended::resize(), mrpt::math::CConstMatrixColumnAccessor::resize(), and mrpt::math::CConstMatrixColumnAccessorExtended::resize().
MAT* mrpt::math::CMatrixRowAccessor::m_mat [protected] |
Definition at line 213 of file matrix_adaptors.h.
Referenced by operator[](), end(), rbegin(), size(), mrpt::math::CMatrixRowAccessorExtended::operator[](), mrpt::math::CConstMatrixRowAccessor::operator[](), mrpt::math::CConstMatrixRowAccessor::end(), mrpt::math::CConstMatrixRowAccessor::rbegin(), mrpt::math::CConstMatrixRowAccessor::size(), mrpt::math::CConstMatrixRowAccessorExtended::operator[](), mrpt::math::CMatrixColumnAccessor::operator[](), mrpt::math::CMatrixColumnAccessor::end(), mrpt::math::CMatrixColumnAccessor::rbegin(), mrpt::math::CMatrixColumnAccessor::size(), mrpt::math::CMatrixColumnAccessorExtended::operator[](), mrpt::math::CConstMatrixColumnAccessor::operator[](), mrpt::math::CConstMatrixColumnAccessor::end(), mrpt::math::CConstMatrixColumnAccessor::rbegin(), mrpt::math::CConstMatrixColumnAccessor::size(), and mrpt::math::CConstMatrixColumnAccessorExtended::operator[]().
size_t mrpt::math::CMatrixRowAccessor::m_rowInd [protected] |
Definition at line 214 of file matrix_adaptors.h.
Referenced by operator[](), mrpt::math::CMatrixRowAccessorExtended::operator[](), mrpt::math::CConstMatrixRowAccessor::operator[](), and mrpt::math::CConstMatrixRowAccessorExtended::operator[]().
| Page generated by Doxygen 1.7.5 for MRPT 0.9.5 SVN: at Thu Oct 13 21:25:36 UTC 2011 |