23#ifndef Rcpp__sugar__Comparator_With_One_Value_h
24#define Rcpp__sugar__Comparator_With_One_Value_h
29template <
int RTYPE,
typename Operator,
bool NA,
typename T>
46 return (this->*
m)(i) ;
49 inline R_xlen_t
size()
const {
return lhs.size() ; }
66template <
int RTYPE,
typename Operator,
typename T>
68 public ::Rcpp::VectorBase< RTYPE, true, Comparator_With_One_Value<LGLSXP,Operator,false,T> > {
85 return (this->*
m)(i) ;
88 inline R_xlen_t
size()
const {
return lhs.size() ; }
int operator[](R_xlen_t i) const
Comparator_With_One_Value(const VEC_TYPE &lhs_, STORAGE rhs_)
int rhs_is_not_na(int i) const
traits::storage_type< RTYPE >::type STORAGE
Rcpp::VectorBase< RTYPE, false, T > VEC_TYPE
int(Comparator_With_One_Value::* METHOD)(int) const
int rhs_is_na(int i) const
Rcpp::VectorBase< RTYPE, NA, T > VEC_TYPE
int rhs_is_not_na(int i) const
int operator[](R_xlen_t i) const
traits::storage_type< RTYPE >::type STORAGE
Comparator_With_One_Value(const VEC_TYPE &lhs_, STORAGE rhs_)
int rhs_is_na(int i) const
int(Comparator_With_One_Value::* METHOD)(int) const
bool is_na(typename storage_type< RTYPE >::type)