Public Types | Public Member Functions | Static Public Member Functions | Friends

fst::EditFst< A > Class Template Reference

END EditFstImpl IMPLEMENTATION. More...

#include <fst/edit-fst.h>

Inherits ImplToMutableFst< EditFstImpl< A > >.

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

List of all members.

Public Types

typedef A Arc
typedef A::StateId StateId
typedef EditFstImpl< A > Impl

Public Member Functions

 EditFst ()
 EditFst (const Fst< A > &fst)
 EditFst (const EditFst< A > &fst, bool safe=false)
 See Fst<>::Copy() for doc.
virtual ~EditFst ()
virtual EditFst< A > * Copy (bool safe=false) const
 Get a copy of this EditFst. See Fst<>::Copy() for further doc.
EditFst< A > & operator= (const EditFst< A > &fst)
virtual EditFst< A > & operator= (const Fst< A > &fst)
virtual void InitStateIterator (StateIteratorData< Arc > *data) const
virtual void InitArcIterator (StateId s, ArcIteratorData< Arc > *data) const
virtual void InitMutableArcIterator (StateId s, MutableArcIteratorData< A > *data)

Static Public Member Functions

static EditFst< A > * Read (istream &strm, const FstReadOptions &opts)
 Read an EditFst from an input stream; return NULL on error.
static EditFst< A > * Read (const string &filename)

Friends

class MutableArcIterator< EditFst< A > >

Detailed Description

template<class A>
class fst::EditFst< A >

END EditFstImpl IMPLEMENTATION.

Concrete, editable FST. This class attaches interface to implementation.

Definition at line 454 of file edit-fst.h.


Member Typedef Documentation

template<class A>
typedef A fst::EditFst< A >::Arc

Reimplemented from fst::ImplToMutableFst< EditFstImpl< A > >.

Definition at line 458 of file edit-fst.h.

template<class A>
typedef EditFstImpl<A> fst::EditFst< A >::Impl

Definition at line 460 of file edit-fst.h.

template<class A>
typedef A::StateId fst::EditFst< A >::StateId

Reimplemented from fst::ImplToMutableFst< EditFstImpl< A > >.

Definition at line 459 of file edit-fst.h.


Constructor & Destructor Documentation

template<class A>
fst::EditFst< A >::EditFst (  )  [inline]

Definition at line 462 of file edit-fst.h.

template<class A>
fst::EditFst< A >::EditFst ( const Fst< A > &  fst  )  [inline, explicit]

Definition at line 464 of file edit-fst.h.

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

See Fst<>::Copy() for doc.

Definition at line 468 of file edit-fst.h.

template<class A>
virtual fst::EditFst< A >::~EditFst (  )  [inline, virtual]

Definition at line 471 of file edit-fst.h.


Member Function Documentation

template<class A>
virtual EditFst<A>* fst::EditFst< A >::Copy ( bool  safe = false  )  const [inline, virtual]

Get a copy of this EditFst. See Fst<>::Copy() for further doc.

Implements fst::MutableFst< typename EditFstImpl< A >::Arc >.

Definition at line 474 of file edit-fst.h.

template<class A>
virtual void fst::EditFst< A >::InitArcIterator ( StateId  s,
ArcIteratorData< Arc > *  data 
) const [inline, virtual]

Definition at line 507 of file edit-fst.h.

template<class A>
virtual void fst::EditFst< A >::InitMutableArcIterator ( StateId  s,
MutableArcIteratorData< A > *  data 
) [inline, virtual]

Definition at line 512 of file edit-fst.h.

template<class A>
virtual void fst::EditFst< A >::InitStateIterator ( StateIteratorData< Arc > *  data  )  const [inline, virtual]

Definition at line 503 of file edit-fst.h.

template<class A>
EditFst<A>& fst::EditFst< A >::operator= ( const EditFst< A > &  fst  )  [inline]

Definition at line 478 of file edit-fst.h.

template<class A>
virtual EditFst<A>& fst::EditFst< A >::operator= ( const Fst< A > &  fst  )  [inline, virtual]

Definition at line 483 of file edit-fst.h.

template<class A>
static EditFst<A>* fst::EditFst< A >::Read ( istream &  strm,
const FstReadOptions opts 
) [inline, static]

Read an EditFst from an input stream; return NULL on error.

Reimplemented from fst::MutableFst< typename EditFstImpl< A >::Arc >.

Definition at line 491 of file edit-fst.h.

template<class A>
static EditFst<A>* fst::EditFst< A >::Read ( const string &  filename  )  [inline, static]

Read an EditFst from a file; return NULL on error. Empty filename reads from standard input.

Reimplemented from fst::ImplToExpandedFst< EditFstImpl< A >, MutableFst< typename EditFstImpl< A >::Arc > >.

Definition at line 498 of file edit-fst.h.


Friends And Related Function Documentation

template<class A>
friend class MutableArcIterator< EditFst< A > > [friend]

Definition at line 456 of file edit-fst.h.


The documentation for this class was generated from the following file:
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines