FST  openfst-1.8.3
OpenFst Library
Public Member Functions | List of all members
fst::internal::ConstSymbolTableImpl Class Reference

#include <symbol-table.h>

Inheritance diagram for fst::internal::ConstSymbolTableImpl:
Inheritance graph
[legend]
Collaboration diagram for fst::internal::ConstSymbolTableImpl:
Collaboration graph
[legend]

Public Member Functions

std::unique_ptr< SymbolTableImplBaseCopy () const final
 
int64_t AddSymbol (std::string_view symbol, int64_t key) final
 
int64_t AddSymbol (std::string_view symbol) final
 
void RemoveSymbol (int64_t key) final
 
void SetName (std::string_view new_name) final
 
void AddTable (const SymbolTable &table) final
 
bool IsMutable () const final
 
- Public Member Functions inherited from fst::internal::SymbolTableImplBase
 SymbolTableImplBase ()=default
 
virtual ~SymbolTableImplBase ()=default
 
 SymbolTableImplBase (const SymbolTableImplBase &)=delete
 
SymbolTableImplBaseoperator= (const SymbolTableImplBase &)=delete
 
virtual bool Write (std::ostream &strm) const =0
 
virtual std::string Find (int64_t key) const =0
 
virtual int64_t Find (std::string_view symbol) const =0
 
virtual bool Member (int64_t key) const
 
virtual bool Member (std::string_view symbol) const
 
virtual int64_t GetNthKey (ssize_t pos) const =0
 
virtual const std::string & Name () const =0
 
virtual const std::string & CheckSum () const =0
 
virtual const std::string & LabeledCheckSum () const =0
 
virtual int64_t AvailableKey () const =0
 
virtual size_t NumSymbols () const =0
 

Detailed Description

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

Member Function Documentation

int64_t fst::internal::ConstSymbolTableImpl::AddSymbol ( std::string_view  symbol,
int64_t  key 
)
finalvirtual

Implements fst::internal::SymbolTableImplBase.

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

int64_t fst::internal::ConstSymbolTableImpl::AddSymbol ( std::string_view  symbol)
finalvirtual

Implements fst::internal::SymbolTableImplBase.

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

void fst::internal::ConstSymbolTableImpl::AddTable ( const SymbolTable table)
finalvirtual

Implements fst::internal::SymbolTableImplBase.

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

std::unique_ptr< SymbolTableImplBase > fst::internal::ConstSymbolTableImpl::Copy ( ) const
finalvirtual

Implements fst::internal::SymbolTableImplBase.

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

bool fst::internal::ConstSymbolTableImpl::IsMutable ( ) const
inlinefinalvirtual

Implements fst::internal::SymbolTableImplBase.

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

void fst::internal::ConstSymbolTableImpl::RemoveSymbol ( int64_t  key)
finalvirtual

Implements fst::internal::SymbolTableImplBase.

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

void fst::internal::ConstSymbolTableImpl::SetName ( std::string_view  new_name)
finalvirtual

Implements fst::internal::SymbolTableImplBase.

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


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