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

Detailed Description

Definition at line 27 of file Range.h.

Constructor & Destructor Documentation

◆ Range()

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

◆ get_end()

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

Definition at line 83 of file Range.h.

References end_.

◆ get_start()

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

Definition at line 81 of file Range.h.

References start.

◆ operator+()

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:

◆ operator++() [1/2]

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

Definition at line 43 of file Range.h.

References end_, and start.

◆ operator++() [2/2]

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

Definition at line 47 of file Range.h.

◆ operator+=()

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

Definition at line 63 of file Range.h.

References end_, and start.

◆ operator-()

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:

◆ operator--() [1/2]

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

Definition at line 53 of file Range.h.

References end_, and start.

◆ operator--() [2/2]

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

Definition at line 57 of file Range.h.

◆ operator-=()

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

Definition at line 68 of file Range.h.

References end_, and start.

◆ operator[]()

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

Definition at line 39 of file Range.h.

References start.

◆ size()

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

Definition at line 35 of file Range.h.

References end_, and start.

Member Data Documentation

◆ end_

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().

◆ start

R_xlen_t Rcpp::Range::start
private

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