FST  openfst-1.8.1
OpenFst Library
Public Types | Public Member Functions | Static Public Member Functions | Friends | List of all members
fst::CompactFst< A, C, CacheStore > Class Template Reference

#include <compact-fst.h>

Inheritance diagram for fst::CompactFst< A, C, CacheStore >:
Inheritance graph
[legend]
Collaboration diagram for fst::CompactFst< A, C, CacheStore >:
Collaboration graph
[legend]

Public Types

using Arc = A
 
using StateId = typename Arc::StateId
 
using Compactor = C
 
using Impl = internal::CompactFstImpl< Arc, Compactor, CacheStore >
 
using Store = CacheStore
 
- Public Types inherited from fst::ImplToExpandedFst< internal::CompactFstImpl< A, C, CacheStore > >
using Arc = typename ExpandedFst< typename internal::CompactFstImpl< A, C, CacheStore >::Arc >::Arc
 
using StateId = typename Arc::StateId
 
using Weight = typename Arc::Weight
 
- Public Types inherited from fst::ImplToFst< internal::CompactFstImpl< A, C, CacheStore >, ExpandedFst< typename internal::CompactFstImpl< A, C, CacheStore >::Arc > >
using Arc = typename internal::CompactFstImpl< A, C, CacheStore >::Arc
 
using StateId = typename Arc::StateId
 
using Weight = typename Arc::Weight
 
- Public Types inherited from fst::ExpandedFst< typename internal::CompactFstImpl< A, C, CacheStore >::Arc >
using Arc = typename internal::CompactFstImpl< A, C, CacheStore >::Arc
 
using StateId = typename Arc::StateId
 
- Public Types inherited from fst::Fst< A >
using Arc = A
 
using StateId = typename Arc::StateId
 
using Weight = typename Arc::Weight
 

Public Member Functions

template<class F , class G >
void friend Cast (const F &, G *)
 
 CompactFst ()
 
 CompactFst (const Fst< Arc > &fst, const CompactFstOptions &opts=CompactFstOptions())
 
 CompactFst (const Fst< Arc > &fst, std::shared_ptr< Compactor > compactor, const CompactFstOptions &opts=CompactFstOptions())
 
 CompactFst (const Fst< Arc > &fst, Compactor &&compactor, const CompactFstOptions &opts=CompactFstOptions())
 
 CompactFst (std::shared_ptr< Compactor > compactor, const CompactFstOptions &opts=CompactFstOptions())
 
 CompactFst (const CompactFst &fst, bool safe=false)
 
CompactFstCopy (bool safe=false) const override
 
bool Write (std::ostream &strm, const FstWriteOptions &opts) const override
 
bool Write (const std::string &source) const override
 
void InitStateIterator (StateIteratorData< Arc > *data) const override
 
void InitArcIterator (StateId s, ArcIteratorData< Arc > *data) const override
 
MatcherBase< Arc > * InitMatcher (MatchType match_type) const override
 
const CompactorGetCompactor () const
 
void SetCompactor (std::shared_ptr< Compactor > compactor)
 
- Public Member Functions inherited from fst::ImplToExpandedFst< internal::CompactFstImpl< A, C, CacheStore > >
StateId NumStates () const override
 
- Public Member Functions inherited from fst::ImplToFst< internal::CompactFstImpl< A, C, CacheStore >, ExpandedFst< typename internal::CompactFstImpl< A, C, CacheStore >::Arc > >
StateId Start () const override
 
Weight Final (StateId s) const override
 
size_t NumArcs (StateId s) const override
 
size_t NumInputEpsilons (StateId s) const override
 
size_t NumOutputEpsilons (StateId s) const override
 
uint64 Properties (uint64 mask, bool test) const override
 
const std::string & Type () const override
 
const SymbolTableInputSymbols () const override
 
const SymbolTableOutputSymbols () const override
 
- Public Member Functions inherited from fst::Fst< A >
virtual ~Fst ()
 

Static Public Member Functions

static CompactFstRead (std::istream &strm, const FstReadOptions &opts)
 
static CompactFstRead (const std::string &source)
 
- Static Public Member Functions inherited from fst::ExpandedFst< typename internal::CompactFstImpl< A, C, CacheStore >::Arc >
static ExpandedFstRead (std::istream &strm, const FstReadOptions &opts)
 
static ExpandedFstRead (const std::string &source)
 
- Static Public Member Functions inherited from fst::Fst< A >
static FstRead (std::istream &strm, const FstReadOptions &opts)
 
static FstRead (const std::string &source)
 

Friends

class StateIterator< CompactFst >
 
class ArcIterator< CompactFst >
 

Additional Inherited Members

- Protected Member Functions inherited from fst::ImplToExpandedFst< internal::CompactFstImpl< A, C, CacheStore > >
 ImplToExpandedFst (std::shared_ptr< internal::CompactFstImpl< A, C, CacheStore > > impl)
 
 ImplToExpandedFst (const ImplToExpandedFst &fst, bool safe)
 
- Protected Member Functions inherited from fst::ImplToFst< internal::CompactFstImpl< A, C, CacheStore >, ExpandedFst< typename internal::CompactFstImpl< A, C, CacheStore >::Arc > >
 ImplToFst (std::shared_ptr< internal::CompactFstImpl< A, C, CacheStore > > impl)
 
 ImplToFst (const ImplToFst &fst, bool safe)
 
 ImplToFst ()=delete
 
 ImplToFst (const ImplToFst &fst)
 
 ImplToFst (ImplToFst &&fst) noexcept
 
ImplToFstoperator= (const ImplToFst &fst)
 
ImplToFstoperator= (ImplToFst &&fst) noexcept
 
const internal::CompactFstImpl< A, C, CacheStore > * GetImpl () const
 
internal::CompactFstImpl< A, C, CacheStore > * GetMutableImpl () const
 
std::shared_ptr< internal::CompactFstImpl< A, C, CacheStore > > GetSharedImpl () const
 
bool Unique () const
 
void SetImpl (std::shared_ptr< internal::CompactFstImpl< A, C, CacheStore > > impl)
 
- Protected Member Functions inherited from fst::Fst< A >
bool WriteFile (const std::string &source) const
 
- Static Protected Member Functions inherited from fst::ImplToExpandedFst< internal::CompactFstImpl< A, C, CacheStore > >
static internal::CompactFstImpl< A, C, CacheStore > * Read (std::istream &strm, const FstReadOptions &opts)
 
static internal::CompactFstImpl< A, C, CacheStore > * Read (const std::string &source)
 

Detailed Description

template<class A, class C, class CacheStore>
class fst::CompactFst< A, C, CacheStore >

Definition at line 1107 of file compact-fst.h.

Member Typedef Documentation

template<class A, class C, class CacheStore>
using fst::CompactFst< A, C, CacheStore >::Arc = A

Definition at line 1113 of file compact-fst.h.

template<class A, class C, class CacheStore>
using fst::CompactFst< A, C, CacheStore >::Compactor = C

Definition at line 1115 of file compact-fst.h.

template<class A, class C, class CacheStore>
using fst::CompactFst< A, C, CacheStore >::Impl = internal::CompactFstImpl<Arc, Compactor, CacheStore>

Definition at line 1116 of file compact-fst.h.

template<class A, class C, class CacheStore>
using fst::CompactFst< A, C, CacheStore >::StateId = typename Arc::StateId

Definition at line 1114 of file compact-fst.h.

template<class A, class C, class CacheStore>
using fst::CompactFst< A, C, CacheStore >::Store = CacheStore

Definition at line 1117 of file compact-fst.h.

Constructor & Destructor Documentation

template<class A, class C, class CacheStore>
fst::CompactFst< A, C, CacheStore >::CompactFst ( )
inline

Definition at line 1122 of file compact-fst.h.

template<class A, class C, class CacheStore>
fst::CompactFst< A, C, CacheStore >::CompactFst ( const Fst< Arc > &  fst,
const CompactFstOptions opts = CompactFstOptions() 
)
inlineexplicit

Definition at line 1124 of file compact-fst.h.

template<class A, class C, class CacheStore>
fst::CompactFst< A, C, CacheStore >::CompactFst ( const Fst< Arc > &  fst,
std::shared_ptr< Compactor compactor,
const CompactFstOptions opts = CompactFstOptions() 
)
inline

Definition at line 1132 of file compact-fst.h.

template<class A, class C, class CacheStore>
fst::CompactFst< A, C, CacheStore >::CompactFst ( const Fst< Arc > &  fst,
Compactor &&  compactor,
const CompactFstOptions opts = CompactFstOptions() 
)
inline

Definition at line 1143 of file compact-fst.h.

template<class A, class C, class CacheStore>
fst::CompactFst< A, C, CacheStore >::CompactFst ( std::shared_ptr< Compactor compactor,
const CompactFstOptions opts = CompactFstOptions() 
)
inlineexplicit

Definition at line 1148 of file compact-fst.h.

template<class A, class C, class CacheStore>
fst::CompactFst< A, C, CacheStore >::CompactFst ( const CompactFst< A, C, CacheStore > &  fst,
bool  safe = false 
)
inline

Definition at line 1154 of file compact-fst.h.

Member Function Documentation

template<class A, class C, class CacheStore>
template<class F , class G >
void friend fst::CompactFst< A, C, CacheStore >::Cast ( const F &  ,
G *   
)
template<class A, class C, class CacheStore>
CompactFst* fst::CompactFst< A, C, CacheStore >::Copy ( bool  safe = false) const
inlineoverridevirtual
template<class A, class C, class CacheStore>
const Compactor* fst::CompactFst< A, C, CacheStore >::GetCompactor ( ) const
inline

Definition at line 1195 of file compact-fst.h.

template<class A, class C, class CacheStore>
void fst::CompactFst< A, C, CacheStore >::InitArcIterator ( StateId  s,
ArcIteratorData< Arc > *  data 
) const
inlineoverridevirtual

Implements fst::Fst< A >.

Definition at line 1187 of file compact-fst.h.

template<class A, class C, class CacheStore>
MatcherBase<Arc>* fst::CompactFst< A, C, CacheStore >::InitMatcher ( MatchType  match_type) const
inlineoverridevirtual

Reimplemented from fst::Fst< A >.

Definition at line 1191 of file compact-fst.h.

template<class A, class C, class CacheStore>
void fst::CompactFst< A, C, CacheStore >::InitStateIterator ( StateIteratorData< Arc > *  data) const
inlineoverridevirtual

Implements fst::Fst< A >.

Definition at line 1183 of file compact-fst.h.

template<class A, class C, class CacheStore>
static CompactFst* fst::CompactFst< A, C, CacheStore >::Read ( std::istream &  strm,
const FstReadOptions opts 
)
inlinestatic

Definition at line 1163 of file compact-fst.h.

template<class A, class C, class CacheStore>
static CompactFst* fst::CompactFst< A, C, CacheStore >::Read ( const std::string &  source)
inlinestatic

Definition at line 1170 of file compact-fst.h.

template<class A, class C, class CacheStore>
void fst::CompactFst< A, C, CacheStore >::SetCompactor ( std::shared_ptr< Compactor compactor)
inline

Definition at line 1197 of file compact-fst.h.

template<class A, class C, class CacheStore>
bool fst::CompactFst< A, C, CacheStore >::Write ( std::ostream &  strm,
const FstWriteOptions opts 
) const
inlineoverridevirtual

Reimplemented from fst::Fst< A >.

Definition at line 1175 of file compact-fst.h.

template<class A, class C, class CacheStore>
bool fst::CompactFst< A, C, CacheStore >::Write ( const std::string &  source) const
inlineoverridevirtual

Reimplemented from fst::Fst< A >.

Definition at line 1179 of file compact-fst.h.

Friends And Related Function Documentation

template<class A, class C, class CacheStore>
friend class ArcIterator< CompactFst >
friend

Definition at line 1120 of file compact-fst.h.

template<class A, class C, class CacheStore>
friend class StateIterator< CompactFst >
friend

Definition at line 1119 of file compact-fst.h.


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