Rcpp Version 0.12.12
Rcpp::sugar::Diff< REALSXP, LHS_NA, LHS_T > Class Template Reference

#include <diff.h>

Inheritance diagram for Rcpp::sugar::Diff< REALSXP, LHS_NA, LHS_T >:
Collaboration diagram for Rcpp::sugar::Diff< REALSXP, LHS_NA, LHS_T >:

Public Types

typedef Rcpp::VectorBase< REALSXP, LHS_NA, LHS_T > LHS_TYPE
 
- Public Types inherited from Rcpp::VectorBase< REALSXP, LHS_NA, Diff< REALSXP, LHS_NA, 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_)
 
double operator[] (R_xlen_t i) const
 
R_xlen_t size () const
 
- Public Member Functions inherited from Rcpp::VectorBase< REALSXP, LHS_NA, Diff< REALSXP, LHS_NA, LHS_T > >
Diff< REALSXP, LHS_NA, LHS_T > & get_ref ()
 
const Diff< REALSXP, LHS_NA, 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
 
double previous
 
R_xlen_t previous_index
 

Detailed Description

template<typename LHS_T, bool LHS_NA>
class Rcpp::sugar::Diff< REALSXP, LHS_NA, LHS_T >

Definition at line 75 of file diff.h.

Member Typedef Documentation

template<typename LHS_T , bool LHS_NA>
typedef Rcpp::VectorBase<REALSXP,LHS_NA,LHS_T> Rcpp::sugar::Diff< REALSXP, LHS_NA, LHS_T >::LHS_TYPE

Definition at line 77 of file diff.h.

Constructor & Destructor Documentation

template<typename LHS_T , bool LHS_NA>
Rcpp::sugar::Diff< REALSXP, LHS_NA, LHS_T >::Diff ( const LHS_TYPE lhs_)
inline

Definition at line 79 of file diff.h.

Member Function Documentation

template<typename LHS_T , bool LHS_NA>
double Rcpp::sugar::Diff< REALSXP, LHS_NA, LHS_T >::operator[] ( R_xlen_t  i) const
inline
template<typename LHS_T , bool LHS_NA>
R_xlen_t Rcpp::sugar::Diff< REALSXP, LHS_NA, LHS_T >::size ( ) const
inline

Definition at line 89 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<typename LHS_T , bool LHS_NA>
const LHS_TYPE& Rcpp::sugar::Diff< REALSXP, LHS_NA, LHS_T >::lhs
private

Definition at line 92 of file diff.h.

template<typename LHS_T , bool LHS_NA>
double Rcpp::sugar::Diff< REALSXP, LHS_NA, LHS_T >::previous
mutableprivate

Definition at line 93 of file diff.h.

template<typename LHS_T , bool LHS_NA>
R_xlen_t Rcpp::sugar::Diff< REALSXP, LHS_NA, LHS_T >::previous_index
mutableprivate

Definition at line 94 of file diff.h.


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