FST  openfst-1.8.3
OpenFst Library
Classes | Public Types | Public Member Functions | Static Public Member Functions | List of all members
fst::TrivialCompactor< A > Class Template Reference

#include <compactors.h>

Classes

class  State
 

Public Types

using Arc = A
 
using StateId = typename Arc::StateId
 
using Weight = typename Arc::Weight
 

Public Member Functions

 TrivialCompactor ()
 
 TrivialCompactor (const Fst< Arc > &fst, std::shared_ptr< TrivialCompactor >=nullptr)
 
 TrivialCompactor (const TrivialCompactor &compactor)
 
StateId Start () const
 
StateId NumStates () const
 
size_t NumArcs () const
 
void SetState (StateId s, State *state)
 
template<typename Arc >
bool IsCompatible (const Fst< Arc > &fst) const
 
uint64_t Properties (uint64_t props) const
 
bool Error () const
 
bool Write (std::ostream &strm, const FstWriteOptions &opts) const
 

Static Public Member Functions

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

Detailed Description

template<class A>
class fst::TrivialCompactor< A >

Definition at line 88 of file compactors.h.

Member Typedef Documentation

template<class A >
using fst::TrivialCompactor< A >::Arc = A

Definition at line 90 of file compactors.h.

template<class A >
using fst::TrivialCompactor< A >::StateId = typename Arc::StateId

Definition at line 91 of file compactors.h.

template<class A >
using fst::TrivialCompactor< A >::Weight = typename Arc::Weight

Definition at line 92 of file compactors.h.

Constructor & Destructor Documentation

template<class A >
fst::TrivialCompactor< A >::TrivialCompactor ( )
inline

Definition at line 95 of file compactors.h.

template<class A >
fst::TrivialCompactor< A >::TrivialCompactor ( const Fst< Arc > &  fst,
std::shared_ptr< TrivialCompactor< A > >  = nullptr 
)
inlineexplicit

Definition at line 99 of file compactors.h.

template<class A >
fst::TrivialCompactor< A >::TrivialCompactor ( const TrivialCompactor< A > &  compactor)
inline

Definition at line 105 of file compactors.h.

Member Function Documentation

template<class A >
bool fst::TrivialCompactor< A >::Error ( ) const
inline

Definition at line 149 of file compactors.h.

template<class A >
template<typename Arc >
bool fst::TrivialCompactor< A >::IsCompatible ( const Fst< Arc > &  fst) const
inline

Definition at line 137 of file compactors.h.

template<class A >
size_t fst::TrivialCompactor< A >::NumArcs ( ) const
inline

Definition at line 110 of file compactors.h.

template<class A >
StateId fst::TrivialCompactor< A >::NumStates ( ) const
inline

Definition at line 109 of file compactors.h.

template<class A >
uint64_t fst::TrivialCompactor< A >::Properties ( uint64_t  props) const
inline

Definition at line 141 of file compactors.h.

template<class A >
static TrivialCompactor* fst::TrivialCompactor< A >::Read ( std::istream &  strm,
FstReadOptions  opts,
const FstHeader hdr 
)
inlinestatic

Definition at line 157 of file compactors.h.

template<class A >
void fst::TrivialCompactor< A >::SetState ( StateId  s,
State state 
)
inline

Definition at line 134 of file compactors.h.

template<class A >
StateId fst::TrivialCompactor< A >::Start ( ) const
inline

Definition at line 108 of file compactors.h.

template<class A >
static const std::string& fst::TrivialCompactor< A >::Type ( )
inlinestatic

Definition at line 143 of file compactors.h.

template<class A >
bool fst::TrivialCompactor< A >::Write ( std::ostream &  strm,
const FstWriteOptions opts 
) const
inline

Definition at line 151 of file compactors.h.


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