A random-access const iterator for trasversing all the elements of a matrix, left to right, top to bottom. More...
#include <mrpt/math/matrix_iterators.h>
Public Member Functions | |
| bool | operator< (const CGenericMatrixConstIterator< MATRIXTYPE > &it2) const |
| bool | operator> (const CGenericMatrixConstIterator< MATRIXTYPE > &it2) const |
| size_t | getCol () const |
| size_t | getRow () const |
| CGenericMatrixConstIterator () | |
| CGenericMatrixConstIterator (const MATRIXTYPE &obj, size_t start_row, size_t start_col) | |
| MATRIXTYPE::const_reference | operator* () const |
| CGenericMatrixConstIterator < MATRIXTYPE > & | operator++ () |
| CGenericMatrixConstIterator < MATRIXTYPE > | operator++ (int) |
| CGenericMatrixConstIterator < MATRIXTYPE > & | operator-- () |
| CGenericMatrixConstIterator < MATRIXTYPE > | operator-- (int) |
| CGenericMatrixConstIterator < MATRIXTYPE > & | operator+= (typename iterator_base::difference_type off) |
| CGenericMatrixConstIterator < MATRIXTYPE > | operator+ (typename iterator_base::difference_type off) const |
| CGenericMatrixConstIterator < MATRIXTYPE > & | operator-= (typename iterator_base::difference_type off) |
| CGenericMatrixConstIterator < MATRIXTYPE > | operator- (typename iterator_base::difference_type off) const |
| iterator_base::difference_type | operator- (const CGenericMatrixConstIterator< MATRIXTYPE > &it) const |
| MATRIXTYPE::const_reference | operator[] (typename iterator_base::difference_type off) const |
| bool | operator== (const CGenericMatrixConstIterator< MATRIXTYPE > &it) const |
| bool | operator!= (const CGenericMatrixConstIterator< MATRIXTYPE > &it) const |
Private Types | |
| typedef std::iterator < std::random_access_iterator_tag, typename MATRIXTYPE::value_type > | iterator_base |
| typedef MATRIXTYPE::value_type | T |
| The type of the matrix elements. | |
Private Member Functions | |
| void | check_limits (bool allow_end=false) const |
Private Attributes | |
| const MATRIXTYPE * | m_matrix |
| A reference to the source of this iterator. | |
| size_t | m_cur_row |
| size_t | m_cur_col |
| The iterator points to this element. | |
A random-access const iterator for trasversing all the elements of a matrix, left to right, top to bottom.
Only in DEBUG mode, the iterator checks for the limits of the matrix.
Definition at line 196 of file matrix_iterators.h.
typedef std::iterator<std::random_access_iterator_tag,typename MATRIXTYPE::value_type> mrpt::math::detail::CGenericMatrixConstIterator< MATRIXTYPE >::iterator_base [private] |
Definition at line 199 of file matrix_iterators.h.
typedef MATRIXTYPE::value_type mrpt::math::detail::CGenericMatrixConstIterator< MATRIXTYPE >::T [private] |
The type of the matrix elements.
Definition at line 202 of file matrix_iterators.h.
| mrpt::math::detail::CGenericMatrixConstIterator< MATRIXTYPE >::CGenericMatrixConstIterator | ( | ) | [inline] |
Definition at line 236 of file matrix_iterators.h.
| mrpt::math::detail::CGenericMatrixConstIterator< MATRIXTYPE >::CGenericMatrixConstIterator | ( | const MATRIXTYPE & | obj, | |
| size_t | start_row, | |||
| size_t | start_col | |||
| ) | [inline] |
Definition at line 237 of file matrix_iterators.h.
References mrpt::math::detail::CGenericMatrixConstIterator< MATRIXTYPE >::check_limits().
| void mrpt::math::detail::CGenericMatrixConstIterator< MATRIXTYPE >::check_limits | ( | bool | allow_end = false |
) | const [inline, private] |
Definition at line 204 of file matrix_iterators.h.
References ASSERTMSG_, mrpt::math::detail::CGenericMatrixConstIterator< MATRIXTYPE >::m_cur_col, mrpt::math::detail::CGenericMatrixConstIterator< MATRIXTYPE >::m_cur_row, mrpt::math::detail::CGenericMatrixConstIterator< MATRIXTYPE >::m_matrix, and THROW_EXCEPTION.
Referenced by mrpt::math::detail::CGenericMatrixConstIterator< MATRIXTYPE >::CGenericMatrixConstIterator().
| size_t mrpt::math::detail::CGenericMatrixConstIterator< MATRIXTYPE >::getCol | ( | ) | const [inline] |
Definition at line 233 of file matrix_iterators.h.
References mrpt::math::detail::CGenericMatrixConstIterator< MATRIXTYPE >::m_cur_row.
| size_t mrpt::math::detail::CGenericMatrixConstIterator< MATRIXTYPE >::getRow | ( | ) | const [inline] |
Definition at line 234 of file matrix_iterators.h.
| bool mrpt::math::detail::CGenericMatrixConstIterator< MATRIXTYPE >::operator!= | ( | const CGenericMatrixConstIterator< MATRIXTYPE > & | it | ) | const [inline] |
Definition at line 311 of file matrix_iterators.h.
| MATRIXTYPE::const_reference mrpt::math::detail::CGenericMatrixConstIterator< MATRIXTYPE >::operator* | ( | ) | const [inline] |
Definition at line 242 of file matrix_iterators.h.
| CGenericMatrixConstIterator<MATRIXTYPE> mrpt::math::detail::CGenericMatrixConstIterator< MATRIXTYPE >::operator+ | ( | typename iterator_base::difference_type | off | ) | const [inline] |
Definition at line 287 of file matrix_iterators.h.
| CGenericMatrixConstIterator<MATRIXTYPE> mrpt::math::detail::CGenericMatrixConstIterator< MATRIXTYPE >::operator++ | ( | int | ) | [inline] |
Definition at line 251 of file matrix_iterators.h.
| CGenericMatrixConstIterator<MATRIXTYPE>& mrpt::math::detail::CGenericMatrixConstIterator< MATRIXTYPE >::operator++ | ( | ) | [inline] |
Definition at line 246 of file matrix_iterators.h.
| CGenericMatrixConstIterator<MATRIXTYPE>& mrpt::math::detail::CGenericMatrixConstIterator< MATRIXTYPE >::operator+= | ( | typename iterator_base::difference_type | off | ) | [inline] |
Definition at line 270 of file matrix_iterators.h.
References mrpt::math::detail::CGenericMatrixConstIterator< MATRIXTYPE >::m_cur_col, and mrpt::math::detail::CGenericMatrixConstIterator< MATRIXTYPE >::m_cur_row.
| iterator_base::difference_type mrpt::math::detail::CGenericMatrixConstIterator< MATRIXTYPE >::operator- | ( | const CGenericMatrixConstIterator< MATRIXTYPE > & | it | ) | const [inline] |
Definition at line 300 of file matrix_iterators.h.
| CGenericMatrixConstIterator<MATRIXTYPE> mrpt::math::detail::CGenericMatrixConstIterator< MATRIXTYPE >::operator- | ( | typename iterator_base::difference_type | off | ) | const [inline] |
Definition at line 295 of file matrix_iterators.h.
| CGenericMatrixConstIterator<MATRIXTYPE> mrpt::math::detail::CGenericMatrixConstIterator< MATRIXTYPE >::operator-- | ( | int | ) | [inline] |
Definition at line 265 of file matrix_iterators.h.
| CGenericMatrixConstIterator<MATRIXTYPE>& mrpt::math::detail::CGenericMatrixConstIterator< MATRIXTYPE >::operator-- | ( | ) | [inline] |
| CGenericMatrixConstIterator<MATRIXTYPE>& mrpt::math::detail::CGenericMatrixConstIterator< MATRIXTYPE >::operator-= | ( | typename iterator_base::difference_type | off | ) | [inline] |
Definition at line 292 of file matrix_iterators.h.
| bool mrpt::math::detail::CGenericMatrixConstIterator< MATRIXTYPE >::operator< | ( | const CGenericMatrixConstIterator< MATRIXTYPE > & | it2 | ) | const [inline] |
Definition at line 218 of file matrix_iterators.h.
References mrpt::math::detail::CGenericMatrixConstIterator< MATRIXTYPE >::m_cur_col, and mrpt::math::detail::CGenericMatrixConstIterator< MATRIXTYPE >::m_cur_row.
| bool mrpt::math::detail::CGenericMatrixConstIterator< MATRIXTYPE >::operator== | ( | const CGenericMatrixConstIterator< MATRIXTYPE > & | it | ) | const [inline] |
Definition at line 308 of file matrix_iterators.h.
| bool mrpt::math::detail::CGenericMatrixConstIterator< MATRIXTYPE >::operator> | ( | const CGenericMatrixConstIterator< MATRIXTYPE > & | it2 | ) | const [inline] |
Definition at line 225 of file matrix_iterators.h.
References mrpt::math::detail::CGenericMatrixConstIterator< MATRIXTYPE >::m_cur_col, and mrpt::math::detail::CGenericMatrixConstIterator< MATRIXTYPE >::m_cur_row.
| MATRIXTYPE::const_reference mrpt::math::detail::CGenericMatrixConstIterator< MATRIXTYPE >::operator[] | ( | typename iterator_base::difference_type | off | ) | const [inline] |
Definition at line 303 of file matrix_iterators.h.
size_t mrpt::math::detail::CGenericMatrixConstIterator< MATRIXTYPE >::m_cur_col [private] |
The iterator points to this element.
Definition at line 201 of file matrix_iterators.h.
Referenced by mrpt::math::detail::CGenericMatrixConstIterator< MATRIXTYPE >::check_limits(), mrpt::math::detail::CGenericMatrixConstIterator< MATRIXTYPE >::operator+=(), mrpt::math::detail::CGenericMatrixConstIterator< MATRIXTYPE >::operator--(), mrpt::math::detail::CGenericMatrixConstIterator< MATRIXTYPE >::operator<(), and mrpt::math::detail::CGenericMatrixConstIterator< MATRIXTYPE >::operator>().
size_t mrpt::math::detail::CGenericMatrixConstIterator< MATRIXTYPE >::m_cur_row [private] |
Definition at line 201 of file matrix_iterators.h.
Referenced by mrpt::math::detail::CGenericMatrixConstIterator< MATRIXTYPE >::check_limits(), mrpt::math::detail::CGenericMatrixConstIterator< MATRIXTYPE >::getCol(), mrpt::math::detail::CGenericMatrixConstIterator< MATRIXTYPE >::operator+=(), mrpt::math::detail::CGenericMatrixConstIterator< MATRIXTYPE >::operator--(), mrpt::math::detail::CGenericMatrixConstIterator< MATRIXTYPE >::operator<(), and mrpt::math::detail::CGenericMatrixConstIterator< MATRIXTYPE >::operator>().
const MATRIXTYPE* mrpt::math::detail::CGenericMatrixConstIterator< MATRIXTYPE >::m_matrix [private] |
A reference to the source of this iterator.
Definition at line 200 of file matrix_iterators.h.
Referenced by mrpt::math::detail::CGenericMatrixConstIterator< MATRIXTYPE >::check_limits(), and mrpt::math::detail::CGenericMatrixConstIterator< MATRIXTYPE >::operator--().
| Page generated by Doxygen 1.6.1 for MRPT 0.9.0 SVN: at Mon Jun 7 06:47:58 UTC 2010 |