Rcpp Version 1.0.9
Rcpp::MatrixBase< RTYPE, na, MATRIX >::iterator Class Reference

#include <MatrixBase.h>

Collaboration diagram for Rcpp::MatrixBase< RTYPE, na, MATRIX >::iterator:

Public Types

typedef stored_type reference
 
typedef stored_typepointer
 
typedef R_xlen_t difference_type
 
typedef stored_type value_type
 
typedef std::random_access_iterator_tag iterator_category
 

Public Member Functions

 iterator (const MatrixBase &object_, R_xlen_t index_)
 
 iterator (const iterator &other)
 
iteratoroperator++ ()
 
iterator operator++ (int)
 
iteratoroperator-- ()
 
iterator operator-- (int)
 
iterator operator+ (difference_type n) const
 
iterator operator- (difference_type n) const
 
iteratoroperator+= (difference_type n)
 
iteratoroperator-= (difference_type n)
 
reference operator* ()
 
pointer operator-> ()
 
bool operator== (const iterator &y) const
 
bool operator!= (const iterator &y) const
 
bool operator< (const iterator &other) const
 
bool operator> (const iterator &other) const
 
bool operator<= (const iterator &other) const
 
bool operator>= (const iterator &other) const
 
difference_type operator- (const iterator &other) const
 

Private Member Functions

void update_index (int index_)
 
R_xlen_t index () const
 

Private Attributes

const MatrixBaseobject
 
int i
 
int j
 
int nr
 
int nc
 

Detailed Description

template<int RTYPE, bool na, typename MATRIX>
class Rcpp::MatrixBase< RTYPE, na, MATRIX >::iterator

Definition at line 83 of file MatrixBase.h.

Member Typedef Documentation

◆ difference_type

template<int RTYPE, bool na, typename MATRIX >
typedef R_xlen_t Rcpp::MatrixBase< RTYPE, na, MATRIX >::iterator::difference_type

Definition at line 87 of file MatrixBase.h.

◆ iterator_category

template<int RTYPE, bool na, typename MATRIX >
typedef std::random_access_iterator_tag Rcpp::MatrixBase< RTYPE, na, MATRIX >::iterator::iterator_category

Definition at line 89 of file MatrixBase.h.

◆ pointer

template<int RTYPE, bool na, typename MATRIX >
typedef stored_type* Rcpp::MatrixBase< RTYPE, na, MATRIX >::iterator::pointer

Definition at line 86 of file MatrixBase.h.

◆ reference

template<int RTYPE, bool na, typename MATRIX >
typedef stored_type Rcpp::MatrixBase< RTYPE, na, MATRIX >::iterator::reference

Definition at line 85 of file MatrixBase.h.

◆ value_type

template<int RTYPE, bool na, typename MATRIX >
typedef stored_type Rcpp::MatrixBase< RTYPE, na, MATRIX >::iterator::value_type

Definition at line 88 of file MatrixBase.h.

Constructor & Destructor Documentation

◆ iterator() [1/2]

template<int RTYPE, bool na, typename MATRIX >
Rcpp::MatrixBase< RTYPE, na, MATRIX >::iterator::iterator ( const MatrixBase object_,
R_xlen_t  index_ 
)
inline

◆ iterator() [2/2]

template<int RTYPE, bool na, typename MATRIX >
Rcpp::MatrixBase< RTYPE, na, MATRIX >::iterator::iterator ( const iterator other)
inline

Definition at line 97 of file MatrixBase.h.

Member Function Documentation

◆ index()

◆ operator!=()

template<int RTYPE, bool na, typename MATRIX >
bool Rcpp::MatrixBase< RTYPE, na, MATRIX >::iterator::operator!= ( const iterator y) const
inline

◆ operator*()

template<int RTYPE, bool na, typename MATRIX >
reference Rcpp::MatrixBase< RTYPE, na, MATRIX >::iterator::operator* ( )
inline

◆ operator+()

template<int RTYPE, bool na, typename MATRIX >
iterator Rcpp::MatrixBase< RTYPE, na, MATRIX >::iterator::operator+ ( difference_type  n) const
inline

◆ operator++() [1/2]

template<int RTYPE, bool na, typename MATRIX >
iterator& Rcpp::MatrixBase< RTYPE, na, MATRIX >::iterator::operator++ ( )
inline

◆ operator++() [2/2]

template<int RTYPE, bool na, typename MATRIX >
iterator Rcpp::MatrixBase< RTYPE, na, MATRIX >::iterator::operator++ ( int  )
inline

Definition at line 108 of file MatrixBase.h.

◆ operator+=()

template<int RTYPE, bool na, typename MATRIX >
iterator& Rcpp::MatrixBase< RTYPE, na, MATRIX >::iterator::operator+= ( difference_type  n)
inline

◆ operator-() [1/2]

template<int RTYPE, bool na, typename MATRIX >
difference_type Rcpp::MatrixBase< RTYPE, na, MATRIX >::iterator::operator- ( const iterator other) const
inline

Definition at line 170 of file MatrixBase.h.

References Rcpp::MatrixBase< RTYPE, na, MATRIX >::iterator::index().

Here is the call graph for this function:

◆ operator-() [2/2]

template<int RTYPE, bool na, typename MATRIX >
iterator Rcpp::MatrixBase< RTYPE, na, MATRIX >::iterator::operator- ( difference_type  n) const
inline

◆ operator--() [1/2]

template<int RTYPE, bool na, typename MATRIX >
iterator& Rcpp::MatrixBase< RTYPE, na, MATRIX >::iterator::operator-- ( )
inline

◆ operator--() [2/2]

template<int RTYPE, bool na, typename MATRIX >
iterator Rcpp::MatrixBase< RTYPE, na, MATRIX >::iterator::operator-- ( int  )
inline

Definition at line 122 of file MatrixBase.h.

◆ operator-=()

template<int RTYPE, bool na, typename MATRIX >
iterator& Rcpp::MatrixBase< RTYPE, na, MATRIX >::iterator::operator-= ( difference_type  n)
inline

◆ operator->()

template<int RTYPE, bool na, typename MATRIX >
pointer Rcpp::MatrixBase< RTYPE, na, MATRIX >::iterator::operator-> ( )
inline

◆ operator<()

template<int RTYPE, bool na, typename MATRIX >
bool Rcpp::MatrixBase< RTYPE, na, MATRIX >::iterator::operator< ( const iterator other) const
inline

Definition at line 157 of file MatrixBase.h.

References Rcpp::MatrixBase< RTYPE, na, MATRIX >::iterator::index().

Here is the call graph for this function:

◆ operator<=()

template<int RTYPE, bool na, typename MATRIX >
bool Rcpp::MatrixBase< RTYPE, na, MATRIX >::iterator::operator<= ( const iterator other) const
inline

Definition at line 163 of file MatrixBase.h.

References Rcpp::MatrixBase< RTYPE, na, MATRIX >::iterator::index().

Here is the call graph for this function:

◆ operator==()

template<int RTYPE, bool na, typename MATRIX >
bool Rcpp::MatrixBase< RTYPE, na, MATRIX >::iterator::operator== ( const iterator y) const
inline

◆ operator>()

template<int RTYPE, bool na, typename MATRIX >
bool Rcpp::MatrixBase< RTYPE, na, MATRIX >::iterator::operator> ( const iterator other) const
inline

Definition at line 160 of file MatrixBase.h.

References Rcpp::MatrixBase< RTYPE, na, MATRIX >::iterator::index().

Here is the call graph for this function:

◆ operator>=()

template<int RTYPE, bool na, typename MATRIX >
bool Rcpp::MatrixBase< RTYPE, na, MATRIX >::iterator::operator>= ( const iterator other) const
inline

Definition at line 166 of file MatrixBase.h.

References Rcpp::MatrixBase< RTYPE, na, MATRIX >::iterator::index().

Here is the call graph for this function:

◆ update_index()

Member Data Documentation

◆ i

◆ j

◆ nc

template<int RTYPE, bool na, typename MATRIX >
int Rcpp::MatrixBase< RTYPE, na, MATRIX >::iterator::nc
private

Definition at line 178 of file MatrixBase.h.

◆ nr

◆ object

template<int RTYPE, bool na, typename MATRIX >
const MatrixBase& Rcpp::MatrixBase< RTYPE, na, MATRIX >::iterator::object
private

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