Rcpp Version 0.12.12
Rcpp::sugar::SelfHash< RTYPE > Class Template Reference

#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
 
int add_value_get_index (int i)
 
unsigned int get_index (STORAGE value) const
 
unsigned int get_addr (STORAGE value) const
 
template<>
unsigned int get_addr (int value) const
 
template<>
unsigned int get_addr (double val) const
 
template<>
unsigned int get_addr (SEXP value) const
 

Public Attributes

int n
 
int m
 
int k
 
STORAGEsrc
 
std::vector< int > data
 
std::vector< int > indices
 
int size_
 

Detailed Description

template<int RTYPE>
class Rcpp::sugar::SelfHash< RTYPE >

Definition at line 32 of file SelfHash.h.

Member Typedef Documentation

template<int RTYPE>
typedef traits::storage_type<RTYPE>::type Rcpp::sugar::SelfHash< RTYPE >::STORAGE

Definition at line 34 of file SelfHash.h.

template<int RTYPE>
typedef Vector<RTYPE> Rcpp::sugar::SelfHash< RTYPE >::VECTOR

Definition at line 35 of file SelfHash.h.

Constructor & Destructor Documentation

Member Function Documentation

template<int RTYPE>
int Rcpp::sugar::SelfHash< RTYPE >::add_value_get_index ( int  i)
inline

Definition at line 63 of file SelfHash.h.

References Rcpp::sugar::SelfHash< RTYPE >::get_addr(), and Rcpp::sugar::SelfHash< RTYPE >::size_.

Referenced by Rcpp::sugar::SelfHash< RTYPE >::fill_and_self_match().

Here is the call graph for this function:

template<int RTYPE>
IntegerVector Rcpp::sugar::SelfHash< RTYPE >::fill_and_self_match ( )
inline

Definition at line 46 of file SelfHash.h.

References Rcpp::sugar::SelfHash< RTYPE >::add_value_get_index(), Rcpp::sugar::SelfHash< RTYPE >::n, and Rcpp::no_init().

Here is the call graph for this function:

template<int RTYPE>
unsigned int Rcpp::sugar::SelfHash< RTYPE >::get_addr ( STORAGE  value) const
template<>
unsigned int Rcpp::sugar::SelfHash< INTSXP >::get_addr ( int  value) const
inline

Definition at line 94 of file SelfHash.h.

References RCPP_HASH.

template<>
unsigned int Rcpp::sugar::SelfHash< REALSXP >::get_addr ( double  val) const
inline

Definition at line 98 of file SelfHash.h.

References RCPP_HASH.

template<>
unsigned int Rcpp::sugar::SelfHash< STRSXP >::get_addr ( SEXP  value) const
inline

Definition at line 115 of file SelfHash.h.

References RCPP_HASH.

template<int RTYPE>
unsigned int Rcpp::sugar::SelfHash< RTYPE >::get_index ( STORAGE  value) const
inline

Definition at line 78 of file SelfHash.h.

References Rcpp::sugar::SelfHash< RTYPE >::get_addr().

Here is the call graph for this function:

template<int RTYPE>
int Rcpp::sugar::SelfHash< RTYPE >::size ( ) const
inline

Definition at line 53 of file SelfHash.h.

References Rcpp::sugar::SelfHash< RTYPE >::size_.

Member Data Documentation

template<int RTYPE>
std::vector<int> Rcpp::sugar::SelfHash< RTYPE >::data

Definition at line 59 of file SelfHash.h.

Referenced by Rcpp::sugar::SelfHash< RTYPE >::SelfHash().

template<int RTYPE>
std::vector<int> Rcpp::sugar::SelfHash< RTYPE >::indices

Definition at line 60 of file SelfHash.h.

Referenced by Rcpp::sugar::SelfHash< RTYPE >::SelfHash().

template<int RTYPE>
int Rcpp::sugar::SelfHash< RTYPE >::k

Definition at line 57 of file SelfHash.h.

Referenced by Rcpp::sugar::SelfHash< RTYPE >::SelfHash().

template<int RTYPE>
int Rcpp::sugar::SelfHash< RTYPE >::m

Definition at line 57 of file SelfHash.h.

Referenced by Rcpp::sugar::SelfHash< RTYPE >::SelfHash().

template<int RTYPE>
int Rcpp::sugar::SelfHash< RTYPE >::n
template<int RTYPE>
int Rcpp::sugar::SelfHash< RTYPE >::size_
template<int RTYPE>
STORAGE* Rcpp::sugar::SelfHash< RTYPE >::src

Definition at line 58 of file SelfHash.h.


The documentation for this class was generated from the following file: