FST  openfst-1.7.0
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< Arc > &fst, bool safe=false)
 
ComplementFst< Arc > * Copy (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 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 string &filename) 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 Fst< Arc > * Read (std::istream &strm, const FstReadOptions &opts)
 
static Fst< Arc > * Read (const string &filename)
 
- Protected Member Functions inherited from fst::ImplToFst< internal::ComplementFstImpl< A > >
 ImplToFst (std::shared_ptr< internal::ComplementFstImpl< A > > impl)
 
 ImplToFst (const ImplToFst< internal::ComplementFstImpl< A >, Fst< typename internal::ComplementFstImpl< A >::Arc > > &fst, bool safe)
 
 ImplToFst ()=delete
 
 ImplToFst (const ImplToFst< internal::ComplementFstImpl< A >, Fst< typename internal::ComplementFstImpl< A >::Arc > > &fst)
 
 ImplToFst (ImplToFst< internal::ComplementFstImpl< A >, Fst< typename internal::ComplementFstImpl< A >::Arc > > &&fst) noexcept
 
ImplToFst< internal::ComplementFstImpl< A >, Fst< typename internal::ComplementFstImpl< A >::Arc > > & operator= (const ImplToFst< internal::ComplementFstImpl< A >, Fst< typename internal::ComplementFstImpl< A >::Arc > > &fst)
 
ImplToFst< internal::ComplementFstImpl< A >, Fst< typename internal::ComplementFstImpl< A >::Arc > > & operator= (ImplToFst< internal::ComplementFstImpl< A >, Fst< typename internal::ComplementFstImpl< A >::Arc > > &&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 string &filename) const
 

Detailed Description

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

Definition at line 21 of file complement.h.

Member Typedef Documentation

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

Definition at line 118 of file complement.h.

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

Definition at line 121 of file complement.h.

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

Definition at line 119 of file complement.h.

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

Definition at line 120 of file complement.h.

Constructor & Destructor Documentation

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

Definition at line 126 of file complement.h.

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

Definition at line 138 of file complement.h.

Member Function Documentation

template<class A>
ComplementFst<Arc>* 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 267 of file complement.h.

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

Definition at line 261 of file complement.h.

Friends And Related Function Documentation

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

Definition at line 124 of file complement.h.

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

Definition at line 123 of file complement.h.

Member Data Documentation

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

Definition at line 153 of file complement.h.


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