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

#include <compact-fst.h>

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

Public Types

using Arc = A
 
using StateId = typename A::StateId
 
using Compactor = DefaultCompactor< ArcCompactor, Unsigned, CompactStore >
 
using Impl = internal::CompactFstImpl< A, Compactor, CacheStore >
 
using Store = CacheStore
 
- Public Types inherited from fst::ImplToExpandedFst< internal::CompactFstImpl< A, DefaultCompactor< ArcCompactor, Unsigned, CompactStore >, CacheStore > >
using Arc = typename ExpandedFst< typename internal::CompactFstImpl< A, DefaultCompactor< ArcCompactor, Unsigned, CompactStore >, CacheStore >::Arc >::Arc
 
using StateId = typename Arc::StateId
 
using Weight = typename Arc::Weight
 
- Public Types inherited from fst::ImplToFst< internal::CompactFstImpl< A, DefaultCompactor< ArcCompactor, Unsigned, CompactStore >, CacheStore >, ExpandedFst< typename internal::CompactFstImpl< A, DefaultCompactor< ArcCompactor, Unsigned, CompactStore >, CacheStore >::Arc > >
using Arc = typename internal::CompactFstImpl< A, DefaultCompactor< ArcCompactor, Unsigned, CompactStore >, CacheStore >::Arc
 
using StateId = typename Arc::StateId
 
using Weight = typename Arc::Weight
 
- Public Types inherited from fst::ExpandedFst< typename internal::CompactFstImpl< A, DefaultCompactor< ArcCompactor, Unsigned, CompactStore >, CacheStore >::Arc >
using Arc = typename internal::CompactFstImpl< A, DefaultCompactor< ArcCompactor, Unsigned, CompactStore >, 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< A > &fst, const ArcCompactor &compactor=ArcCompactor(), const CompactFstOptions &opts=CompactFstOptions(), std::shared_ptr< CompactStore > data=std::shared_ptr< CompactStore >())
 
 CompactFst (const Fst< Arc > &fst, std::shared_ptr< ArcCompactor > compactor, const CompactFstOptions &opts=CompactFstOptions(), std::shared_ptr< CompactStore > data=std::shared_ptr< CompactStore >())
 
template<class Iterator >
 CompactFst (const Iterator &begin, const Iterator &end, const ArcCompactor &compactor=ArcCompactor(), const CompactFstOptions &opts=CompactFstOptions())
 
template<class Iterator >
 CompactFst (const Iterator &begin, const Iterator &end, std::shared_ptr< ArcCompactor > compactor, const CompactFstOptions &opts=CompactFstOptions())
 
 CompactFst (const CompactFst< A, ArcCompactor, Unsigned, CompactStore, CacheStore > &fst, bool safe=false)
 
CompactFst< A, ArcCompactor, Unsigned, CompactStore, CacheStore > * Copy (bool safe=false) const override
 
bool Write (std::ostream &strm, const FstWriteOptions &opts) const override
 
bool Write (const string &filename) 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
 
template<class Iterator >
void SetCompactElements (const Iterator &b, const Iterator &e)
 
- Public Member Functions inherited from fst::ImplToExpandedFst< internal::CompactFstImpl< A, DefaultCompactor< ArcCompactor, Unsigned, CompactStore >, CacheStore > >
StateId NumStates () const override
 
- Public Member Functions inherited from fst::ImplToFst< internal::CompactFstImpl< A, DefaultCompactor< ArcCompactor, Unsigned, CompactStore >, CacheStore >, ExpandedFst< typename internal::CompactFstImpl< A, DefaultCompactor< ArcCompactor, Unsigned, CompactStore >, 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 string & Type () const override
 
const SymbolTableInputSymbols () const override
 
const SymbolTableOutputSymbols () const override
 
- Public Member Functions inherited from fst::Fst< A >
virtual ~Fst ()
 
virtual void InitArcIterator (StateId s, ArcIteratorData< Arc > *data) const =0
 

Static Public Member Functions

static CompactFst< A, ArcCompactor, Unsigned, CompactStore, CacheStore > * Read (std::istream &strm, const FstReadOptions &opts)
 
static CompactFst< A, ArcCompactor, Unsigned, CompactStore, CacheStore > * Read (const string &filename)
 
template<class FST >
static bool WriteFst (const FST &fst, const ArcCompactor &compactor, std::ostream &strm, const FstWriteOptions &opts)
 
- Static Public Member Functions inherited from fst::ExpandedFst< typename internal::CompactFstImpl< A, DefaultCompactor< ArcCompactor, Unsigned, CompactStore >, CacheStore >::Arc >
static ExpandedFst< Arc > * Read (std::istream &strm, const FstReadOptions &opts)
 
static ExpandedFst< Arc > * Read (const string &filename)
 
- Static Public Member Functions inherited from fst::Fst< A >
static Fst< Arc > * Read (std::istream &strm, const FstReadOptions &opts)
 
static Fst< Arc > * Read (const string &filename)
 

Friends

class StateIterator< CompactFst< A, ArcCompactor, Unsigned, CompactStore, CacheStore > >
 
class ArcIterator< CompactFst< A, ArcCompactor, Unsigned, CompactStore, CacheStore > >
 

Additional Inherited Members

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

Detailed Description

template<class A, class ArcCompactor, class Unsigned, class CompactStore, class CacheStore>
class fst::CompactFst< A, ArcCompactor, Unsigned, CompactStore, CacheStore >

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

Member Typedef Documentation

template<class A, class ArcCompactor, class Unsigned, class CompactStore, class CacheStore>
using fst::CompactFst< A, ArcCompactor, Unsigned, CompactStore, CacheStore >::Arc = A

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

template<class A, class ArcCompactor, class Unsigned, class CompactStore, class CacheStore>
using fst::CompactFst< A, ArcCompactor, Unsigned, CompactStore, CacheStore >::Compactor = DefaultCompactor<ArcCompactor, Unsigned, CompactStore>

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

template<class A, class ArcCompactor, class Unsigned, class CompactStore, class CacheStore>
using fst::CompactFst< A, ArcCompactor, Unsigned, CompactStore, CacheStore >::Impl = internal::CompactFstImpl<A, Compactor, CacheStore>

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

template<class A, class ArcCompactor, class Unsigned, class CompactStore, class CacheStore>
using fst::CompactFst< A, ArcCompactor, Unsigned, CompactStore, CacheStore >::StateId = typename A::StateId

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

template<class A, class ArcCompactor, class Unsigned, class CompactStore, class CacheStore>
using fst::CompactFst< A, ArcCompactor, Unsigned, CompactStore, CacheStore >::Store = CacheStore

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

Constructor & Destructor Documentation

template<class A, class ArcCompactor, class Unsigned, class CompactStore, class CacheStore>
fst::CompactFst< A, ArcCompactor, Unsigned, CompactStore, CacheStore >::CompactFst ( )
inline

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

template<class A, class ArcCompactor, class Unsigned, class CompactStore, class CacheStore>
fst::CompactFst< A, ArcCompactor, Unsigned, CompactStore, CacheStore >::CompactFst ( const Fst< A > &  fst,
const ArcCompactor &  compactor = ArcCompactor(),
const CompactFstOptions opts = CompactFstOptions(),
std::shared_ptr< CompactStore >  data = std::shared_ptr<CompactStore>() 
)
inlineexplicit

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

template<class A, class ArcCompactor, class Unsigned, class CompactStore, class CacheStore>
fst::CompactFst< A, ArcCompactor, Unsigned, CompactStore, CacheStore >::CompactFst ( const Fst< Arc > &  fst,
std::shared_ptr< ArcCompactor >  compactor,
const CompactFstOptions opts = CompactFstOptions(),
std::shared_ptr< CompactStore >  data = std::shared_ptr<CompactStore>() 
)
inline

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

template<class A, class ArcCompactor, class Unsigned, class CompactStore, class CacheStore>
template<class Iterator >
fst::CompactFst< A, ArcCompactor, Unsigned, CompactStore, CacheStore >::CompactFst ( const Iterator &  begin,
const Iterator &  end,
const ArcCompactor &  compactor = ArcCompactor(),
const CompactFstOptions opts = CompactFstOptions() 
)
inlineexplicit

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

template<class A, class ArcCompactor, class Unsigned, class CompactStore, class CacheStore>
template<class Iterator >
fst::CompactFst< A, ArcCompactor, Unsigned, CompactStore, CacheStore >::CompactFst ( const Iterator &  begin,
const Iterator &  end,
std::shared_ptr< ArcCompactor >  compactor,
const CompactFstOptions opts = CompactFstOptions() 
)
inline

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

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

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

Member Function Documentation

template<class A, class ArcCompactor, class Unsigned, class CompactStore, class CacheStore>
template<class F , class G >
void friend fst::CompactFst< A, ArcCompactor, Unsigned, CompactStore, CacheStore >::Cast ( const F &  ,
G *   
)
template<class A, class ArcCompactor, class Unsigned, class CompactStore, class CacheStore>
CompactFst<A, ArcCompactor, Unsigned, CompactStore, CacheStore>* fst::CompactFst< A, ArcCompactor, Unsigned, CompactStore, CacheStore >::Copy ( bool  safe = false) const
inlineoverridevirtual
template<class A, class ArcCompactor, class Unsigned, class CompactStore, class CacheStore>
void fst::CompactFst< A, ArcCompactor, Unsigned, CompactStore, CacheStore >::InitArcIterator ( StateId  s,
ArcIteratorData< Arc > *  data 
) const
inlineoverride

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

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

Reimplemented from fst::Fst< A >.

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

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

Implements fst::Fst< A >.

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

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

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

template<class A, class ArcCompactor, class Unsigned, class CompactStore, class CacheStore>
static CompactFst<A, ArcCompactor, Unsigned, CompactStore, CacheStore>* fst::CompactFst< A, ArcCompactor, Unsigned, CompactStore, CacheStore >::Read ( const string &  filename)
inlinestatic

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

template<class A, class ArcCompactor, class Unsigned, class CompactStore, class CacheStore>
template<class Iterator >
void fst::CompactFst< A, ArcCompactor, Unsigned, CompactStore, CacheStore >::SetCompactElements ( const Iterator &  b,
const Iterator &  e 
)
inline

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

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

Reimplemented from fst::Fst< A >.

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

template<class A, class ArcCompactor, class Unsigned, class CompactStore, class CacheStore>
bool fst::CompactFst< A, ArcCompactor, Unsigned, CompactStore, CacheStore >::Write ( const string &  filename) const
inlineoverridevirtual

Reimplemented from fst::Fst< A >.

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

template<class A , class ArcCompactor , class Unsigned , class CompactStore , class CacheStore >
template<class FST >
bool fst::CompactFst< A, ArcCompactor, Unsigned, CompactStore, CacheStore >::WriteFst ( const FST &  fst,
const ArcCompactor &  compactor,
std::ostream &  strm,
const FstWriteOptions opts 
)
static

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

Friends And Related Function Documentation

template<class A, class ArcCompactor, class Unsigned, class CompactStore, class CacheStore>
friend class ArcIterator< CompactFst< A, ArcCompactor, Unsigned, CompactStore, CacheStore > >
friend

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

template<class A, class ArcCompactor, class Unsigned, class CompactStore, class CacheStore>
friend class StateIterator< CompactFst< A, ArcCompactor, Unsigned, CompactStore, CacheStore > >
friend

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


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