Rcpp Version 1.0.9
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 RCPP_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 89 of file table.h.

Member Typedef Documentation

◆ HASH

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

Definition at line 112 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 113 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 116 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 91 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

Member Function Documentation

◆ operator IntegerVector()

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

Definition at line 101 of file table.h.

References Rcpp::sugar::Table< RTYPE, TABLE_T >::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 114 of file table.h.

Referenced by Rcpp::sugar::Table< RTYPE, TABLE_T >::Table().

◆ map

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

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