Public Types | Public Member Functions | Protected Member Functions | Friends

fst::RationalFst< A > Class Template Reference

#include <fst/rational.h>

Inherits ImplToFst< RationalFstImpl< A > >.

Inherited by fst::ClosureFst< A >, fst::ConcatFst< A >, and fst::UnionFst< A >.

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

List of all members.

Public Types

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

Public Member Functions

virtual void InitStateIterator (StateIteratorData< A > *data) const
virtual void InitArcIterator (StateId s, ArcIteratorData< A > *data) const

Protected Member Functions

 RationalFst ()
 RationalFst (const RationalFstOptions &opts)
 RationalFst (const RationalFst< A > &fst, bool safe=false)
 See Fst<>::Copy() for doc.

Friends

class StateIterator< RationalFst< A > >
class ArcIterator< RationalFst< A > >
void Union (RationalFst< A > *fst1, const Fst< A > &fst2)
void Concat (RationalFst< A > *fst1, const Fst< A > &fst2)
void Concat (const Fst< A > &fst1, RationalFst< A > *fst2)
void Closure (RationalFst< A > *fst, ClosureType closure_type)

Detailed Description

template<class A>
class fst::RationalFst< A >

Parent class for the delayed rational operations - delayed union, concatenation, and closure.

This class attaches interface to implementation and handles reference counting, delegating most methods to ImplToFst.

Definition at line 263 of file rational.h.


Member Typedef Documentation

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

Reimplemented from fst::ImplToFst< RationalFstImpl< A > >.

Reimplemented in fst::ClosureFst< A >, fst::ConcatFst< A >, and fst::UnionFst< A >.

Definition at line 272 of file rational.h.

template<class A>
typedef RationalFstImpl<A> fst::RationalFst< A >::Impl

Definition at line 274 of file rational.h.

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

Reimplemented from fst::ImplToFst< RationalFstImpl< A > >.

Reimplemented in fst::ConcatFst< A >, and fst::UnionFst< A >.

Definition at line 273 of file rational.h.


Constructor & Destructor Documentation

template<class A>
fst::RationalFst< A >::RationalFst (  )  [inline, protected]

Definition at line 285 of file rational.h.

template<class A>
fst::RationalFst< A >::RationalFst ( const RationalFstOptions opts  )  [inline, explicit, protected]

Definition at line 288 of file rational.h.

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

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

Definition at line 292 of file rational.h.


Member Function Documentation

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

Definition at line 280 of file rational.h.

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

Definition at line 276 of file rational.h.


Friends And Related Function Documentation

template<class A>
friend class ArcIterator< RationalFst< A > > [friend]

Definition at line 266 of file rational.h.

template<class A>
void Closure ( RationalFst< A > *  fst,
ClosureType  closure_type 
) [friend]
template<class A>
void Concat ( const Fst< A > &  fst1,
RationalFst< A > *  fst2 
) [friend]
template<class A>
void Concat ( RationalFst< A > *  fst1,
const Fst< A > &  fst2 
) [friend]
template<class A>
friend class StateIterator< RationalFst< A > > [friend]

Definition at line 265 of file rational.h.

template<class A>
void Union ( RationalFst< A > *  fst1,
const Fst< A > &  fst2 
) [friend]

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