| 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 |