Rcpp Version 0.12.12
Rcpp::sugar::Diff< RTYPE, false, LHS_T > Class Template Reference

#include <diff.h>

Inheritance diagram for Rcpp::sugar::Diff< RTYPE, false, LHS_T >:
Collaboration diagram for Rcpp::sugar::Diff< RTYPE, false, LHS_T >:

Public Types

typedef Rcpp::VectorBase< RTYPE, false, LHS_T > LHS_TYPE
 
typedef Rcpp::traits::storage_type< RTYPE >::type STORAGE
 
- Public Types inherited from Rcpp::VectorBase< RTYPE, false, Diff< RTYPE, false, LHS_T > >
typedef traits::storage_type< RTYPE >::type stored_type
 
typedef traits::storage_type< RTYPE >::type elem_type
 
typedef iterator const_iterator
 

Public Member Functions

 Diff (const LHS_TYPE &lhs_)
 
STORAGE operator[] (R_xlen_t i) const
 
R_xlen_t size () const
 
- Public Member Functions inherited from Rcpp::VectorBase< RTYPE, false, Diff< RTYPE, false, LHS_T > >
Diff< RTYPE, false, LHS_T > & get_ref ()
 
const Diff< RTYPE, false, LHS_T > & get_ref () const
 
stored_type operator[] (R_xlen_t i) const
 
R_xlen_t size () const
 
iterator begin () const
 
iterator end () const
 

Private Attributes

const LHS_TYPElhs
 
STORAGE previous
 
R_xlen_t previous_index
 

Detailed Description

template<int RTYPE, typename LHS_T>
class Rcpp::sugar::Diff< RTYPE, false, LHS_T >

Definition at line 98 of file diff.h.

Member Typedef Documentation

template<int RTYPE, typename LHS_T >
typedef Rcpp::VectorBase<RTYPE,false,LHS_T> Rcpp::sugar::Diff< RTYPE, false, LHS_T >::LHS_TYPE

Definition at line 100 of file diff.h.

template<int RTYPE, typename LHS_T >
typedef Rcpp::traits::storage_type<RTYPE>::type Rcpp::sugar::Diff< RTYPE, false, LHS_T >::STORAGE

Definition at line 101 of file diff.h.

Constructor & Destructor Documentation

template<int RTYPE, typename LHS_T >
Rcpp::sugar::Diff< RTYPE, false, LHS_T >::Diff ( const LHS_TYPE lhs_)
inline

Definition at line 103 of file diff.h.

Member Function Documentation

template<int RTYPE, typename LHS_T >
STORAGE Rcpp::sugar::Diff< RTYPE, false, LHS_T >::operator[] ( R_xlen_t  i) const
inline
template<int RTYPE, typename LHS_T >
R_xlen_t Rcpp::sugar::Diff< RTYPE, false, LHS_T >::size ( ) const
inline

Definition at line 113 of file diff.h.

References Rcpp::sugar::Diff< RTYPE, LHS_NA, LHS_T >::lhs, and Rcpp::VectorBase< RTYPE, na, VECTOR >::size().

Here is the call graph for this function:

Member Data Documentation

template<int RTYPE, typename LHS_T >
const LHS_TYPE& Rcpp::sugar::Diff< RTYPE, false, LHS_T >::lhs
private

Definition at line 116 of file diff.h.

template<int RTYPE, typename LHS_T >
STORAGE Rcpp::sugar::Diff< RTYPE, false, LHS_T >::previous
mutableprivate

Definition at line 117 of file diff.h.

template<int RTYPE, typename LHS_T >
R_xlen_t Rcpp::sugar::Diff< RTYPE, false, LHS_T >::previous_index
mutableprivate

Definition at line 118 of file diff.h.


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