FST  openfst-1.6.1
OpenFst Library
Public Member Functions | Static Public Member Functions | List of all members
fst::internal::SymbolTableImpl Class Reference

#include <symbol-table.h>

Public Member Functions

 SymbolTableImpl (const string &name)
 
 SymbolTableImpl (const SymbolTableImpl &impl)
 
int64 AddSymbol (const string &symbol, int64 key)
 
int64 AddSymbol (const string &symbol)
 
void RemoveSymbol (int64 key)
 
bool Write (std::ostream &strm) const
 
string Find (int64 key) const
 
int64 Find (const string &symbol) const
 
bool Member (int64 key) const
 
bool Member (const string &symbol) const
 
int64 GetNthKey (ssize_t pos) const
 
const string & Name () const
 
void SetName (const string &new_name)
 
string CheckSum () const
 
string LabeledCheckSum () const
 
int64 AvailableKey () const
 
size_t NumSymbols () const
 

Static Public Member Functions

static SymbolTableImplReadText (std::istream &strm, const string &name, const SymbolTableTextOptions &opts=SymbolTableTextOptions())
 
static SymbolTableImplRead (std::istream &strm, const SymbolTableReadOptions &opts)
 

Detailed Description

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

Constructor & Destructor Documentation

fst::internal::SymbolTableImpl::SymbolTableImpl ( const string &  name)
inlineexplicit

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

fst::internal::SymbolTableImpl::SymbolTableImpl ( const SymbolTableImpl impl)
inline

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

Member Function Documentation

int64 fst::internal::SymbolTableImpl::AddSymbol ( const string &  symbol,
int64  key 
)

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

int64 fst::internal::SymbolTableImpl::AddSymbol ( const string &  symbol)
inline

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

int64 fst::internal::SymbolTableImpl::AvailableKey ( ) const
inline

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

string fst::internal::SymbolTableImpl::CheckSum ( ) const
inline

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

string fst::internal::SymbolTableImpl::Find ( int64  key) const
inline

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

int64 fst::internal::SymbolTableImpl::Find ( const string &  symbol) const
inline

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

int64 fst::internal::SymbolTableImpl::GetNthKey ( ssize_t  pos) const
inline

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

string fst::internal::SymbolTableImpl::LabeledCheckSum ( ) const
inline

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

bool fst::internal::SymbolTableImpl::Member ( int64  key) const
inline

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

bool fst::internal::SymbolTableImpl::Member ( const string &  symbol) const
inline

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

const string& fst::internal::SymbolTableImpl::Name ( ) const
inline

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

size_t fst::internal::SymbolTableImpl::NumSymbols ( ) const
inline

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

SymbolTableImpl * fst::internal::SymbolTableImpl::Read ( std::istream &  strm,
const SymbolTableReadOptions opts 
)
static

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

SymbolTableImpl * fst::internal::SymbolTableImpl::ReadText ( std::istream &  strm,
const string &  name,
const SymbolTableTextOptions opts = SymbolTableTextOptions() 
)
static

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

void fst::internal::SymbolTableImpl::RemoveSymbol ( int64  key)

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

void fst::internal::SymbolTableImpl::SetName ( const string &  new_name)
inline

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

bool fst::internal::SymbolTableImpl::Write ( std::ostream &  strm) const

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


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