Rcpp Version 0.12.12
Rcpp::internal::RangeIndexer< RTYPE, NA, VECTOR > Class Template Reference

#include <RangeIndexer.h>

Inheritance diagram for Rcpp::internal::RangeIndexer< RTYPE, NA, VECTOR >:
Collaboration diagram for Rcpp::internal::RangeIndexer< RTYPE, NA, VECTOR >:

Public Types

typedef VECTOR::Proxy Proxy
 
typedef VECTOR::iterator iterator
 
- Public Types inherited from Rcpp::VectorBase< RTYPE, NA, RangeIndexer< RTYPE, NA, VECTOR > >
typedef traits::storage_type< RTYPE >::type stored_type
 
typedef traits::storage_type< RTYPE >::type elem_type
 
typedef iterator const_iterator
 

Public Member Functions

 RangeIndexer (VECTOR &vec_, const Rcpp::Range &range_)
 
template<bool NA_, typename T >
RangeIndexeroperator= (const Rcpp::VectorBase< RTYPE, NA_, T > &x)
 
template<bool NA_, typename T >
RangeIndexeroperator+= (const Rcpp::VectorBase< RTYPE, NA_, T > &x)
 
template<bool NA_, typename T >
RangeIndexeroperator*= (const Rcpp::VectorBase< RTYPE, NA_, T > &x)
 
template<bool NA_, typename T >
RangeIndexeroperator-= (const Rcpp::VectorBase< RTYPE, NA_, T > &x)
 
template<bool NA_, typename T >
RangeIndexeroperator/= (const Rcpp::VectorBase< RTYPE, NA_, T > &x)
 
Proxy operator[] (R_xlen_t i) const
 
R_xlen_t size () const
 
- Public Member Functions inherited from Rcpp::VectorBase< RTYPE, NA, RangeIndexer< RTYPE, NA, VECTOR > >
RangeIndexer< RTYPE, NA, VECTOR > & get_ref ()
 
const RangeIndexer< RTYPE, NA, VECTOR > & get_ref () const
 
stored_type operator[] (R_xlen_t i) const
 
R_xlen_t size () const
 
iterator begin () const
 
iterator end () const
 

Private Attributes

iterator start
 
R_xlen_t size_
 

Detailed Description

template<int RTYPE, bool NA, typename VECTOR>
class Rcpp::internal::RangeIndexer< RTYPE, NA, VECTOR >

Definition at line 53 of file RangeIndexer.h.

Member Typedef Documentation

template<int RTYPE, bool NA, typename VECTOR >
typedef VECTOR::iterator Rcpp::internal::RangeIndexer< RTYPE, NA, VECTOR >::iterator

Definition at line 56 of file RangeIndexer.h.

template<int RTYPE, bool NA, typename VECTOR >
typedef VECTOR::Proxy Rcpp::internal::RangeIndexer< RTYPE, NA, VECTOR >::Proxy

Definition at line 55 of file RangeIndexer.h.

Constructor & Destructor Documentation

template<int RTYPE, bool NA, typename VECTOR >
Rcpp::internal::RangeIndexer< RTYPE, NA, VECTOR >::RangeIndexer ( VECTOR &  vec_,
const Rcpp::Range range_ 
)
inline

Definition at line 58 of file RangeIndexer.h.

Member Function Documentation

template<int RTYPE, bool NA, typename VECTOR >
template<bool NA_, typename T >
RangeIndexer& Rcpp::internal::RangeIndexer< RTYPE, NA, VECTOR >::operator*= ( const Rcpp::VectorBase< RTYPE, NA_, T > &  x)
inline

Definition at line 72 of file RangeIndexer.h.

References UNROLL_LOOP.

template<int RTYPE, bool NA, typename VECTOR >
template<bool NA_, typename T >
RangeIndexer& Rcpp::internal::RangeIndexer< RTYPE, NA, VECTOR >::operator+= ( const Rcpp::VectorBase< RTYPE, NA_, T > &  x)
inline

Definition at line 67 of file RangeIndexer.h.

References UNROLL_LOOP.

template<int RTYPE, bool NA, typename VECTOR >
template<bool NA_, typename T >
RangeIndexer& Rcpp::internal::RangeIndexer< RTYPE, NA, VECTOR >::operator-= ( const Rcpp::VectorBase< RTYPE, NA_, T > &  x)
inline

Definition at line 77 of file RangeIndexer.h.

References UNROLL_LOOP.

template<int RTYPE, bool NA, typename VECTOR >
template<bool NA_, typename T >
RangeIndexer& Rcpp::internal::RangeIndexer< RTYPE, NA, VECTOR >::operator/= ( const Rcpp::VectorBase< RTYPE, NA_, T > &  x)
inline

Definition at line 82 of file RangeIndexer.h.

References UNROLL_LOOP.

template<int RTYPE, bool NA, typename VECTOR >
template<bool NA_, typename T >
RangeIndexer& Rcpp::internal::RangeIndexer< RTYPE, NA, VECTOR >::operator= ( const Rcpp::VectorBase< RTYPE, NA_, T > &  x)
inline

Definition at line 62 of file RangeIndexer.h.

References UNROLL_LOOP.

template<int RTYPE, bool NA, typename VECTOR >
Proxy Rcpp::internal::RangeIndexer< RTYPE, NA, VECTOR >::operator[] ( R_xlen_t  i) const
inline
template<int RTYPE, bool NA, typename VECTOR >
R_xlen_t Rcpp::internal::RangeIndexer< RTYPE, NA, VECTOR >::size ( ) const
inline

Member Data Documentation

template<int RTYPE, bool NA, typename VECTOR >
R_xlen_t Rcpp::internal::RangeIndexer< RTYPE, NA, VECTOR >::size_
private
template<int RTYPE, bool NA, typename VECTOR >
iterator Rcpp::internal::RangeIndexer< RTYPE, NA, VECTOR >::start
private

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