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

#include <MatrixBase.h>

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

List of all members.

Public Types

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

Public Member Functions

 iterator (const MatrixBase &object_, int index_)
 iterator (const iterator &other)
iteratoroperator++ ()
iteratoroperator++ (int)
iteratoroperator-- ()
iteratoroperator-- (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_)
int 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 50 of file MatrixBase.h.


Member Typedef Documentation

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

Definition at line 54 of file MatrixBase.h.

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

Definition at line 56 of file MatrixBase.h.

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

Definition at line 53 of file MatrixBase.h.

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

Definition at line 52 of file MatrixBase.h.

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

Definition at line 55 of file MatrixBase.h.


Constructor & Destructor Documentation

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

Definition at line 64 of file MatrixBase.h.


Member Function Documentation

template<int RTYPE, bool na, typename MATRIX>
bool Rcpp::MatrixBase< RTYPE, na, MATRIX >::iterator::operator!= ( const iterator y) const [inline]
template<int RTYPE, bool na, typename MATRIX>
reference Rcpp::MatrixBase< RTYPE, na, MATRIX >::iterator::operator* ( ) [inline]
template<int RTYPE, bool na, typename MATRIX>
iterator Rcpp::MatrixBase< RTYPE, na, MATRIX >::iterator::operator+ ( difference_type  n) const [inline]
template<int RTYPE, bool na, typename MATRIX>
iterator& Rcpp::MatrixBase< RTYPE, na, MATRIX >::iterator::operator++ ( ) [inline]
template<int RTYPE, bool na, typename MATRIX>
iterator& Rcpp::MatrixBase< RTYPE, na, MATRIX >::iterator::operator++ ( int  ) [inline]
template<int RTYPE, bool na, typename MATRIX>
iterator& Rcpp::MatrixBase< RTYPE, na, MATRIX >::iterator::operator+= ( difference_type  n) [inline]
template<int RTYPE, bool na, typename MATRIX>
difference_type Rcpp::MatrixBase< RTYPE, na, MATRIX >::iterator::operator- ( const iterator other) const [inline]

Definition at line 146 of file MatrixBase.h.

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

Here is the call graph for this function:

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

Definition at line 133 of file MatrixBase.h.

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

Here is the call graph for this function:

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

Definition at line 139 of file MatrixBase.h.

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

Here is the call graph for this function:

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

Definition at line 136 of file MatrixBase.h.

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

Here is the call graph for this function:

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

Definition at line 142 of file MatrixBase.h.

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

Here is the call graph for this function:


Member Data Documentation

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

Definition at line 154 of file MatrixBase.h.

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:
 All Classes Namespaces Files Functions Variables Typedefs Enumerator Friends Defines