FST  openfst-1.8.3
OpenFst Library
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 Member Functions

 SymbolTableImpl (std::string_view name)
 
 SymbolTableImpl (const SymbolTableImpl &impl)
 
std::unique_ptr< SymbolTableImplBaseCopy () const override
 
int64_t AddSymbol (std::string_view symbol, int64_t key) override
 
int64_t AddSymbol (std::string_view symbol) override
 
void RemoveSymbol (int64_t key) override
 
bool Write (std::ostream &strm) const override
 
std::string Find (int64_t key) const override
 
int64_t Find (std::string_view symbol) const override
 
int64_t GetNthKey (ssize_t pos) const override
 
const std::string & Name () const override
 
void SetName (std::string_view new_name) override
 
const std::string & CheckSum () const override
 
const std::string & LabeledCheckSum () const override
 
int64_t 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_t key) const
 
virtual bool Member (std::string_view symbol) const
 

Static Public Member Functions

static SymbolTableImplReadText (std::istream &strm, std::string_view name, const std::string &sep=FST_FLAGS_fst_field_separator)
 
static SymbolTableImplRead (std::istream &strm, std::string_view source)
 

Detailed Description

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

Constructor & Destructor Documentation

fst::internal::SymbolTableImpl::SymbolTableImpl ( std::string_view  name)
inlineexplicit

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

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

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

Member Function Documentation

int64_t fst::internal::SymbolTableImpl::AddSymbol ( std::string_view  symbol,
int64_t  key 
)
overridevirtual

Implements fst::internal::SymbolTableImplBase.

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

int64_t fst::internal::SymbolTableImpl::AddSymbol ( std::string_view  symbol)
inlineoverridevirtual

Implements fst::internal::SymbolTableImplBase.

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

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

Implements fst::internal::SymbolTableImplBase.

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

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

Implements fst::internal::SymbolTableImplBase.

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

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

Implements fst::internal::SymbolTableImplBase.

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

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

Implements fst::internal::SymbolTableImplBase.

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

int64_t fst::internal::SymbolTableImpl::Find ( std::string_view  symbol) const
inlineoverridevirtual

Implements fst::internal::SymbolTableImplBase.

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

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

Implements fst::internal::SymbolTableImplBase.

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

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

Implements fst::internal::SymbolTableImplBase.

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

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

Implements fst::internal::SymbolTableImplBase.

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

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

Implements fst::internal::SymbolTableImplBase.

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

SymbolTableImpl * fst::internal::SymbolTableImpl::Read ( std::istream &  strm,
std::string_view  source 
)
static

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

SymbolTableImpl * fst::internal::SymbolTableImpl::ReadText ( std::istream &  strm,
std::string_view  name,
const std::string &  sep = FST_FLAGS_fst_field_separator 
)
static

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

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

Implements fst::internal::SymbolTableImplBase.

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

void fst::internal::SymbolTableImpl::SetName ( std::string_view  new_name)
inlineoverridevirtual

Implements fst::internal::SymbolTableImplBase.

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

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

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

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

Implements fst::internal::SymbolTableImplBase.

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


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