FST  openfst-1.8.3
OpenFst Library
Public Types | Public Member Functions | Static Public Member Functions | Protected Member Functions | List of all members
fst::GenericRegister< KeyType, EntryType, RegisterType > Class Template Referenceabstract

#include <generic-register.h>

Public Types

using Key = KeyType
 
using KeyLookupRef = typename internal::KeyLookupReferenceType< KeyType >::type
 
using Entry = EntryType
 

Public Member Functions

void SetEntry (const KeyType &key, const EntryType &entry)
 
EntryType GetEntry (KeyLookupRef key) const
 
virtual ~GenericRegister ()=default
 

Static Public Member Functions

static RegisterType * GetRegister ()
 

Protected Member Functions

virtual EntryType LoadEntryFromSharedObject (KeyLookupRef key) const
 
virtual std::string ConvertKeyToSoFilename (KeyLookupRef key) const =0
 
virtual const EntryType * LookupEntry (KeyLookupRef key) const
 

Detailed Description

template<class KeyType, class EntryType, class RegisterType>
class fst::GenericRegister< KeyType, EntryType, RegisterType >

Definition at line 62 of file generic-register.h.

Member Typedef Documentation

template<class KeyType, class EntryType, class RegisterType>
using fst::GenericRegister< KeyType, EntryType, RegisterType >::Entry = EntryType

Definition at line 66 of file generic-register.h.

template<class KeyType, class EntryType, class RegisterType>
using fst::GenericRegister< KeyType, EntryType, RegisterType >::Key = KeyType

Definition at line 64 of file generic-register.h.

template<class KeyType, class EntryType, class RegisterType>
using fst::GenericRegister< KeyType, EntryType, RegisterType >::KeyLookupRef = typename internal::KeyLookupReferenceType<KeyType>::type

Definition at line 65 of file generic-register.h.

Constructor & Destructor Documentation

template<class KeyType, class EntryType, class RegisterType>
virtual fst::GenericRegister< KeyType, EntryType, RegisterType >::~GenericRegister ( )
virtualdefault

Member Function Documentation

template<class KeyType, class EntryType, class RegisterType>
virtual std::string fst::GenericRegister< KeyType, EntryType, RegisterType >::ConvertKeyToSoFilename ( KeyLookupRef  key) const
protectedpure virtual
template<class KeyType, class EntryType, class RegisterType>
EntryType fst::GenericRegister< KeyType, EntryType, RegisterType >::GetEntry ( KeyLookupRef  key) const
inline

Definition at line 78 of file generic-register.h.

template<class KeyType, class EntryType, class RegisterType>
static RegisterType* fst::GenericRegister< KeyType, EntryType, RegisterType >::GetRegister ( )
inlinestatic

Definition at line 68 of file generic-register.h.

template<class KeyType, class EntryType, class RegisterType>
virtual EntryType fst::GenericRegister< KeyType, EntryType, RegisterType >::LoadEntryFromSharedObject ( KeyLookupRef  key) const
inlineprotectedvirtual

Definition at line 92 of file generic-register.h.

template<class KeyType, class EntryType, class RegisterType>
virtual const EntryType* fst::GenericRegister< KeyType, EntryType, RegisterType >::LookupEntry ( KeyLookupRef  key) const
inlineprotectedvirtual

Definition at line 121 of file generic-register.h.

template<class KeyType, class EntryType, class RegisterType>
void fst::GenericRegister< KeyType, EntryType, RegisterType >::SetEntry ( const KeyType &  key,
const EntryType &  entry 
)
inline

Definition at line 73 of file generic-register.h.


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