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

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.

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.

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.

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

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

Definition at line 93 of file table.h.

References Rcpp::sugar::CountInserter< HASH, STORAGE >::hash.

Member Function Documentation

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::Grabber< HASH, RTYPE >::names, Rcpp::no_init(), and Rcpp::Vector< RTYPE, StoragePolicy >::size().

Here is the call graph for this function:

Member Data Documentation

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

Definition at line 114 of file table.h.

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

Definition at line 117 of file table.h.


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