Rcpp Version 0.12.12
Rcpp::Range Class Reference

#include <Range.h>

Inheritance diagram for Rcpp::Range:
Collaboration diagram for Rcpp::Range:

Public Member Functions

 Range (R_xlen_t start_, R_xlen_t end__)
 
R_xlen_t size () const
 
R_xlen_t operator[] (R_xlen_t i) const
 
Rangeoperator++ ()
 
Range operator++ (int)
 
Rangeoperator-- ()
 
Range operator-- (int)
 
Rangeoperator+= (int n)
 
Rangeoperator-= (int n)
 
Range operator+ (int n)
 
Range operator- (int n)
 
R_xlen_t get_start () const
 
R_xlen_t get_end () const
 
- Public Member Functions inherited from Rcpp::VectorBase< INTSXP, false, Range >
Rangeget_ref ()
 
const Rangeget_ref () const
 
stored_type operator[] (R_xlen_t i) const
 
R_xlen_t size () const
 
iterator begin () const
 
iterator end () const
 

Private Attributes

R_xlen_t start
 
R_xlen_t end_
 

Additional Inherited Members

- Public Types inherited from Rcpp::VectorBase< INTSXP, false, Range >
typedef traits::storage_type< RTYPE >::type stored_type
 
typedef traits::storage_type< RTYPE >::type elem_type
 
typedef iterator const_iterator
 

Detailed Description

Definition at line 27 of file Range.h.

Constructor & Destructor Documentation

Rcpp::Range::Range ( R_xlen_t  start_,
R_xlen_t  end__ 
)
inline

Definition at line 29 of file Range.h.

Referenced by operator+(), and operator-().

Member Function Documentation

R_xlen_t Rcpp::Range::get_end ( ) const
inline

Definition at line 83 of file Range.h.

References end_.

R_xlen_t Rcpp::Range::get_start ( ) const
inline

Definition at line 81 of file Range.h.

References start.

Range Rcpp::Range::operator+ ( int  n)
inline

Definition at line 73 of file Range.h.

References end_, Range(), and start.

Here is the call graph for this function:

Range& Rcpp::Range::operator++ ( )
inline

Definition at line 43 of file Range.h.

References end_, and start.

Range Rcpp::Range::operator++ ( int  )
inline

Definition at line 47 of file Range.h.

Range& Rcpp::Range::operator+= ( int  n)
inline

Definition at line 63 of file Range.h.

References end_, and start.

Range Rcpp::Range::operator- ( int  n)
inline

Definition at line 77 of file Range.h.

References end_, Range(), and start.

Here is the call graph for this function:

Range& Rcpp::Range::operator-- ( )
inline

Definition at line 53 of file Range.h.

References end_, and start.

Range Rcpp::Range::operator-- ( int  )
inline

Definition at line 57 of file Range.h.

Range& Rcpp::Range::operator-= ( int  n)
inline

Definition at line 68 of file Range.h.

References end_, and start.

R_xlen_t Rcpp::Range::operator[] ( R_xlen_t  i) const
inline

Definition at line 39 of file Range.h.

References start.

R_xlen_t Rcpp::Range::size ( ) const
inline

Definition at line 35 of file Range.h.

References end_, and start.

Member Data Documentation

R_xlen_t Rcpp::Range::end_
private

Definition at line 87 of file Range.h.

Referenced by get_end(), operator+(), operator++(), operator+=(), operator-(), operator--(), operator-=(), and size().

R_xlen_t Rcpp::Range::start
private

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