Rcpp Version 1.0.9
Rcpp::sugar::Rev< RTYPE, NA, T > Class Template Reference

#include <rev.h>

Inheritance diagram for Rcpp::sugar::Rev< RTYPE, NA, T >:
Collaboration diagram for Rcpp::sugar::Rev< RTYPE, NA, T >:

Public Types

typedef Rcpp::VectorBase< RTYPE, NA, T > VEC_TYPE
 
typedef Rcpp::traits::storage_type< RTYPE >::type STORAGE
 
- Public Types inherited from Rcpp::VectorBase< RTYPE, NA, Rev< RTYPE, NA, T > >
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

 Rev (const VEC_TYPE &object_)
 
STORAGE operator[] (R_xlen_t i) const
 
R_xlen_t size () const
 
- Public Member Functions inherited from Rcpp::VectorBase< RTYPE, NA, Rev< RTYPE, NA, T > >
Rev< RTYPE, NA, T > & get_ref ()
 
const Rev< RTYPE, NA, T > & 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

const VEC_TYPEobject
 
R_xlen_t n
 

Detailed Description

template<int RTYPE, bool NA, typename T>
class Rcpp::sugar::Rev< RTYPE, NA, T >

Definition at line 29 of file rev.h.

Member Typedef Documentation

◆ STORAGE

template<int RTYPE, bool NA, typename T >
typedef Rcpp::traits::storage_type<RTYPE>::type Rcpp::sugar::Rev< RTYPE, NA, T >::STORAGE

Definition at line 32 of file rev.h.

◆ VEC_TYPE

template<int RTYPE, bool NA, typename T >
typedef Rcpp::VectorBase<RTYPE,NA,T> Rcpp::sugar::Rev< RTYPE, NA, T >::VEC_TYPE

Definition at line 31 of file rev.h.

Constructor & Destructor Documentation

◆ Rev()

template<int RTYPE, bool NA, typename T >
Rcpp::sugar::Rev< RTYPE, NA, T >::Rev ( const VEC_TYPE object_)
inline

Definition at line 34 of file rev.h.

Member Function Documentation

◆ operator[]()

template<int RTYPE, bool NA, typename T >
STORAGE Rcpp::sugar::Rev< RTYPE, NA, T >::operator[] ( R_xlen_t  i) const
inline

Definition at line 37 of file rev.h.

References Rcpp::sugar::Rev< RTYPE, NA, T >::n.

◆ size()

template<int RTYPE, bool NA, typename T >
R_xlen_t Rcpp::sugar::Rev< RTYPE, NA, T >::size ( ) const
inline

Definition at line 40 of file rev.h.

References Rcpp::sugar::Rev< RTYPE, NA, T >::n.

Member Data Documentation

◆ n

template<int RTYPE, bool NA, typename T >
R_xlen_t Rcpp::sugar::Rev< RTYPE, NA, T >::n
private

◆ object

template<int RTYPE, bool NA, typename T >
const VEC_TYPE& Rcpp::sugar::Rev< RTYPE, NA, T >::object
private

Definition at line 43 of file rev.h.


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