Rcpp Version 1.0.9
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
 
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
 
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

◆ STORAGE

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

Definition at line 34 of file SelfHash.h.

◆ VECTOR

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

Definition at line 35 of file SelfHash.h.

Constructor & Destructor Documentation

◆ SelfHash()

Member Function Documentation

◆ add_value_get_index()

◆ fill_and_self_match()

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().

Referenced by Rcpp::self_match().

Here is the call graph for this function:

◆ get_addr() [1/4]

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

Definition at line 98 of file SelfHash.h.

References RCPP_HASH.

◆ get_addr() [2/4]

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

Definition at line 94 of file SelfHash.h.

References RCPP_HASH.

◆ get_addr() [3/4]

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

Definition at line 115 of file SelfHash.h.

References RCPP_HASH.

◆ get_addr() [4/4]

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

◆ get_index()

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

◆ size()

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

◆ data

◆ indices

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

◆ k

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

Definition at line 57 of file SelfHash.h.

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

◆ m

◆ n

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

◆ size_

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

◆ src


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