Rcpp Version 1.1.2
Loading...
Searching...
No Matches
Rcpp::sugar::SelfMatch< RTYPE, TABLE_T > Class Template Reference

#include <self_match.h>

Collaboration diagram for Rcpp::sugar::SelfMatch< RTYPE, TABLE_T >:

Public Types

typedef Rcpp::traits::storage_type< RTYPE >::type STORAGE

Public Member Functions

 SelfMatch (const TABLE_T &table)
 operator IntegerVector () const

Private Types

typedef std::unordered_map< STORAGE, int > HASH
typedef SelfInserter< HASH, STORAGEInserter

Private Attributes

HASH hash
IntegerVector result

Detailed Description

template<int RTYPE, typename TABLE_T>
class Rcpp::sugar::SelfMatch< RTYPE, TABLE_T >

Definition at line 50 of file self_match.h.

Member Typedef Documentation

◆ HASH

template<int RTYPE, typename TABLE_T>
typedef std::unordered_map<STORAGE, int> Rcpp::sugar::SelfMatch< RTYPE, TABLE_T >::HASH
private

Definition at line 61 of file self_match.h.

◆ Inserter

template<int RTYPE, typename TABLE_T>
typedef SelfInserter<HASH,STORAGE> Rcpp::sugar::SelfMatch< RTYPE, TABLE_T >::Inserter
private

Definition at line 62 of file self_match.h.

◆ STORAGE

template<int RTYPE, typename TABLE_T>
typedef Rcpp::traits::storage_type<RTYPE>::type Rcpp::sugar::SelfMatch< RTYPE, TABLE_T >::STORAGE

Definition at line 52 of file self_match.h.

Constructor & Destructor Documentation

◆ SelfMatch()

template<int RTYPE, typename TABLE_T>
Rcpp::sugar::SelfMatch< RTYPE, TABLE_T >::SelfMatch ( const TABLE_T & table)
inline

Definition at line 54 of file self_match.h.

References hash, result, and Rcpp::table().

Here is the call graph for this function:

Member Function Documentation

◆ operator IntegerVector()

template<int RTYPE, typename TABLE_T>
Rcpp::sugar::SelfMatch< RTYPE, TABLE_T >::operator IntegerVector ( ) const
inline

Definition at line 58 of file self_match.h.

References result.

Member Data Documentation

◆ hash

template<int RTYPE, typename TABLE_T>
HASH Rcpp::sugar::SelfMatch< RTYPE, TABLE_T >::hash
private

Definition at line 63 of file self_match.h.

Referenced by SelfMatch().

◆ result

template<int RTYPE, typename TABLE_T>
IntegerVector Rcpp::sugar::SelfMatch< RTYPE, TABLE_T >::result
private

Definition at line 64 of file self_match.h.

Referenced by operator IntegerVector(), and SelfMatch().


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