FST
openfst-1.8.2
OpenFst Library
|
#include <symbol-table.h>
Classes | |
class | iterator |
Public Types | |
using | const_iterator = iterator |
Public Member Functions | |
SymbolTable (std::string_view name="<unspecified>") | |
virtual | ~SymbolTable () |
virtual SymbolTable * | Copy () const |
void | AddTable (const SymbolTable &table) |
int64_t | AddSymbol (std::string_view symbol, int64_t key) |
int64_t | AddSymbol (std::string_view symbol) |
int64_t | AvailableKey () const |
const std::string & | CheckSum () const |
int64_t | GetNthKey (ssize_t pos) const |
std::string | Find (int64_t key) const |
int64_t | Find (std::string_view symbol) const |
const std::string & | LabeledCheckSum () const |
bool | Member (int64_t key) const |
bool | Member (std::string_view symbol) const |
const std::string & | Name () const |
size_t | NumSymbols () const |
void | RemoveSymbol (int64_t key) |
void | SetName (std::string_view new_name) |
bool | Write (std::ostream &strm) const |
bool | Write (const std::string &source) const |
bool | WriteText (std::ostream &strm, const SymbolTableTextOptions &opts=SymbolTableTextOptions()) const |
bool | WriteText (const std::string &source) const |
const_iterator | begin () const |
const_iterator | end () const |
const_iterator | cbegin () const |
const_iterator | cend () const |
Static Public Member Functions | |
static SymbolTable * | ReadText (std::istream &strm, std::string_view name, const SymbolTableTextOptions &opts=SymbolTableTextOptions()) |
static SymbolTable * | ReadText (const std::string &source, const SymbolTableTextOptions &opts=SymbolTableTextOptions()) |
static SymbolTable * | Read (std::istream &strm, const std::string &source) |
static SymbolTable * | Read (const std::string &source) |
Protected Member Functions | |
SymbolTable (std::shared_ptr< internal::SymbolTableImplBase > impl) | |
template<class T = internal::SymbolTableImplBase> | |
const T * | Impl () const |
template<class T = internal::SymbolTableImplBase> | |
T * | MutableImpl () |
Definition at line 302 of file symbol-table.h.
Definition at line 367 of file symbol-table.h.
|
inlineexplicit |
Definition at line 370 of file symbol-table.h.
|
inlinevirtual |
Definition at line 373 of file symbol-table.h.
|
inlineexplicitprotected |
Definition at line 499 of file symbol-table.h.
|
inline |
Definition at line 421 of file symbol-table.h.
|
inline |
Definition at line 428 of file symbol-table.h.
|
inline |
Definition at line 414 of file symbol-table.h.
|
inline |
Definition at line 435 of file symbol-table.h.
|
inline |
Definition at line 490 of file symbol-table.h.
|
inline |
Definition at line 494 of file symbol-table.h.
|
inline |
Definition at line 496 of file symbol-table.h.
|
inline |
Definition at line 440 of file symbol-table.h.
|
inlinevirtual |
Definition at line 407 of file symbol-table.h.
|
inline |
Definition at line 492 of file symbol-table.h.
|
inline |
Definition at line 446 of file symbol-table.h.
|
inline |
Definition at line 450 of file symbol-table.h.
|
inline |
Definition at line 442 of file symbol-table.h.
|
inlineprotected |
Definition at line 503 of file symbol-table.h.
|
inline |
Definition at line 453 of file symbol-table.h.
|
inline |
Definition at line 457 of file symbol-table.h.
|
inline |
Definition at line 459 of file symbol-table.h.
|
inlineprotected |
Definition at line 508 of file symbol-table.h.
|
inline |
Definition at line 462 of file symbol-table.h.
|
inline |
Definition at line 466 of file symbol-table.h.
|
inlinestatic |
Definition at line 391 of file symbol-table.h.
|
inlinestatic |
Definition at line 397 of file symbol-table.h.
|
inlinestatic |
Definition at line 377 of file symbol-table.h.
|
static |
Definition at line 341 of file symbol-table.cc.
|
inline |
Definition at line 468 of file symbol-table.h.
|
inline |
Definition at line 474 of file symbol-table.h.
|
inline |
Definition at line 479 of file symbol-table.h.
bool fst::SymbolTable::Write | ( | const std::string & | source | ) | const |
Definition at line 351 of file symbol-table.cc.
bool fst::SymbolTable::WriteText | ( | std::ostream & | strm, |
const SymbolTableTextOptions & | opts = SymbolTableTextOptions() |
||
) | const |
Definition at line 369 of file symbol-table.cc.
bool fst::SymbolTable::WriteText | ( | const std::string & | source | ) | const |
Definition at line 389 of file symbol-table.cc.