FST  openfst-1.7.5
OpenFst Library
Public Types | Public Member Functions | List of all members
fst::internal::DenseSymbolMap Class Reference

#include <symbol-table.h>

Public Types

using KeyType = const std::string &
 

Public Member Functions

 DenseSymbolMap ()
 
std::pair< int64, bool > InsertOrFind (KeyType key)
 
int64 Find (KeyType key) const
 
size_t Size () const
 
const std::string & GetSymbol (size_t idx) const
 
void RemoveSymbol (size_t idx)
 
void ShrinkToFit ()
 

Detailed Description

Definition at line 78 of file symbol-table.h.

Member Typedef Documentation

using fst::internal::DenseSymbolMap::KeyType = const std::string &

Definition at line 85 of file symbol-table.h.

Constructor & Destructor Documentation

fst::internal::DenseSymbolMap::DenseSymbolMap ( )

Definition at line 36 of file symbol-table.cc.

Member Function Documentation

int64 fst::internal::DenseSymbolMap::Find ( KeyType  key) const

Definition at line 58 of file symbol-table.cc.

const std::string& fst::internal::DenseSymbolMap::GetSymbol ( size_t  idx) const
inline

Definition at line 96 of file symbol-table.h.

std::pair< int64, bool > fst::internal::DenseSymbolMap::InsertOrFind ( KeyType  key)

Definition at line 41 of file symbol-table.cc.

void fst::internal::DenseSymbolMap::RemoveSymbol ( size_t  idx)

Definition at line 81 of file symbol-table.cc.

void fst::internal::DenseSymbolMap::ShrinkToFit ( )

Definition at line 86 of file symbol-table.cc.

size_t fst::internal::DenseSymbolMap::Size ( ) const
inline

Definition at line 94 of file symbol-table.h.


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