|
Rcpp Version 1.1.2
|
#include <IndexHash.h>
Public Types | |
| typedef traits::storage_type< RTYPE >::type | STORAGE |
| typedef Vector< RTYPE > | VECTOR |
Public Member Functions | |
| IndexHash (SEXP table) | |
| IndexHash & | fill () |
| LogicalVector | fill_and_get_duplicated () |
| template<typename T> | |
| SEXP | lookup (const T &vec) const |
| SEXP | lookup (const VECTOR &vec) const |
| bool | contains (STORAGE val) const |
| int | size () const |
| Vector< RTYPE > | keys () const |
| template<typename T> | |
| SEXP | lookup__impl (const T &vec, int n_) const |
| SEXP | get_profile_data () |
| STORAGE | normalize (STORAGE val) const |
| bool | not_equal (const STORAGE &lhs, const STORAGE &rhs) |
| bool | add_value (int i) |
| uint32_t | get_index (STORAGE value) const |
| uint32_t | get_addr (STORAGE value) const |
| double | normalize (double val) const |
| uint32_t | get_addr (int value) const |
| uint32_t | get_addr (double val) const |
| uint32_t | get_addr (SEXP value) const |
Public Attributes | |
| int | n |
| int | m |
| int | k |
| STORAGE * | src |
| int | size_ |
| int * | data |
Definition at line 50 of file IndexHash.h.
| typedef traits::storage_type<RTYPE>::type Rcpp::sugar::IndexHash< RTYPE >::STORAGE |
Definition at line 52 of file IndexHash.h.
| typedef Vector<RTYPE> Rcpp::sugar::IndexHash< RTYPE >::VECTOR |
Definition at line 53 of file IndexHash.h.
|
inline |
Definition at line 55 of file IndexHash.h.
References data, dataptr(), get_cache(), k, m, n, RCPP_PROFILE_RECORD, RCPP_PROFILE_TIC, RCPP_PROFILE_TOC, size_, src, and Rcpp::table().
Referenced by add_value(), and fill().

|
inline |
Definition at line 169 of file IndexHash.h.
References data, DEMANGLE, get_addr(), IndexHash(), m, normalize(), not_equal(), RCPP_DEBUG_2, size_, and src.
Referenced by fill(), and fill_and_get_duplicated().

|
inline |
Definition at line 102 of file IndexHash.h.
References get_index().

|
inline |
Definition at line 74 of file IndexHash.h.
References add_value(), fill(), IndexHash(), n, RCPP_PROFILE_RECORD, RCPP_PROFILE_TIC, and RCPP_PROFILE_TOC.
Referenced by fill(), Rcpp::match(), and Rcpp::unique().

|
inline |
Definition at line 85 of file IndexHash.h.
References add_value(), n, and Rcpp::no_init().
Referenced by Rcpp::duplicated().

|
inline |
Definition at line 219 of file IndexHash.h.
References RCPP_HASH.
|
inline |
Definition at line 215 of file IndexHash.h.
References RCPP_HASH.
|
inline |
Definition at line 232 of file IndexHash.h.
References RCPP_HASH.
| uint32_t Rcpp::sugar::IndexHash< RTYPE >::get_addr | ( | STORAGE | value | ) | const |
Referenced by add_value(), and get_index().
|
inline |
Definition at line 190 of file IndexHash.h.
References data, get_addr(), m, and src.
Referenced by contains(), and lookup__impl().

|
inline |
Definition at line 155 of file IndexHash.h.
References Rcpp::wrap().

|
inline |
Definition at line 111 of file IndexHash.h.
References data, Rcpp::no_init(), size_, and src.
Referenced by Rcpp::unique().

|
inline |
Definition at line 93 of file IndexHash.h.
References lookup__impl().
Referenced by lookup__impl(), and Rcpp::match().

|
inline |
Definition at line 98 of file IndexHash.h.
References Rcpp::Vector< RTYPE, StoragePolicy >::begin(), lookup__impl(), and Rcpp::Vector< RTYPE, StoragePolicy >::size().

|
inline |
Definition at line 135 of file IndexHash.h.
References get_index(), lookup(), RCPP_PROFILE_RECORD, RCPP_PROFILE_TIC, and RCPP_PROFILE_TOC.
Referenced by lookup(), and lookup().

|
inline |
Definition at line 206 of file IndexHash.h.
|
inline |
Definition at line 163 of file IndexHash.h.
Referenced by add_value(), and not_equal().
|
inline |
Definition at line 165 of file IndexHash.h.
References normalize().
Referenced by add_value().

|
inline |
Definition at line 106 of file IndexHash.h.
References size_.
| int* Rcpp::sugar::IndexHash< RTYPE >::data |
Definition at line 123 of file IndexHash.h.
Referenced by add_value(), get_index(), IndexHash(), and keys().
| int Rcpp::sugar::IndexHash< RTYPE >::k |
Definition at line 119 of file IndexHash.h.
Referenced by IndexHash().
| int Rcpp::sugar::IndexHash< RTYPE >::m |
Definition at line 119 of file IndexHash.h.
Referenced by add_value(), get_index(), and IndexHash().
| int Rcpp::sugar::IndexHash< RTYPE >::n |
Definition at line 119 of file IndexHash.h.
Referenced by fill(), fill_and_get_duplicated(), and IndexHash().
| int Rcpp::sugar::IndexHash< RTYPE >::size_ |
Definition at line 121 of file IndexHash.h.
Referenced by add_value(), IndexHash(), keys(), and size().
| STORAGE* Rcpp::sugar::IndexHash< RTYPE >::src |
Definition at line 120 of file IndexHash.h.
Referenced by add_value(), get_index(), IndexHash(), and keys().