| 35 | typedef typename Rcpp::traits::storage_type<RTYPE>::type STORAGE ; |
| 36 | |
| 37 | Diff( const LHS_TYPE& lhs_ ) : |
| 38 | lhs(lhs_), |
| 39 | previous(lhs_[0]), |
| 40 | previous_index(0), |
| 41 | was_na(traits::is_na<RTYPE>(previous)) |
| 42 | {} |
| 43 | |
| 44 | inline STORAGE operator[]( R_xlen_t i ) const { |
| 45 | STORAGE y = lhs[i+1] ; |
nothing calls this directly
no outgoing calls
no test coverage detected