|
Rcpp Version 1.1.2
|
#include <SelfHash.h>
Public Types | |
| typedef traits::storage_type< RTYPE >::type | STORAGE |
| typedef Vector< RTYPE > | VECTOR |
Public Member Functions | |
| SelfHash (SEXP table) | |
| IntegerVector | fill_and_self_match () |
| int | size () const |
| STORAGE | normalize (STORAGE val) const |
| bool | not_equal (const STORAGE &lhs, const STORAGE &rhs) |
| int | add_value_get_index (int i) |
| unsigned int | get_index (STORAGE value) const |
| unsigned int | get_addr (STORAGE value) const |
| double | normalize (double val) const |
| unsigned int | get_addr (int value) const |
| unsigned int | get_addr (double val) const |
| unsigned int | get_addr (SEXP value) const |
Public Attributes | |
| int | n |
| int | m |
| int | k |
| STORAGE * | src |
| std::vector< int > | data |
| std::vector< int > | indices |
| int | size_ |
Definition at line 33 of file SelfHash.h.
| typedef traits::storage_type<RTYPE>::type Rcpp::sugar::SelfHash< RTYPE >::STORAGE |
Definition at line 35 of file SelfHash.h.
| typedef Vector<RTYPE> Rcpp::sugar::SelfHash< RTYPE >::VECTOR |
Definition at line 36 of file SelfHash.h.
|
inline |
|
inline |
Definition at line 70 of file SelfHash.h.
References data, get_addr(), indices, m, normalize(), not_equal(), size_, and src.
Referenced by fill_and_self_match().

|
inline |
Definition at line 47 of file SelfHash.h.
References add_value_get_index(), n, and Rcpp::no_init().
Referenced by Rcpp::self_match().

|
inline |
Definition at line 114 of file SelfHash.h.
References RCPP_HASH.
|
inline |
Definition at line 110 of file SelfHash.h.
References RCPP_HASH.
|
inline |
Definition at line 127 of file SelfHash.h.
References RCPP_HASH.
| unsigned int Rcpp::sugar::SelfHash< RTYPE >::get_addr | ( | STORAGE | value | ) | const |
Referenced by add_value_get_index(), and get_index().
|
inline |
Definition at line 85 of file SelfHash.h.
References data, get_addr(), m, and src.

|
inline |
Definition at line 101 of file SelfHash.h.
|
inline |
Definition at line 64 of file SelfHash.h.
Referenced by add_value_get_index(), and not_equal().
|
inline |
Definition at line 66 of file SelfHash.h.
References normalize().
Referenced by add_value_get_index().

|
inline |
Definition at line 54 of file SelfHash.h.
References size_.
| std::vector<int> Rcpp::sugar::SelfHash< RTYPE >::data |
Definition at line 60 of file SelfHash.h.
Referenced by add_value_get_index(), get_index(), and SelfHash().
| std::vector<int> Rcpp::sugar::SelfHash< RTYPE >::indices |
Definition at line 61 of file SelfHash.h.
Referenced by add_value_get_index(), and SelfHash().
| int Rcpp::sugar::SelfHash< RTYPE >::k |
Definition at line 58 of file SelfHash.h.
Referenced by SelfHash().
| int Rcpp::sugar::SelfHash< RTYPE >::m |
Definition at line 58 of file SelfHash.h.
Referenced by add_value_get_index(), get_index(), and SelfHash().
| int Rcpp::sugar::SelfHash< RTYPE >::n |
Definition at line 58 of file SelfHash.h.
Referenced by fill_and_self_match(), and SelfHash().
| int Rcpp::sugar::SelfHash< RTYPE >::size_ |
Definition at line 62 of file SelfHash.h.
Referenced by add_value_get_index(), SelfHash(), and size().
| STORAGE* Rcpp::sugar::SelfHash< RTYPE >::src |
Definition at line 59 of file SelfHash.h.
Referenced by add_value_get_index(), get_index(), and SelfHash().