#include <fst/const-fst.h>
Inherits ImplToExpandedFst< ConstFstImpl< A, U > >.

Public Types | |
| typedef A | Arc |
| typedef A::StateId | StateId |
| typedef ConstFstImpl< A, U > | Impl |
| typedef U | Unsigned |
Public Member Functions | |
| template<class F , class G > | |
| void friend | Cast (const F &, G *) |
| ConstFst () | |
| ConstFst (const Fst< A > &fst) | |
| ConstFst (const ConstFst< A, U > &fst) | |
| virtual ConstFst< A, U > * | Copy (bool safe=false) const |
| Get a copy of this ConstFst. See Fst<>::Copy() for further doc. | |
| virtual void | InitStateIterator (StateIteratorData< Arc > *data) const |
| virtual void | InitArcIterator (StateId s, ArcIteratorData< Arc > *data) const |
Static Public Member Functions | |
| static ConstFst< A, U > * | Read (istream &strm, const FstReadOptions &opts) |
| Read a ConstFst from an input stream; return NULL on error. | |
| static ConstFst< A, U > * | Read (const string &filename) |
Friends | |
| class | StateIterator< ConstFst< A, U > > |
| class | ArcIterator< ConstFst< A, U > > |
Simple concrete immutable FST. This class attaches interface to implementation and handles reference counting, delegating most methods to ImplToExpandedFst. The unsigned type U is used to represent indices into the arc array (uint32 by default, declared in fst-decl.h).
Definition at line 261 of file const-fst.h.
| typedef A fst::ConstFst< A, U >::Arc |
Reimplemented from fst::ImplToExpandedFst< ConstFstImpl< A, U > >.
Definition at line 267 of file const-fst.h.
| typedef ConstFstImpl<A, U> fst::ConstFst< A, U >::Impl |
Definition at line 269 of file const-fst.h.
| typedef A::StateId fst::ConstFst< A, U >::StateId |
Reimplemented from fst::ImplToExpandedFst< ConstFstImpl< A, U > >.
Definition at line 268 of file const-fst.h.
| typedef U fst::ConstFst< A, U >::Unsigned |
Definition at line 270 of file const-fst.h.
| fst::ConstFst< A, U >::ConstFst | ( | ) | [inline] |
Definition at line 272 of file const-fst.h.
| fst::ConstFst< A, U >::ConstFst | ( | const Fst< A > & | fst | ) | [inline, explicit] |
Definition at line 274 of file const-fst.h.
| fst::ConstFst< A, U >::ConstFst | ( | const ConstFst< A, U > & | fst | ) | [inline] |
Definition at line 277 of file const-fst.h.
| void friend fst::ConstFst< A, U >::Cast | ( | const F & | , | |
| G * | ||||
| ) |
| virtual ConstFst<A, U>* fst::ConstFst< A, U >::Copy | ( | bool | safe = false |
) | const [inline, virtual] |
Get a copy of this ConstFst. See Fst<>::Copy() for further doc.
Implements fst::ExpandedFst< typename ConstFstImpl< A, U >::Arc >.
Definition at line 280 of file const-fst.h.
| virtual void fst::ConstFst< A, U >::InitArcIterator | ( | StateId | s, | |
| ArcIteratorData< Arc > * | data | |||
| ) | const [inline, virtual] |
Definition at line 301 of file const-fst.h.
| virtual void fst::ConstFst< A, U >::InitStateIterator | ( | StateIteratorData< Arc > * | data | ) | const [inline, virtual] |
Definition at line 297 of file const-fst.h.
| static ConstFst<A, U>* fst::ConstFst< A, U >::Read | ( | istream & | strm, | |
| const FstReadOptions & | opts | |||
| ) | [inline, static] |
Read a ConstFst from an input stream; return NULL on error.
Reimplemented from fst::ExpandedFst< typename ConstFstImpl< A, U >::Arc >.
Definition at line 285 of file const-fst.h.
| static ConstFst<A, U>* fst::ConstFst< A, U >::Read | ( | const string & | filename | ) | [inline, static] |
Read a ConstFst from a file; return NULL on error Empty filename reads from standard input
Reimplemented from fst::ImplToExpandedFst< ConstFstImpl< A, U > >.
Definition at line 292 of file const-fst.h.
friend class ArcIterator< ConstFst< A, U > > [friend] |
Definition at line 264 of file const-fst.h.
friend class StateIterator< ConstFst< A, U > > [friend] |
Definition at line 263 of file const-fst.h.
1.7.1