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

#include <table.h>

Public Types

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

Public Member Functions

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

Private Types

typedef std::unordered_map< STORAGE, int > HASH
typedef CountInserter< HASH, STORAGEInserter
typedef std::map< STORAGE, int, internal::NAComparator< STORAGE > > SORTED_MAP

Private Attributes

HASH hash
SORTED_MAP map

Detailed Description

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

Definition at line 58 of file table.h.

Member Typedef Documentation

◆ HASH

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

Definition at line 81 of file table.h.

◆ Inserter

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

Definition at line 82 of file table.h.

◆ SORTED_MAP

template<int RTYPE, typename TABLE_T>
typedef std::map<STORAGE, int, internal::NAComparator<STORAGE> > Rcpp::sugar::Table< RTYPE, TABLE_T >::SORTED_MAP
private

Definition at line 85 of file table.h.

◆ STORAGE

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

Definition at line 60 of file table.h.

Constructor & Destructor Documentation

◆ Table()

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

Definition at line 62 of file table.h.

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

Here is the call graph for this function:

Member Function Documentation

◆ operator IntegerVector()

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

Definition at line 70 of file table.h.

References map, and Rcpp::no_init().

Here is the call graph for this function:

Member Data Documentation

◆ hash

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

Definition at line 83 of file table.h.

Referenced by Table().

◆ map

template<int RTYPE, typename TABLE_T>
SORTED_MAP Rcpp::sugar::Table< RTYPE, TABLE_T >::map
private

Definition at line 86 of file table.h.

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


The documentation for this class was generated from the following file:
  • inst/include/Rcpp/sugar/functions/table.h