22#ifndef Rcpp__sugar__table_h
23#define Rcpp__sugar__table_h
28template <
typename HASH,
typename STORAGE>
41template <
typename HASH,
int RTYPE>
62template <
int RTYPE,
typename TABLE_T>
88template <
int RTYPE,
typename TABLE_T>
116 typedef std::map<STORAGE, int, internal::NAComparator<STORAGE> >
SORTED_MAP ;
125template <
int RTYPE,
bool NA,
typename T>
void operator()(STORAGE value)
CountInserter(HASH &hash_)
Grabber(IntegerVector &res_, CharacterVector &names_)
RCPP_UNORDERED_MAP< STORAGE, int > HASH
std::map< STORAGE, int, internal::NAComparator< STORAGE > > SORTED_MAP
Table(const TABLE_T &table)
Rcpp::traits::storage_type< RTYPE >::type STORAGE
CountInserter< HASH, STORAGE > Inserter
T as(SEXP x, ::Rcpp::traits::r_type_primitive_tag)
no_init_vector no_init(R_xlen_t size)
Vector< INTSXP > IntegerVector
IntegerVector table(const VectorBase< RTYPE, NA, T > &x)