FST  openfst-1.7.0
OpenFst Library
Public Types | Public Member Functions | Static Public Member Functions | Public Attributes | List of all members
fst::DefaultCompactor< C, U, S > Class Template Reference

#include <compact-fst.h>

Public Types

using ArcCompactor = C
 
using Unsigned = U
 
using CompactStore = S
 
using Element = typename C::Element
 
using Arc = typename C::Arc
 
using StateId = typename Arc::StateId
 
using Weight = typename Arc::Weight
 
using State = DefaultCompactState< C, U, S >
 

Public Member Functions

 DefaultCompactor ()
 
 DefaultCompactor (const Fst< Arc > &fst, std::shared_ptr< ArcCompactor > arc_compactor)
 
 DefaultCompactor (const Fst< Arc > &fst, std::shared_ptr< DefaultCompactor< C, U, S >> compactor)
 
 DefaultCompactor (std::shared_ptr< ArcCompactor > arc_compactor, std::shared_ptr< CompactStore > compact_store)
 
template<class Iterator >
 DefaultCompactor (const Iterator &b, const Iterator &e, std::shared_ptr< C > arc_compactor)
 
 DefaultCompactor (const DefaultCompactor< C, U, S > &compactor)
 
template<class OtherC >
 DefaultCompactor (const DefaultCompactor< OtherC, U, S > &compactor)
 
StateId Start () const
 
StateId NumStates () const
 
size_t NumArcs () const
 
void SetState (StateId s, State *state) const
 
bool Write (std::ostream &strm, const FstWriteOptions &opts) const
 
uint64 Properties () const
 
bool IsCompatible (const Fst< Arc > &fst) const
 
bool Error () const
 
bool HasFixedOutdegree () const
 
const ArcCompactorGetArcCompactor () const
 
CompactStoreGetCompactStore () const
 
std::shared_ptr< ArcCompactorSharedArcCompactor () const
 
std::shared_ptr< CompactStoreSharedCompactStore () const
 
Arc ComputeArc (StateId s, Unsigned i, uint32 f) const
 

Static Public Member Functions

static DefaultCompactor< C, U, S > * Read (std::istream &strm, const FstReadOptions &opts, const FstHeader &hdr)
 
static const string & Type ()
 

Public Attributes

friend State
 

Detailed Description

template<class C, class U, class S = DefaultCompactStore<typename C::Element, U>>
class fst::DefaultCompactor< C, U, S >

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

Member Typedef Documentation

template<class C, class U, class S = DefaultCompactStore<typename C::Element, U>>
using fst::DefaultCompactor< C, U, S >::Arc = typename C::Arc

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

template<class C, class U, class S = DefaultCompactStore<typename C::Element, U>>
using fst::DefaultCompactor< C, U, S >::ArcCompactor = C

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

template<class C, class U, class S = DefaultCompactStore<typename C::Element, U>>
using fst::DefaultCompactor< C, U, S >::CompactStore = S

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

template<class C, class U, class S = DefaultCompactStore<typename C::Element, U>>
using fst::DefaultCompactor< C, U, S >::Element = typename C::Element

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

template<class C, class U, class S = DefaultCompactStore<typename C::Element, U>>
using fst::DefaultCompactor< C, U, S >::State = DefaultCompactState<C, U, S>

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

template<class C, class U, class S = DefaultCompactStore<typename C::Element, U>>
using fst::DefaultCompactor< C, U, S >::StateId = typename Arc::StateId

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

template<class C, class U, class S = DefaultCompactStore<typename C::Element, U>>
using fst::DefaultCompactor< C, U, S >::Unsigned = U

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

template<class C, class U, class S = DefaultCompactStore<typename C::Element, U>>
using fst::DefaultCompactor< C, U, S >::Weight = typename Arc::Weight

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

Constructor & Destructor Documentation

template<class C, class U, class S = DefaultCompactStore<typename C::Element, U>>
fst::DefaultCompactor< C, U, S >::DefaultCompactor ( )
inline

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

template<class C, class U, class S = DefaultCompactStore<typename C::Element, U>>
fst::DefaultCompactor< C, U, S >::DefaultCompactor ( const Fst< Arc > &  fst,
std::shared_ptr< ArcCompactor arc_compactor 
)
inline

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

template<class C, class U, class S = DefaultCompactStore<typename C::Element, U>>
fst::DefaultCompactor< C, U, S >::DefaultCompactor ( const Fst< Arc > &  fst,
std::shared_ptr< DefaultCompactor< C, U, S >>  compactor 
)
inline

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

template<class C, class U, class S = DefaultCompactStore<typename C::Element, U>>
fst::DefaultCompactor< C, U, S >::DefaultCompactor ( std::shared_ptr< ArcCompactor arc_compactor,
std::shared_ptr< CompactStore compact_store 
)
inline

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

template<class C, class U, class S = DefaultCompactStore<typename C::Element, U>>
template<class Iterator >
fst::DefaultCompactor< C, U, S >::DefaultCompactor ( const Iterator &  b,
const Iterator &  e,
std::shared_ptr< C >  arc_compactor 
)
inline

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

template<class C, class U, class S = DefaultCompactStore<typename C::Element, U>>
fst::DefaultCompactor< C, U, S >::DefaultCompactor ( const DefaultCompactor< C, U, S > &  compactor)
inline

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

template<class C, class U, class S = DefaultCompactStore<typename C::Element, U>>
template<class OtherC >
fst::DefaultCompactor< C, U, S >::DefaultCompactor ( const DefaultCompactor< OtherC, U, S > &  compactor)
inlineexplicit

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

Member Function Documentation

template<class C, class U, class S = DefaultCompactStore<typename C::Element, U>>
Arc fst::DefaultCompactor< C, U, S >::ComputeArc ( StateId  s,
Unsigned  i,
uint32  f 
) const
inline

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

template<class C, class U, class S = DefaultCompactStore<typename C::Element, U>>
bool fst::DefaultCompactor< C, U, S >::Error ( ) const
inline

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

template<class C, class U, class S = DefaultCompactStore<typename C::Element, U>>
const ArcCompactor* fst::DefaultCompactor< C, U, S >::GetArcCompactor ( ) const
inline

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

template<class C, class U, class S = DefaultCompactStore<typename C::Element, U>>
CompactStore* fst::DefaultCompactor< C, U, S >::GetCompactStore ( ) const
inline

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

template<class C, class U, class S = DefaultCompactStore<typename C::Element, U>>
bool fst::DefaultCompactor< C, U, S >::HasFixedOutdegree ( ) const
inline

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

template<class C, class U, class S = DefaultCompactStore<typename C::Element, U>>
bool fst::DefaultCompactor< C, U, S >::IsCompatible ( const Fst< Arc > &  fst) const
inline

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

template<class C, class U, class S = DefaultCompactStore<typename C::Element, U>>
size_t fst::DefaultCompactor< C, U, S >::NumArcs ( ) const
inline

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

template<class C, class U, class S = DefaultCompactStore<typename C::Element, U>>
StateId fst::DefaultCompactor< C, U, S >::NumStates ( ) const
inline

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

template<class C, class U, class S = DefaultCompactStore<typename C::Element, U>>
uint64 fst::DefaultCompactor< C, U, S >::Properties ( ) const
inline

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

template<class C, class U, class S = DefaultCompactStore<typename C::Element, U>>
static DefaultCompactor<C, U, S>* fst::DefaultCompactor< C, U, S >::Read ( std::istream &  strm,
const FstReadOptions opts,
const FstHeader hdr 
)
inlinestatic

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

template<class C, class U, class S = DefaultCompactStore<typename C::Element, U>>
void fst::DefaultCompactor< C, U, S >::SetState ( StateId  s,
State state 
) const
inline

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

template<class C, class U, class S = DefaultCompactStore<typename C::Element, U>>
std::shared_ptr<ArcCompactor> fst::DefaultCompactor< C, U, S >::SharedArcCompactor ( ) const
inline

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

template<class C, class U, class S = DefaultCompactStore<typename C::Element, U>>
std::shared_ptr<CompactStore> fst::DefaultCompactor< C, U, S >::SharedCompactStore ( ) const
inline

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

template<class C, class U, class S = DefaultCompactStore<typename C::Element, U>>
StateId fst::DefaultCompactor< C, U, S >::Start ( ) const
inline

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

template<class C, class U, class S = DefaultCompactStore<typename C::Element, U>>
static const string& fst::DefaultCompactor< C, U, S >::Type ( )
inlinestatic

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

template<class C, class U, class S = DefaultCompactStore<typename C::Element, U>>
bool fst::DefaultCompactor< C, U, S >::Write ( std::ostream &  strm,
const FstWriteOptions opts 
) const
inline

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

Member Data Documentation

template<class C, class U, class S = DefaultCompactStore<typename C::Element, U>>
friend fst::DefaultCompactor< C, U, S >::State

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


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