FST  openfst-1.7.9
OpenFst Library
Public Types | Public Member Functions | Static Public Attributes | Friends | List of all members
fst::ComplementFst< A > Class Template Reference

#include <complement.h>

Inheritance diagram for fst::ComplementFst< A >:
Inheritance graph
[legend]
Collaboration diagram for fst::ComplementFst< A >:
Collaboration graph
[legend]

Public Types

using Arc = A
 
using Label = typename Arc::Label
 
using StateId = typename Arc::StateId
 
using Impl = internal::ComplementFstImpl< Arc >
 
- Public Types inherited from fst::ImplToFst< internal::ComplementFstImpl< A > >
using Arc = typename internal::ComplementFstImpl< A >::Arc
 
using StateId = typename Arc::StateId
 
using Weight = typename Arc::Weight
 
- Public Types inherited from fst::Fst< typename internal::ComplementFstImpl< A >::Arc >
using Arc = typename internal::ComplementFstImpl< A >::Arc
 
using StateId = typename Arc::StateId
 
using Weight = typename Arc::Weight
 

Public Member Functions

 ComplementFst (const Fst< Arc > &fst)
 
 ComplementFst (const ComplementFst &fst, bool safe=false)
 
ComplementFstCopy (bool safe=false) const override
 
void InitStateIterator (StateIteratorData< Arc > *data) const override
 
void InitArcIterator (StateId s, ArcIteratorData< Arc > *data) const override
 
- Public Member Functions inherited from fst::ImplToFst< internal::ComplementFstImpl< A > >
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< typename internal::ComplementFstImpl< A >::Arc >
virtual ~Fst ()
 
virtual bool Write (std::ostream &strm, const FstWriteOptions &opts) const
 
virtual bool Write (const std::string &source) const
 
virtual void InitStateIterator (StateIteratorData< Arc > *data) const =0
 
virtual void InitArcIterator (StateId s, ArcIteratorData< Arc > *data) const =0
 
virtual MatcherBase< Arc > * InitMatcher (MatchType match_type) const
 

Static Public Attributes

static const Label kRhoLabel = -2
 

Friends

class StateIterator< ComplementFst< Arc > >
 
class ArcIterator< ComplementFst< Arc > >
 

Additional Inherited Members

- Static Public Member Functions inherited from fst::Fst< typename internal::ComplementFstImpl< A >::Arc >
static FstRead (std::istream &strm, const FstReadOptions &opts)
 
static FstRead (const std::string &source)
 
- Protected Member Functions inherited from fst::ImplToFst< internal::ComplementFstImpl< A > >
 ImplToFst (std::shared_ptr< internal::ComplementFstImpl< A > > 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::ComplementFstImpl< A > * GetImpl () const
 
internal::ComplementFstImpl< A > * GetMutableImpl () const
 
std::shared_ptr< internal::ComplementFstImpl< A > > GetSharedImpl () const
 
bool Unique () const
 
void SetImpl (std::shared_ptr< internal::ComplementFstImpl< A > > impl)
 
- Protected Member Functions inherited from fst::Fst< typename internal::ComplementFstImpl< A >::Arc >
bool WriteFile (const std::string &source) const
 

Detailed Description

template<class A>
class fst::ComplementFst< A >

Definition at line 22 of file complement.h.

Member Typedef Documentation

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

Definition at line 119 of file complement.h.

template<class A>
using fst::ComplementFst< A >::Impl = internal::ComplementFstImpl<Arc>

Definition at line 122 of file complement.h.

template<class A>
using fst::ComplementFst< A >::Label = typename Arc::Label

Definition at line 120 of file complement.h.

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

Definition at line 121 of file complement.h.

Constructor & Destructor Documentation

template<class A>
fst::ComplementFst< A >::ComplementFst ( const Fst< Arc > &  fst)
inlineexplicit

Definition at line 127 of file complement.h.

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

Definition at line 139 of file complement.h.

Member Function Documentation

template<class A>
ComplementFst* fst::ComplementFst< A >::Copy ( bool  safe = false) const
inlineoverridevirtual
template<class Arc >
void fst::ComplementFst< Arc >::InitArcIterator ( StateId  s,
ArcIteratorData< Arc > *  data 
) const
inlineoverride

Definition at line 269 of file complement.h.

template<class Arc >
void fst::ComplementFst< Arc >::InitStateIterator ( StateIteratorData< Arc > *  data) const
inlineoverride

Definition at line 263 of file complement.h.

Friends And Related Function Documentation

template<class A>
friend class ArcIterator< ComplementFst< Arc > >
friend

Definition at line 125 of file complement.h.

template<class A>
friend class StateIterator< ComplementFst< Arc > >
friend

Definition at line 124 of file complement.h.

Member Data Documentation

template<class A>
const Arc::Label fst::ComplementFst< Arc >::kRhoLabel = -2
static

Definition at line 154 of file complement.h.


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