Public Types | Public Member Functions | Static Public Member Functions

fst::WeightedStringCompactor< A > Class Template Reference

Compactor for weighted string FSTs. More...

#include <fst/compact-fst.h>

List of all members.

Public Types

typedef A Arc
typedef A::Label Label
typedef A::StateId StateId
typedef A::Weight Weight
typedef pair< Label, WeightElement

Public Member Functions

Element Compact (StateId s, const A &arc) const
Arc Expand (StateId s, const Element &p, uint32 f=kArcValueFlags) const
ssize_t Size () const
uint64 Properties () const
bool Compatible (const Fst< A > &fst) const
bool Write (ostream &strm) const

Static Public Member Functions

static const string & Type ()
static WeightedStringCompactorRead (istream &strm)

Detailed Description

template<class A>
class fst::WeightedStringCompactor< A >

Compactor for weighted string FSTs.

Definition at line 1040 of file compact-fst.h.


Member Typedef Documentation

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

Definition at line 1042 of file compact-fst.h.

template<class A >
typedef pair<Label, Weight> fst::WeightedStringCompactor< A >::Element

Definition at line 1046 of file compact-fst.h.

template<class A >
typedef A::Label fst::WeightedStringCompactor< A >::Label

Definition at line 1043 of file compact-fst.h.

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

Definition at line 1044 of file compact-fst.h.

template<class A >
typedef A::Weight fst::WeightedStringCompactor< A >::Weight

Definition at line 1045 of file compact-fst.h.


Member Function Documentation

template<class A >
Element fst::WeightedStringCompactor< A >::Compact ( StateId  s,
const A &  arc 
) const [inline]

Definition at line 1048 of file compact-fst.h.

template<class A >
bool fst::WeightedStringCompactor< A >::Compatible ( const Fst< A > &  fst  )  const [inline]

Definition at line 1063 of file compact-fst.h.

template<class A >
Arc fst::WeightedStringCompactor< A >::Expand ( StateId  s,
const Element p,
uint32  f = kArcValueFlags 
) const [inline]

Definition at line 1052 of file compact-fst.h.

template<class A >
uint64 fst::WeightedStringCompactor< A >::Properties (  )  const [inline]

Definition at line 1059 of file compact-fst.h.

template<class A >
static WeightedStringCompactor* fst::WeightedStringCompactor< A >::Read ( istream &  strm  )  [inline, static]

Definition at line 1075 of file compact-fst.h.

template<class A >
ssize_t fst::WeightedStringCompactor< A >::Size (  )  const [inline]

Definition at line 1057 of file compact-fst.h.

template<class A >
static const string& fst::WeightedStringCompactor< A >::Type ( void   )  [inline, static]

Definition at line 1068 of file compact-fst.h.

template<class A >
bool fst::WeightedStringCompactor< A >::Write ( ostream &  strm  )  const [inline]

Definition at line 1073 of file compact-fst.h.


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