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

#include <compact-fst.h>

Public Types

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

Public Member Functions

 CompactArcCompactor ()
 
 CompactArcCompactor (const Fst< Arc > &fst, ArcCompactor &&arc_compactor=ArcCompactor())
 
 CompactArcCompactor (const Fst< Arc > &fst, std::shared_ptr< ArcCompactor > arc_compactor)
 
 CompactArcCompactor (const Fst< Arc > &fst, std::shared_ptr< CompactArcCompactor > compactor)
 
 CompactArcCompactor (std::shared_ptr< ArcCompactor > arc_compactor, std::shared_ptr< CompactStore > compact_store)
 
template<class Iterator >
 CompactArcCompactor (const Iterator b, const Iterator e, std::shared_ptr< ArcCompactor > arc_compactor)
 
template<class Iterator >
 CompactArcCompactor (const Iterator b, const Iterator e)
 
 CompactArcCompactor (const CompactArcCompactor &compactor)
 
template<class OtherC >
 CompactArcCompactor (const CompactArcCompactor< 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_t Properties (uint64_t props) const
 
bool IsCompatible (const Fst< Arc > &fst) const
 
bool Error () const
 
bool HasFixedOutdegree () const
 
const ArcCompactorGetArcCompactor () const
 
const CompactStoreGetCompactStore () const
 
ArcCompactorMutableArcCompactor ()
 
CompactStoreMutableCompactStore ()
 
std::shared_ptr< ArcCompactorSharedArcCompactor ()
 
std::shared_ptr< CompactStoreSharedCompactStore ()
 
Arc ComputeArc (StateId s, Unsigned i, uint8_t flags) const
 

Static Public Member Functions

static CompactArcCompactorRead (std::istream &strm, const FstReadOptions &opts, const FstHeader &hdr)
 
static const std::string & Type ()
 

Public Attributes

friend State
 

Detailed Description

template<class AC, class U, class S>
class fst::CompactArcCompactor< AC, U, S >

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

Member Typedef Documentation

template<class AC, class U, class S>
using fst::CompactArcCompactor< AC, U, S >::Arc = typename AC::Arc

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

template<class AC, class U, class S>
using fst::CompactArcCompactor< AC, U, S >::ArcCompactor = AC

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

template<class AC, class U, class S>
using fst::CompactArcCompactor< AC, U, S >::CompactStore = S

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

template<class AC, class U, class S>
using fst::CompactArcCompactor< AC, U, S >::Element = typename AC::Element

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

template<class AC, class U, class S>
using fst::CompactArcCompactor< AC, U, S >::State = CompactArcState<AC, U, S>

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

template<class AC, class U, class S>
using fst::CompactArcCompactor< AC, U, S >::StateId = typename Arc::StateId

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

template<class AC, class U, class S>
using fst::CompactArcCompactor< AC, U, S >::Unsigned = U

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

template<class AC, class U, class S>
using fst::CompactArcCompactor< AC, U, S >::Weight = typename Arc::Weight

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

Constructor & Destructor Documentation

template<class AC, class U, class S>
fst::CompactArcCompactor< AC, U, S >::CompactArcCompactor ( )
inline

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

template<class AC, class U, class S>
fst::CompactArcCompactor< AC, U, S >::CompactArcCompactor ( const Fst< Arc > &  fst,
ArcCompactor &&  arc_compactor = ArcCompactor() 
)
inlineexplicit

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

template<class AC, class U, class S>
fst::CompactArcCompactor< AC, U, S >::CompactArcCompactor ( const Fst< Arc > &  fst,
std::shared_ptr< ArcCompactor arc_compactor 
)
inline

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

template<class AC, class U, class S>
fst::CompactArcCompactor< AC, U, S >::CompactArcCompactor ( const Fst< Arc > &  fst,
std::shared_ptr< CompactArcCompactor< AC, U, S > >  compactor 
)
inline

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

template<class AC, class U, class S>
fst::CompactArcCompactor< AC, U, S >::CompactArcCompactor ( std::shared_ptr< ArcCompactor arc_compactor,
std::shared_ptr< CompactStore compact_store 
)
inline

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

template<class AC, class U, class S>
template<class Iterator >
fst::CompactArcCompactor< AC, U, S >::CompactArcCompactor ( const Iterator  b,
const Iterator  e,
std::shared_ptr< ArcCompactor arc_compactor 
)
inline

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

template<class AC, class U, class S>
template<class Iterator >
fst::CompactArcCompactor< AC, U, S >::CompactArcCompactor ( const Iterator  b,
const Iterator  e 
)
inline

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

template<class AC, class U, class S>
fst::CompactArcCompactor< AC, U, S >::CompactArcCompactor ( const CompactArcCompactor< AC, U, S > &  compactor)
inline

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

template<class AC, class U, class S>
template<class OtherC >
fst::CompactArcCompactor< AC, U, S >::CompactArcCompactor ( const CompactArcCompactor< OtherC, U, S > &  compactor)
inlineexplicit

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

Member Function Documentation

template<class AC, class U, class S>
Arc fst::CompactArcCompactor< AC, U, S >::ComputeArc ( StateId  s,
Unsigned  i,
uint8_t  flags 
) const
inline

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

template<class AC, class U, class S>
bool fst::CompactArcCompactor< AC, U, S >::Error ( ) const
inline

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

template<class AC, class U, class S>
const ArcCompactor* fst::CompactArcCompactor< AC, U, S >::GetArcCompactor ( ) const
inline

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

template<class AC, class U, class S>
const CompactStore* fst::CompactArcCompactor< AC, U, S >::GetCompactStore ( ) const
inline

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

template<class AC, class U, class S>
bool fst::CompactArcCompactor< AC, U, S >::HasFixedOutdegree ( ) const
inline

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

template<class AC, class U, class S>
bool fst::CompactArcCompactor< AC, U, S >::IsCompatible ( const Fst< Arc > &  fst) const
inline

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

template<class AC, class U, class S>
ArcCompactor* fst::CompactArcCompactor< AC, U, S >::MutableArcCompactor ( )
inline

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

template<class AC, class U, class S>
CompactStore* fst::CompactArcCompactor< AC, U, S >::MutableCompactStore ( )
inline

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

template<class AC, class U, class S>
size_t fst::CompactArcCompactor< AC, U, S >::NumArcs ( ) const
inline

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

template<class AC, class U, class S>
StateId fst::CompactArcCompactor< AC, U, S >::NumStates ( ) const
inline

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

template<class AC, class U, class S>
uint64_t fst::CompactArcCompactor< AC, U, S >::Properties ( uint64_t  props) const
inline

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

template<class AC, class U, class S>
static CompactArcCompactor* fst::CompactArcCompactor< AC, U, S >::Read ( std::istream &  strm,
const FstReadOptions opts,
const FstHeader hdr 
)
inlinestatic

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

template<class AC, class U, class S>
void fst::CompactArcCompactor< AC, U, S >::SetState ( StateId  s,
State state 
) const
inline

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

template<class AC, class U, class S>
std::shared_ptr<ArcCompactor> fst::CompactArcCompactor< AC, U, S >::SharedArcCompactor ( )
inline

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

template<class AC, class U, class S>
std::shared_ptr<CompactStore> fst::CompactArcCompactor< AC, U, S >::SharedCompactStore ( )
inline

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

template<class AC, class U, class S>
StateId fst::CompactArcCompactor< AC, U, S >::Start ( ) const
inline

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

template<class AC, class U, class S>
static const std::string& fst::CompactArcCompactor< AC, U, S >::Type ( )
inlinestatic

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

template<class AC, class U, class S>
bool fst::CompactArcCompactor< AC, U, S >::Write ( std::ostream &  strm,
const FstWriteOptions opts 
) const
inline

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

Member Data Documentation

template<class AC, class U, class S>
friend fst::CompactArcCompactor< AC, U, S >::State

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


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