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

#include <symbol-table.h>

Public Types

using SymbolType = DenseSymbolMap::KeyType
 

Public Member Functions

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

Static Public Member Functions

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

Detailed Description

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

Member Typedef Documentation

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

Constructor & Destructor Documentation

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

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

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

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

Member Function Documentation

int64 fst::internal::SymbolTableImpl::AddSymbol ( SymbolType  symbol,
int64  key 
)

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

int64 fst::internal::SymbolTableImpl::AddSymbol ( SymbolType  symbol)
inline

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

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

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

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

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

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

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

int64 fst::internal::SymbolTableImpl::Find ( SymbolType  symbol) const
inline

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

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

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

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

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

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

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

bool fst::internal::SymbolTableImpl::Member ( SymbolType  symbol) const
inline

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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


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