FST  openfst-1.7.5
OpenFst Library
Public Types | Public Member Functions | Static Public Member Functions | List of all members
fst::internal::SymbolTableImpl Class Referencefinal

#include <symbol-table.h>

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

Public Types

using SymbolType = DenseSymbolMap::KeyType
 
- Public Types inherited from fst::internal::SymbolTableImplBase
using SymbolType = DenseSymbolMap::KeyType
 

Public Member Functions

 SymbolTableImpl (const std::string &name)
 
 SymbolTableImpl (const SymbolTableImpl &impl)
 
std::unique_ptr< SymbolTableImplBaseCopy () const override
 
int64 AddSymbol (SymbolType symbol, int64 key) override
 
int64 AddSymbol (SymbolType symbol) override
 
void RemoveSymbol (int64 key) override
 
bool Write (std::ostream &strm) const override
 
std::string Find (int64 key) const override
 
int64 Find (SymbolType symbol) const override
 
int64 GetNthKey (ssize_t pos) const override
 
const std::string & Name () const override
 
void SetName (const std::string &new_name) override
 
const std::string & CheckSum () const override
 
const std::string & LabeledCheckSum () const override
 
int64 AvailableKey () const override
 
size_t NumSymbols () const override
 
void ShrinkToFit ()
 
- Public Member Functions inherited from fst::internal::MutableSymbolTableImpl
void AddTable (const SymbolTable &table) override
 
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 Member (int64 key) const
 
virtual bool Member (SymbolType symbol) const
 

Static Public Member Functions

static SymbolTableImplReadText (std::istream &strm, const std::string &name, const SymbolTableTextOptions &opts=SymbolTableTextOptions())
 
static SymbolTableImplRead (std::istream &strm, const SymbolTableReadOptions &opts)
 

Detailed Description

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

Member Typedef Documentation

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

Constructor & Destructor Documentation

fst::internal::SymbolTableImpl::SymbolTableImpl ( const std::string &  name)
inlineexplicit

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

fst::internal::SymbolTableImpl::SymbolTableImpl ( const SymbolTableImpl impl)
inline

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

Member Function Documentation

int64 fst::internal::SymbolTableImpl::AddSymbol ( SymbolType  symbol,
int64  key 
)
overridevirtual

Implements fst::internal::SymbolTableImplBase.

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

int64 fst::internal::SymbolTableImpl::AddSymbol ( SymbolType  symbol)
inlineoverridevirtual

Implements fst::internal::SymbolTableImplBase.

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

int64 fst::internal::SymbolTableImpl::AvailableKey ( ) const
inlineoverridevirtual

Implements fst::internal::SymbolTableImplBase.

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

const std::string& fst::internal::SymbolTableImpl::CheckSum ( ) const
inlineoverridevirtual

Implements fst::internal::SymbolTableImplBase.

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

std::unique_ptr<SymbolTableImplBase> fst::internal::SymbolTableImpl::Copy ( ) const
inlineoverridevirtual

Implements fst::internal::SymbolTableImplBase.

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

std::string fst::internal::SymbolTableImpl::Find ( int64  key) const
overridevirtual

Implements fst::internal::SymbolTableImplBase.

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

int64 fst::internal::SymbolTableImpl::Find ( SymbolType  symbol) const
inlineoverridevirtual

Implements fst::internal::SymbolTableImplBase.

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

int64 fst::internal::SymbolTableImpl::GetNthKey ( ssize_t  pos) const
inlineoverridevirtual

Implements fst::internal::SymbolTableImplBase.

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

const std::string& fst::internal::SymbolTableImpl::LabeledCheckSum ( ) const
inlineoverridevirtual

Implements fst::internal::SymbolTableImplBase.

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

const std::string& fst::internal::SymbolTableImpl::Name ( ) const
inlineoverridevirtual

Implements fst::internal::SymbolTableImplBase.

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

size_t fst::internal::SymbolTableImpl::NumSymbols ( ) const
inlineoverridevirtual

Implements fst::internal::SymbolTableImplBase.

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

SymbolTableImpl * fst::internal::SymbolTableImpl::Read ( std::istream &  strm,
const SymbolTableReadOptions opts 
)
static

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

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

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

void fst::internal::SymbolTableImpl::RemoveSymbol ( int64  key)
overridevirtual

Implements fst::internal::SymbolTableImplBase.

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

void fst::internal::SymbolTableImpl::SetName ( const std::string &  new_name)
inlineoverridevirtual

Implements fst::internal::SymbolTableImplBase.

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

void fst::internal::SymbolTableImpl::ShrinkToFit ( )

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

bool fst::internal::SymbolTableImpl::Write ( std::ostream &  strm) const
overridevirtual

Implements fst::internal::SymbolTableImplBase.

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


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