Rcpp Version 1.0.0
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 iter_base< iter_traits > iterator
 
typedef iter_base< const_iter_traits > 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
 
const_iterator begin () const
 
const_iterator end () const
 
const_iterator cbegin () const
 
const_iterator cend () 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

◆ iterator

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.

◆ Proxy

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

◆ RangeIndexer()

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

◆ operator*=()

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.

◆ operator+=()

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.

◆ operator-=()

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.

◆ operator/=()

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.

◆ operator=()

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.

◆ operator[]()

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

◆ size()

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

Member Data Documentation

◆ size_

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

◆ start

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: