Rcpp Version 0.9.10
Rcpp::VectorBase< RTYPE, na, VECTOR >::iterator Class Reference

#include <VectorBase.h>

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 VectorBase &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[] (int i)
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 Attributes

const VECTOR & object
int index

Detailed Description

template<int RTYPE, bool na, typename VECTOR>
class Rcpp::VectorBase< RTYPE, na, VECTOR >::iterator

Definition at line 51 of file VectorBase.h.


Member Typedef Documentation

template<int RTYPE, bool na, typename VECTOR>
typedef int Rcpp::VectorBase< RTYPE, na, VECTOR >::iterator::difference_type

Definition at line 55 of file VectorBase.h.

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

Definition at line 57 of file VectorBase.h.

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

Definition at line 54 of file VectorBase.h.

template<int RTYPE, bool na, typename VECTOR>
typedef stored_type Rcpp::VectorBase< RTYPE, na, VECTOR >::iterator::reference

Definition at line 53 of file VectorBase.h.

template<int RTYPE, bool na, typename VECTOR>
typedef stored_type Rcpp::VectorBase< RTYPE, na, VECTOR >::iterator::value_type

Definition at line 56 of file VectorBase.h.


Constructor & Destructor Documentation

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

Definition at line 60 of file VectorBase.h.


Member Function Documentation

template<int RTYPE, bool na, typename VECTOR>
bool Rcpp::VectorBase< RTYPE, na, VECTOR >::iterator::operator!= ( const iterator y) const [inline]
template<int RTYPE, bool na, typename VECTOR>
reference Rcpp::VectorBase< RTYPE, na, VECTOR >::iterator::operator* ( ) [inline]
template<int RTYPE, bool na, typename VECTOR>
iterator Rcpp::VectorBase< RTYPE, na, VECTOR >::iterator::operator+ ( difference_type  n) const [inline]

Definition at line 80 of file VectorBase.h.

References Rcpp::VectorBase< RTYPE, na, VECTOR >::iterator::index, and Rcpp::VectorBase< RTYPE, na, VECTOR >::iterator::iterator().

Here is the call graph for this function:

template<int RTYPE, bool na, typename VECTOR>
iterator& Rcpp::VectorBase< RTYPE, na, VECTOR >::iterator::operator++ ( ) [inline]
template<int RTYPE, bool na, typename VECTOR>
iterator& Rcpp::VectorBase< RTYPE, na, VECTOR >::iterator::operator++ ( int  ) [inline]
template<int RTYPE, bool na, typename VECTOR>
iterator& Rcpp::VectorBase< RTYPE, na, VECTOR >::iterator::operator+= ( difference_type  n) [inline]

Definition at line 87 of file VectorBase.h.

References Rcpp::VectorBase< RTYPE, na, VECTOR >::iterator::index, and n.

template<int RTYPE, bool na, typename VECTOR>
difference_type Rcpp::VectorBase< RTYPE, na, VECTOR >::iterator::operator- ( const iterator other) const [inline]
template<int RTYPE, bool na, typename VECTOR>
iterator Rcpp::VectorBase< RTYPE, na, VECTOR >::iterator::operator- ( difference_type  n) const [inline]

Definition at line 83 of file VectorBase.h.

References Rcpp::VectorBase< RTYPE, na, VECTOR >::iterator::index, and Rcpp::VectorBase< RTYPE, na, VECTOR >::iterator::iterator().

Here is the call graph for this function:

template<int RTYPE, bool na, typename VECTOR>
iterator& Rcpp::VectorBase< RTYPE, na, VECTOR >::iterator::operator-- ( int  ) [inline]
template<int RTYPE, bool na, typename VECTOR>
iterator& Rcpp::VectorBase< RTYPE, na, VECTOR >::iterator::operator-- ( ) [inline]
template<int RTYPE, bool na, typename VECTOR>
iterator& Rcpp::VectorBase< RTYPE, na, VECTOR >::iterator::operator-= ( difference_type  n) [inline]

Definition at line 91 of file VectorBase.h.

References Rcpp::VectorBase< RTYPE, na, VECTOR >::iterator::index, and n.

template<int RTYPE, bool na, typename VECTOR>
pointer Rcpp::VectorBase< RTYPE, na, VECTOR >::iterator::operator-> ( ) [inline]
template<int RTYPE, bool na, typename VECTOR>
bool Rcpp::VectorBase< RTYPE, na, VECTOR >::iterator::operator< ( const iterator other) const [inline]
template<int RTYPE, bool na, typename VECTOR>
bool Rcpp::VectorBase< RTYPE, na, VECTOR >::iterator::operator<= ( const iterator other) const [inline]
template<int RTYPE, bool na, typename VECTOR>
bool Rcpp::VectorBase< RTYPE, na, VECTOR >::iterator::operator== ( const iterator y) const [inline]
template<int RTYPE, bool na, typename VECTOR>
bool Rcpp::VectorBase< RTYPE, na, VECTOR >::iterator::operator> ( const iterator other) const [inline]
template<int RTYPE, bool na, typename VECTOR>
bool Rcpp::VectorBase< RTYPE, na, VECTOR >::iterator::operator>= ( const iterator other) const [inline]
template<int RTYPE, bool na, typename VECTOR>
reference Rcpp::VectorBase< RTYPE, na, VECTOR >::iterator::operator[] ( int  i) [inline]

Definition at line 96 of file VectorBase.h.

References i, and Rcpp::VectorBase< RTYPE, na, VECTOR >::iterator::index.


Member Data Documentation

template<int RTYPE, bool na, typename VECTOR>
const VECTOR& Rcpp::VectorBase< RTYPE, na, VECTOR >::iterator::object [private]

Definition at line 132 of file VectorBase.h.


The documentation for this class was generated from the following file:
 All Classes Namespaces Files Functions Variables Typedefs Enumerator Friends Defines