Main MRPT website > C++ reference
MRPT logo

mrpt::math::CMatrixRowAccessor< MAT > Class Template Reference

A vector-like wrapper for a Matrix for accessing the elements of a given row with a [] operator. More...

#include <mrpt/math/CMatrixViews.h>

List of all members.

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

DECLARE_MRPT_CONTAINER_TYPES
DECLARE_MRPT_CONTAINER_IS_VECTOR 
CMatrixRowAccessor (MAT &mat, size_t rowIdx)
 CMatrixRowAccessor ()
value_typeoperator[] (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

Detailed Description

template<typename MAT>
class mrpt::math::CMatrixRowAccessor< MAT >

A vector-like wrapper for a Matrix for accessing the elements of a given row with a [] operator.

See also:
CMatrixColumnAccessor,CMatrixRowAccessorExtended,CConstMatrixRowAccessor,CConstMatrixRowAccessorExtended

Definition at line 885 of file CMatrixViews.h.


Member Typedef Documentation

Definition at line 901 of file CMatrixViews.h.

Definition at line 903 of file CMatrixViews.h.

Definition at line 900 of file CMatrixViews.h.

template<typename MAT>
typedef CMatrixRowAccessor<MAT> mrpt::math::CMatrixRowAccessor< MAT >::mrpt_autotype

Definition at line 892 of file CMatrixViews.h.

Definition at line 902 of file CMatrixViews.h.

template<typename MAT>
typedef MAT::value_type mrpt::math::CMatrixRowAccessor< MAT >::value_type

Definition at line 891 of file CMatrixViews.h.


Constructor & Destructor Documentation

template<typename MAT>
DECLARE_MRPT_CONTAINER_TYPES DECLARE_MRPT_CONTAINER_IS_VECTOR mrpt::math::CMatrixRowAccessor< MAT >::CMatrixRowAccessor ( MAT &  mat,
size_t  rowIdx 
) [inline]

Definition at line 896 of file CMatrixViews.h.

References ASSERT_.

template<typename MAT>
mrpt::math::CMatrixRowAccessor< MAT >::CMatrixRowAccessor (  )  [inline]

Definition at line 897 of file CMatrixViews.h.


Member Function Documentation

template<typename MAT>
const_iterator mrpt::math::CMatrixRowAccessor< MAT >::begin (  )  const [inline]

Definition at line 907 of file CMatrixViews.h.

template<typename MAT>
iterator mrpt::math::CMatrixRowAccessor< MAT >::begin (  )  [inline]

Definition at line 904 of file CMatrixViews.h.

template<typename MAT>
const_iterator mrpt::math::CMatrixRowAccessor< MAT >::end (  )  const [inline]

Definition at line 913 of file CMatrixViews.h.

References mrpt::math::CMatrixColumnAccessor< MAT >::m_mat.

template<typename MAT>
iterator mrpt::math::CMatrixRowAccessor< MAT >::end (  )  [inline]

Definition at line 910 of file CMatrixViews.h.

References mrpt::math::CMatrixColumnAccessor< MAT >::m_mat.

template<typename MAT>
value_type mrpt::math::CMatrixRowAccessor< MAT >::operator[] ( const size_t  i  )  const [inline]

Definition at line 899 of file CMatrixViews.h.

References mrpt::math::CMatrixColumnAccessor< MAT >::m_mat.

template<typename MAT>
value_type& mrpt::math::CMatrixRowAccessor< MAT >::operator[] ( const size_t  i  )  [inline]

Definition at line 898 of file CMatrixViews.h.

References mrpt::math::CMatrixColumnAccessor< MAT >::m_mat.

template<typename MAT>
const_reverse_iterator mrpt::math::CMatrixRowAccessor< MAT >::rbegin (  )  const [inline]

Definition at line 919 of file CMatrixViews.h.

References mrpt::math::CMatrixColumnAccessor< MAT >::m_mat.

template<typename MAT>
reverse_iterator mrpt::math::CMatrixRowAccessor< MAT >::rbegin (  )  [inline]

Definition at line 916 of file CMatrixViews.h.

References mrpt::math::CMatrixColumnAccessor< MAT >::m_mat.

template<typename MAT>
const_reverse_iterator mrpt::math::CMatrixRowAccessor< MAT >::rend (  )  const [inline]

Definition at line 925 of file CMatrixViews.h.

template<typename MAT>
reverse_iterator mrpt::math::CMatrixRowAccessor< MAT >::rend (  )  [inline]

Definition at line 922 of file CMatrixViews.h.

template<typename MAT>
void mrpt::math::CMatrixRowAccessor< MAT >::resize ( size_t  N  )  [inline]

Definition at line 931 of file CMatrixViews.h.

References mrpt::math::CMatrixColumnAccessor< MAT >::size().

template<typename MAT>
size_t mrpt::math::CMatrixRowAccessor< MAT >::size (  )  const [inline]

Definition at line 928 of file CMatrixViews.h.

References mrpt::math::CMatrixColumnAccessor< MAT >::m_mat.


Member Data Documentation

template<typename MAT>
MAT* mrpt::math::CMatrixRowAccessor< MAT >::m_mat [protected]

Definition at line 888 of file CMatrixViews.h.

template<typename MAT>
size_t mrpt::math::CMatrixRowAccessor< MAT >::m_rowInd [protected]

Definition at line 889 of file CMatrixViews.h.

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines



Page generated by Doxygen 1.6.1 for MRPT 0.9.0 SVN: at Mon Jun 7 06:47:58 UTC 2010