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

#include <symbol-table.h>

Public Types

using SymbolType = internal::SymbolTableImpl::SymbolType
 

Public Member Functions

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

Static Public Member Functions

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

Detailed Description

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

Member Typedef Documentation

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

Constructor & Destructor Documentation

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

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

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

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

Member Function Documentation

virtual int64 fst::SymbolTable::AddSymbol ( SymbolType  symbol,
int64  key 
)
inlinevirtual

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

virtual int64 fst::SymbolTable::AddSymbol ( SymbolType  symbol)
inlinevirtual

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

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

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

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

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

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

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

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

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

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

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

virtual int64 fst::SymbolTable::Find ( SymbolType  symbol) const
inlinevirtual

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

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

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

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

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

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

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

virtual bool fst::SymbolTable::Member ( SymbolType  symbol) const
inlinevirtual

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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


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