FST  openfst-1.7.0
OpenFst Library
Public Member Functions | Static Public Member Functions | List of all members
fst::SymbolTable Class Reference

#include <symbol-table.h>

Public Member Functions

 SymbolTable (const string &name="<unspecified>")
 
virtual ~SymbolTable ()
 
virtual SymbolTableCopy () const
 
virtual int64 AddSymbol (const string &symbol, int64 key)
 
virtual int64 AddSymbol (const string &symbol)
 
virtual void AddTable (const SymbolTable &table)
 
virtual int64 AvailableKey () const
 
virtual const string & CheckSum () const
 
virtual int64 GetNthKey (ssize_t pos) const
 
virtual string Find (int64 key) const
 
virtual int64 Find (const string &symbol) const
 
virtual const string & LabeledCheckSum () const
 
virtual bool Member (int64 key) const
 
virtual bool Member (const string &symbol) const
 
virtual const string & Name () const
 
virtual size_t NumSymbols () const
 
virtual void RemoveSymbol (int64 key)
 
virtual void SetName (const string &new_name)
 
virtual bool Write (std::ostream &strm) const
 
virtual bool Write (const string &filename) const
 
virtual bool WriteText (std::ostream &strm, const SymbolTableTextOptions &opts=SymbolTableTextOptions()) const
 
virtual bool WriteText (const string &filename) const
 

Static Public Member Functions

static SymbolTableReadText (std::istream &strm, const string &name, const SymbolTableTextOptions &opts=SymbolTableTextOptions())
 
static SymbolTableReadText (const string &filename, const SymbolTableTextOptions &opts=SymbolTableTextOptions())
 
static SymbolTableRead (std::istream &strm, const SymbolTableReadOptions &opts)
 
static SymbolTableRead (std::istream &strm, const string &source)
 
static SymbolTableRead (const string &filename)
 

Detailed Description

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

Constructor & Destructor Documentation

fst::SymbolTable::SymbolTable ( const string &  name = "<unspecified>")
inlineexplicit

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

virtual fst::SymbolTable::~SymbolTable ( )
inlinevirtual

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

Member Function Documentation

virtual int64 fst::SymbolTable::AddSymbol ( const string &  symbol,
int64  key 
)
inlinevirtual

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

virtual int64 fst::SymbolTable::AddSymbol ( const string &  symbol)
inlinevirtual

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

void fst::SymbolTable::AddTable ( const SymbolTable table)
virtual

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

virtual int64 fst::SymbolTable::AvailableKey ( ) const
inlinevirtual

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

virtual const string& fst::SymbolTable::CheckSum ( ) const
inlinevirtual

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

virtual SymbolTable* fst::SymbolTable::Copy ( ) const
inlinevirtual

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

virtual string fst::SymbolTable::Find ( int64  key) const
inlinevirtual

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

virtual int64 fst::SymbolTable::Find ( const string &  symbol) const
inlinevirtual

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

virtual int64 fst::SymbolTable::GetNthKey ( ssize_t  pos) const
inlinevirtual

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

virtual const string& fst::SymbolTable::LabeledCheckSum ( ) const
inlinevirtual

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

virtual bool fst::SymbolTable::Member ( int64  key) const
inlinevirtual

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

virtual bool fst::SymbolTable::Member ( const string &  symbol) const
inlinevirtual

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

virtual const string& fst::SymbolTable::Name ( ) const
inlinevirtual

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

virtual size_t fst::SymbolTable::NumSymbols ( ) const
inlinevirtual

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

static SymbolTable* fst::SymbolTable::Read ( std::istream &  strm,
const SymbolTableReadOptions opts 
)
inlinestatic

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

static SymbolTable* fst::SymbolTable::Read ( std::istream &  strm,
const string &  source 
)
inlinestatic

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

static SymbolTable* fst::SymbolTable::Read ( const string &  filename)
inlinestatic

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

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

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

static SymbolTable* fst::SymbolTable::ReadText ( const string &  filename,
const SymbolTableTextOptions opts = SymbolTableTextOptions() 
)
inlinestatic

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

virtual void fst::SymbolTable::RemoveSymbol ( int64  key)
inlinevirtual

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

virtual void fst::SymbolTable::SetName ( const string &  new_name)
inlinevirtual

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

virtual bool fst::SymbolTable::Write ( std::ostream &  strm) const
inlinevirtual

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

virtual bool fst::SymbolTable::Write ( const string &  filename) const
inlinevirtual

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

bool fst::SymbolTable::WriteText ( std::ostream &  strm,
const SymbolTableTextOptions opts = SymbolTableTextOptions() 
) const
virtual

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

virtual bool fst::SymbolTable::WriteText ( const string &  filename) const
inlinevirtual

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


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