MCPcopy Create free account
hub / github.com/RcppCore/Rcpp / Table

Method Table

inst/include/Rcpp/sugar/functions/table.h:62–68  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

60 typedef typename Rcpp::traits::storage_type<RTYPE>::type STORAGE ;
61
62 Table( const TABLE_T& table ): hash(), map() {
63 // populate the initial hash
64 std::for_each( table.begin(), table.end(), Inserter(hash) ) ;
65
66 // populate the map, sorted by keys
67 map.insert( hash.begin(), hash.end() ) ;
68 }
69
70 inline operator IntegerVector() const {
71 // fill the result

Callers

nothing calls this directly

Calls 3

beginMethod · 0.45
endMethod · 0.45
insertMethod · 0.45

Tested by

no test coverage detected