Rcpp Version 0.9.10
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 >:

List of all members.

Public Types

typedef Rcpp::VectorBase
< REALSXP, LHS_NA, LHS_T > 
LHS_TYPE

Public Member Functions

 Diff (const LHS_TYPE &lhs_)
double operator[] (int i) const
int size () const

Private Attributes

const LHS_TYPElhs
double previous

Detailed Description

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

Definition at line 67 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 69 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 71 of file diff.h.


Member Function Documentation

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

Reimplemented from Rcpp::VectorBase< REALSXP, LHS_NA, Diff< REALSXP, LHS_NA, LHS_T > >.

Definition at line 79 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 82 of file diff.h.

template<typename LHS_T , bool LHS_NA>
double Rcpp::sugar::Diff< REALSXP, LHS_NA, LHS_T >::previous [mutable, private]

Definition at line 83 of file diff.h.


The documentation for this class was generated from the following file:
 All Classes Namespaces Files Functions Variables Typedefs Enumerator Friends Defines