Rcpp Version 0.10.3
 All Classes Namespaces Files Functions Variables Typedefs Enumerator Friends Macros
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

Public Member Functions

 Diff (const LHS_TYPE &lhs_)
double operator[] (int i) const
int 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
iterator begin () const
iterator end () 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
mutableprivate

Definition at line 83 of file diff.h.


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