22 #ifndef Rcpp__sugar__clamp_h
23 #define Rcpp__sugar__clamp_h
28 template <
int RTYPE,
bool NA>
60 Clamp_Primitive_Vector_Primitive<RTYPE,NA,T>
71 inline R_xlen_t
size()
const {
return vec.size() ; }
82 template <
int RTYPE,
bool NA,
typename T>
Clamp_Primitive_Vector_Primitive(STORAGE lhs_, const T &vec_, STORAGE rhs_)
Rcpp::traits::storage_type< RTYPE >::type STORAGE
STORAGE operator[](R_xlen_t i) const
clamp_operator< RTYPE, NA > OPERATOR
bool is_na< REALSXP >(double x)
sugar::Clamp_Primitive_Vector_Primitive< RTYPE, NA, T > clamp(typename Rcpp::traits::storage_type< RTYPE >::type lhs, const Rcpp::VectorBase< RTYPE, NA, T > &vec, typename Rcpp::traits::storage_type< RTYPE >::type rhs)
clamp_operator(double lhs_, double rhs_)
double operator()(double x) const
STORAGE operator()(STORAGE x) const
clamp_operator(STORAGE lhs_, STORAGE rhs_)
Rcpp::traits::storage_type< RTYPE >::type STORAGE