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

fst::ConstFst< A, U > Class Template Reference

#include <fst/const-fst.h>

Inherits ImplToExpandedFst< ConstFstImpl< A, U > >.

Collaboration diagram for fst::ConstFst< A, U >:
Collaboration graph
[legend]

List of all members.

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 > >

Detailed Description

template<class A, class U>
class fst::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.


Member Typedef Documentation

template<class A, class U>
typedef A fst::ConstFst< A, U >::Arc

Reimplemented from fst::ImplToExpandedFst< ConstFstImpl< A, U > >.

Definition at line 267 of file const-fst.h.

template<class A, class U>
typedef ConstFstImpl<A, U> fst::ConstFst< A, U >::Impl

Definition at line 269 of file const-fst.h.

template<class A, class U>
typedef A::StateId fst::ConstFst< A, U >::StateId

Reimplemented from fst::ImplToExpandedFst< ConstFstImpl< A, U > >.

Definition at line 268 of file const-fst.h.

template<class A, class U>
typedef U fst::ConstFst< A, U >::Unsigned

Definition at line 270 of file const-fst.h.


Constructor & Destructor Documentation

template<class A, class U>
fst::ConstFst< A, U >::ConstFst (  )  [inline]

Definition at line 272 of file const-fst.h.

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

Definition at line 274 of file const-fst.h.

template<class A, class U>
fst::ConstFst< A, U >::ConstFst ( const ConstFst< A, U > &  fst  )  [inline]

Definition at line 277 of file const-fst.h.


Member Function Documentation

template<class A, class U>
template<class F , class G >
void friend fst::ConstFst< A, U >::Cast ( const F &  ,
G *   
)
template<class A, class U>
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.

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

Definition at line 301 of file const-fst.h.

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

Definition at line 297 of file const-fst.h.

template<class A, class U>
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.

template<class A, class U>
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.


Friends And Related Function Documentation

template<class A, class U>
friend class ArcIterator< ConstFst< A, U > > [friend]

Definition at line 264 of file const-fst.h.

template<class A, class U>
friend class StateIterator< ConstFst< A, U > > [friend]

Definition at line 263 of file const-fst.h.


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