22 #ifndef RCPP_SUGAR_NONA_NONA_H
23 #define RCPP_SUGAR_NONA_NONA_H
28 template <
int RTYPE,
bool NA,
typename VECTOR>
36 inline R_xlen_t
size()
const {
return data.size() ; }
44 template <
int RTYPE,
bool NA>
53 inline R_xlen_t
size()
const {
return n ; }
65 inline operator T(){
return x ; }
73 template <
int RTYPE,
bool NA,
typename VECTOR>
Nona< RTYPE, NA, VECTOR > & get_ref()
const_iterator begin() const
traits::r_vector_const_iterator< RTYPE, StoragePolicy >::type const_iterator
Rcpp::traits::storage_type< RTYPE >::type STORAGE
Rcpp::Vector< RTYPE >::const_iterator iterator
Nona(const SUGAR_TYPE &expr)
Rcpp::VectorBase< RTYPE, NA, Rcpp::Vector< RTYPE > > SUGAR_TYPE
STORAGE operator[](R_xlen_t i) const
STORAGE operator[](R_xlen_t i) const
Rcpp::traits::storage_type< RTYPE >::type STORAGE
Rcpp::VectorBase< RTYPE, NA, VECTOR > SUGAR_TYPE
Nona(const SUGAR_TYPE &expr)
sugar::Nona< RTYPE, NA, VECTOR > noNA(const Rcpp::VectorBase< RTYPE, NA, VECTOR > &vec)