NDDEM
Public Types | Public Member Functions | Protected Attributes | Private Types | Friends | List of all members
Eigen::internal::pointer_based_stl_iterator< XprType > Class Template Reference

#include <StlIterators.h>

Public Types

typedef Index difference_type
 
typedef XprType::Scalar value_type
 
typedef std::random_access_iterator_tag iterator_category
 
typedef internal::conditional< bool(is_lvalue), value_type *, const value_type * >::type pointer
 
typedef internal::conditional< bool(is_lvalue), value_type &, const value_type & >::type reference
 

Public Member Functions

 pointer_based_stl_iterator () EIGEN_NO_THROW
 
 pointer_based_stl_iterator (XprType &xpr, Index index) EIGEN_NO_THROW
 
 pointer_based_stl_iterator (const non_const_iterator &other) EIGEN_NO_THROW
 
pointer_based_stl_iteratoroperator= (const non_const_iterator &other) EIGEN_NO_THROW
 
reference operator* () const
 
reference operator[] (Index i) const
 
pointer operator-> () const
 
pointer_based_stl_iteratoroperator++ ()
 
pointer_based_stl_iteratoroperator-- ()
 
pointer_based_stl_iterator operator++ (int)
 
pointer_based_stl_iterator operator-- (int)
 
pointer_based_stl_iteratoroperator+= (Index b)
 
pointer_based_stl_iteratoroperator-= (Index b)
 
difference_type operator- (const pointer_based_stl_iterator &other) const
 
difference_type operator- (const other_iterator &other) const
 
bool operator== (const pointer_based_stl_iterator &other) const
 
bool operator!= (const pointer_based_stl_iterator &other) const
 
bool operator< (const pointer_based_stl_iterator &other) const
 
bool operator<= (const pointer_based_stl_iterator &other) const
 
bool operator> (const pointer_based_stl_iterator &other) const
 
bool operator>= (const pointer_based_stl_iterator &other) const
 
bool operator== (const other_iterator &other) const
 
bool operator!= (const other_iterator &other) const
 
bool operator< (const other_iterator &other) const
 
bool operator<= (const other_iterator &other) const
 
bool operator> (const other_iterator &other) const
 
bool operator>= (const other_iterator &other) const
 

Protected Attributes

pointer m_ptr
 
internal::variable_if_dynamic< Index, XprType::InnerStrideAtCompileTime > m_incr
 

Private Types

enum  { is_lvalue = internal::is_lvalue<XprType>::value }
 
typedef pointer_based_stl_iterator< typename internal::remove_const< XprType >::type > non_const_iterator
 
typedef pointer_based_stl_iterator< typename internal::add_const< XprType >::type > const_iterator
 
typedef internal::conditional< internal::is_const< XprType >::value, non_const_iterator, const_iterator >::type other_iterator
 

Friends

class pointer_based_stl_iterator< typename internal::add_const< XprType >::type >
 
class pointer_based_stl_iterator< typename internal::remove_const< XprType >::type >
 
pointer_based_stl_iterator operator+ (const pointer_based_stl_iterator &a, Index b)
 
pointer_based_stl_iterator operator- (const pointer_based_stl_iterator &a, Index b)
 
pointer_based_stl_iterator operator+ (Index a, const pointer_based_stl_iterator &b)
 
pointer_based_stl_iterator operator- (Index a, const pointer_based_stl_iterator &b)
 

Member Typedef Documentation

◆ const_iterator

template<typename XprType >
typedef pointer_based_stl_iterator<typename internal::add_const<XprType>::type> Eigen::internal::pointer_based_stl_iterator< XprType >::const_iterator
private

◆ difference_type

template<typename XprType >
typedef Index Eigen::internal::pointer_based_stl_iterator< XprType >::difference_type

◆ iterator_category

template<typename XprType >
typedef std::random_access_iterator_tag Eigen::internal::pointer_based_stl_iterator< XprType >::iterator_category

◆ non_const_iterator

template<typename XprType >
typedef pointer_based_stl_iterator<typename internal::remove_const<XprType>::type> Eigen::internal::pointer_based_stl_iterator< XprType >::non_const_iterator
private

◆ other_iterator

template<typename XprType >
typedef internal::conditional<internal::is_const<XprType>::value,non_const_iterator,const_iterator>::type Eigen::internal::pointer_based_stl_iterator< XprType >::other_iterator
private

◆ pointer

template<typename XprType >
typedef internal::conditional<bool(is_lvalue), value_type*, const value_type*>::type Eigen::internal::pointer_based_stl_iterator< XprType >::pointer

◆ reference

template<typename XprType >
typedef internal::conditional<bool(is_lvalue), value_type&, const value_type&>::type Eigen::internal::pointer_based_stl_iterator< XprType >::reference

◆ value_type

template<typename XprType >
typedef XprType::Scalar Eigen::internal::pointer_based_stl_iterator< XprType >::value_type

Member Enumeration Documentation

◆ anonymous enum

template<typename XprType >
anonymous enum
private
Enumerator
is_lvalue 

Constructor & Destructor Documentation

◆ pointer_based_stl_iterator() [1/3]

template<typename XprType >
Eigen::internal::pointer_based_stl_iterator< XprType >::pointer_based_stl_iterator ( )
inline

◆ pointer_based_stl_iterator() [2/3]

template<typename XprType >
Eigen::internal::pointer_based_stl_iterator< XprType >::pointer_based_stl_iterator ( XprType &  xpr,
Index  index 
)
inline

◆ pointer_based_stl_iterator() [3/3]

template<typename XprType >
Eigen::internal::pointer_based_stl_iterator< XprType >::pointer_based_stl_iterator ( const non_const_iterator other)
inline

Member Function Documentation

◆ operator!=() [1/2]

template<typename XprType >
bool Eigen::internal::pointer_based_stl_iterator< XprType >::operator!= ( const other_iterator other) const
inline

◆ operator!=() [2/2]

template<typename XprType >
bool Eigen::internal::pointer_based_stl_iterator< XprType >::operator!= ( const pointer_based_stl_iterator< XprType > &  other) const
inline

◆ operator*()

template<typename XprType >
reference Eigen::internal::pointer_based_stl_iterator< XprType >::operator* ( ) const
inline

◆ operator++() [1/2]

template<typename XprType >
pointer_based_stl_iterator& Eigen::internal::pointer_based_stl_iterator< XprType >::operator++ ( )
inline

◆ operator++() [2/2]

template<typename XprType >
pointer_based_stl_iterator Eigen::internal::pointer_based_stl_iterator< XprType >::operator++ ( int  )
inline

◆ operator+=()

template<typename XprType >
pointer_based_stl_iterator& Eigen::internal::pointer_based_stl_iterator< XprType >::operator+= ( Index  b)
inline

◆ operator-() [1/2]

template<typename XprType >
difference_type Eigen::internal::pointer_based_stl_iterator< XprType >::operator- ( const other_iterator other) const
inline

◆ operator-() [2/2]

template<typename XprType >
difference_type Eigen::internal::pointer_based_stl_iterator< XprType >::operator- ( const pointer_based_stl_iterator< XprType > &  other) const
inline

◆ operator--() [1/2]

template<typename XprType >
pointer_based_stl_iterator& Eigen::internal::pointer_based_stl_iterator< XprType >::operator-- ( )
inline

◆ operator--() [2/2]

template<typename XprType >
pointer_based_stl_iterator Eigen::internal::pointer_based_stl_iterator< XprType >::operator-- ( int  )
inline

◆ operator-=()

template<typename XprType >
pointer_based_stl_iterator& Eigen::internal::pointer_based_stl_iterator< XprType >::operator-= ( Index  b)
inline

◆ operator->()

template<typename XprType >
pointer Eigen::internal::pointer_based_stl_iterator< XprType >::operator-> ( ) const
inline

◆ operator<() [1/2]

template<typename XprType >
bool Eigen::internal::pointer_based_stl_iterator< XprType >::operator< ( const other_iterator other) const
inline

◆ operator<() [2/2]

template<typename XprType >
bool Eigen::internal::pointer_based_stl_iterator< XprType >::operator< ( const pointer_based_stl_iterator< XprType > &  other) const
inline

◆ operator<=() [1/2]

template<typename XprType >
bool Eigen::internal::pointer_based_stl_iterator< XprType >::operator<= ( const other_iterator other) const
inline

◆ operator<=() [2/2]

template<typename XprType >
bool Eigen::internal::pointer_based_stl_iterator< XprType >::operator<= ( const pointer_based_stl_iterator< XprType > &  other) const
inline

◆ operator=()

template<typename XprType >
pointer_based_stl_iterator& Eigen::internal::pointer_based_stl_iterator< XprType >::operator= ( const non_const_iterator other)
inline

◆ operator==() [1/2]

template<typename XprType >
bool Eigen::internal::pointer_based_stl_iterator< XprType >::operator== ( const other_iterator other) const
inline

◆ operator==() [2/2]

template<typename XprType >
bool Eigen::internal::pointer_based_stl_iterator< XprType >::operator== ( const pointer_based_stl_iterator< XprType > &  other) const
inline

◆ operator>() [1/2]

template<typename XprType >
bool Eigen::internal::pointer_based_stl_iterator< XprType >::operator> ( const other_iterator other) const
inline

◆ operator>() [2/2]

template<typename XprType >
bool Eigen::internal::pointer_based_stl_iterator< XprType >::operator> ( const pointer_based_stl_iterator< XprType > &  other) const
inline

◆ operator>=() [1/2]

template<typename XprType >
bool Eigen::internal::pointer_based_stl_iterator< XprType >::operator>= ( const other_iterator other) const
inline

◆ operator>=() [2/2]

template<typename XprType >
bool Eigen::internal::pointer_based_stl_iterator< XprType >::operator>= ( const pointer_based_stl_iterator< XprType > &  other) const
inline

◆ operator[]()

template<typename XprType >
reference Eigen::internal::pointer_based_stl_iterator< XprType >::operator[] ( Index  i) const
inline

Friends And Related Function Documentation

◆ operator+ [1/2]

template<typename XprType >
pointer_based_stl_iterator operator+ ( const pointer_based_stl_iterator< XprType > &  a,
Index  b 
)
friend

◆ operator+ [2/2]

template<typename XprType >
pointer_based_stl_iterator operator+ ( Index  a,
const pointer_based_stl_iterator< XprType > &  b 
)
friend

◆ operator- [1/2]

template<typename XprType >
pointer_based_stl_iterator operator- ( const pointer_based_stl_iterator< XprType > &  a,
Index  b 
)
friend

◆ operator- [2/2]

template<typename XprType >
pointer_based_stl_iterator operator- ( Index  a,
const pointer_based_stl_iterator< XprType > &  b 
)
friend

◆ pointer_based_stl_iterator< typename internal::add_const< XprType >::type >

template<typename XprType >
friend class pointer_based_stl_iterator< typename internal::add_const< XprType >::type >
friend

◆ pointer_based_stl_iterator< typename internal::remove_const< XprType >::type >

template<typename XprType >
friend class pointer_based_stl_iterator< typename internal::remove_const< XprType >::type >
friend

Member Data Documentation

◆ m_incr

template<typename XprType >
internal::variable_if_dynamic<Index, XprType::InnerStrideAtCompileTime> Eigen::internal::pointer_based_stl_iterator< XprType >::m_incr
protected

◆ m_ptr

template<typename XprType >
pointer Eigen::internal::pointer_based_stl_iterator< XprType >::m_ptr
protected

The documentation for this class was generated from the following file: