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

◆ LHS_TYPE

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

◆ Diff()

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

◆ operator[]()

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

◆ size()

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

◆ lhs

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.

◆ previous

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.

◆ previous_index

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: