LookupTable< EnumType, RecordType, Hasher > Class Template Reference

#include <LookupTable.h>

Collaboration diagram for LookupTable< EnumType, RecordType, Hasher >:

Public Types

typedef RecordType Record
 element of the lookup table initialization list More...
 

Public Member Functions

 LookupTable (const EnumType theInvalid, const Record data[])
 
EnumType lookup (const SBuf &key) const
 

Private Types

typedef std::unordered_map
< const SBuf, EnumType, Hasher > 
lookupTable_t
 

Private Attributes

lookupTable_t lookupTable
 
EnumType invalidValue
 

Detailed Description

template<typename EnumType, typename RecordType = LookupTableRecord<EnumType>, typename Hasher = CaseInsensitiveSBufHash>
class LookupTable< EnumType, RecordType, Hasher >

Definition at line 58 of file LookupTable.h.

Member Typedef Documentation

template<typename EnumType, typename RecordType = LookupTableRecord<EnumType>, typename Hasher = CaseInsensitiveSBufHash>
typedef std::unordered_map<const SBuf, EnumType, Hasher> LookupTable< EnumType, RecordType, Hasher >::lookupTable_t
private

Definition at line 80 of file LookupTable.h.

template<typename EnumType, typename RecordType = LookupTableRecord<EnumType>, typename Hasher = CaseInsensitiveSBufHash>
typedef RecordType LookupTable< EnumType, RecordType, Hasher >::Record

Definition at line 62 of file LookupTable.h.

Constructor & Destructor Documentation

template<typename EnumType, typename RecordType = LookupTableRecord<EnumType>, typename Hasher = CaseInsensitiveSBufHash>
LookupTable< EnumType, RecordType, Hasher >::LookupTable ( const EnumType  theInvalid,
const Record  data[] 
)
inline

Member Function Documentation

template<typename EnumType, typename RecordType = LookupTableRecord<EnumType>, typename Hasher = CaseInsensitiveSBufHash>
EnumType LookupTable< EnumType, RecordType, Hasher >::lookup ( const SBuf key) const
inline

Member Data Documentation

template<typename EnumType, typename RecordType = LookupTableRecord<EnumType>, typename Hasher = CaseInsensitiveSBufHash>
EnumType LookupTable< EnumType, RecordType, Hasher >::invalidValue
private

Definition at line 82 of file LookupTable.h.

Referenced by LookupTable< EnumType, RecordType, Hasher >::lookup().

template<typename EnumType, typename RecordType = LookupTableRecord<EnumType>, typename Hasher = CaseInsensitiveSBufHash>
lookupTable_t LookupTable< EnumType, RecordType, Hasher >::lookupTable
private

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

 

Introduction

Documentation

Support

Miscellaneous

Web Site Translations

Mirrors