FST  openfst-1.7.2
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 208 of file symbol-table.h.

Constructor & Destructor Documentation

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

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

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

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

Member Function Documentation

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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


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