|
Rcpp Version 1.1.2
|
#include <diff.h>


Public Types | |
| typedef Rcpp::VectorBase< RTYPE, LHS_NA, LHS_T > | LHS_TYPE |
| typedef Rcpp::traits::storage_type< RTYPE >::type | STORAGE |
| Public Types inherited from Rcpp::VectorBase< RTYPE, LHS_NA, Diff< RTYPE, 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_) | |
| STORAGE | operator[] (R_xlen_t i) const |
| void | set_previous (R_xlen_t i, STORAGE value) const |
| R_xlen_t | size () const |
| Public Member Functions inherited from Rcpp::VectorBase< RTYPE, LHS_NA, Diff< RTYPE, LHS_NA, LHS_T > > | |
| Diff< RTYPE, LHS_NA, LHS_T > & | get_ref () |
| 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_TYPE & | lhs |
| STORAGE | previous |
| R_xlen_t | previous_index |
| bool | was_na |
| typedef Rcpp::VectorBase<RTYPE,LHS_NA,LHS_T> Rcpp::sugar::Diff< RTYPE, LHS_NA, LHS_T >::LHS_TYPE |
| typedef Rcpp::traits::storage_type<RTYPE>::type Rcpp::sugar::Diff< RTYPE, LHS_NA, LHS_T >::STORAGE |
|
inline |
Definition at line 38 of file diff.h.
References Rcpp::is_na(), lhs, previous, previous_index, and was_na.

|
inline |
Definition at line 45 of file diff.h.
References Rcpp::traits::get_na(), Rcpp::traits::is_na(), lhs, previous, previous_index, RCPP_SAFE_SUB, set_previous(), and was_na.

|
inline |
Definition at line 60 of file diff.h.
References Rcpp::traits::is_na(), previous, previous_index, and was_na.
Referenced by operator[]().

|
inline |
|
private |
Definition at line 69 of file diff.h.
Referenced by Diff(), operator[](), and size().
|
mutableprivate |
Definition at line 70 of file diff.h.
Referenced by Diff(), operator[](), and set_previous().
|
mutableprivate |
Definition at line 71 of file diff.h.
Referenced by Diff(), operator[](), and set_previous().
|
mutableprivate |
Definition at line 72 of file diff.h.
Referenced by Diff(), operator[](), and set_previous().