FST  openfst-1.7.0
OpenFst Library
Classes | Public Types | Public Member Functions | List of all members
fst::Compressor< Arc > Class Template Reference

#include <compress.h>

Public Types

typedef Arc::StateId StateId
 
typedef Arc::Label Label
 
typedef Arc::Weight Weight
 

Public Member Functions

 Compressor ()
 
bool Compress (const Fst< Arc > &fst, std::ostream &strm)
 
bool Decompress (std::istream &strm, const string &source, MutableFst< Arc > *fst)
 
void BfsOrder (const ExpandedFst< Arc > &fst, std::vector< StateId > *order)
 
void Preprocess (const Fst< Arc > &fst, MutableFst< Arc > *preprocessedfst, EncodeMapper< Arc > *encoder)
 
void EncodeProcessedFst (const ExpandedFst< Arc > &fst, std::ostream &strm)
 
void DecodeProcessedFst (const std::vector< StateId > &input, MutableFst< Arc > *fst, bool unweighted)
 
void WriteToStream (std::ostream &strm)
 
void WriteWeight (const std::vector< Weight > &input, std::ostream &strm)
 
void ReadWeight (std::istream &strm, std::vector< Weight > *output)
 
void DecodeForCompress (MutableFst< Arc > *fst, const EncodeMapper< Arc > &mapper)
 
template<class CVar >
void WriteToBuffer (CVar input)
 

Detailed Description

template<class Arc>
class fst::Compressor< Arc >

Definition at line 198 of file compress.h.

Member Typedef Documentation

template<class Arc>
typedef Arc::Label fst::Compressor< Arc >::Label

Definition at line 201 of file compress.h.

template<class Arc>
typedef Arc::StateId fst::Compressor< Arc >::StateId

Definition at line 200 of file compress.h.

template<class Arc>
typedef Arc::Weight fst::Compressor< Arc >::Weight

Definition at line 202 of file compress.h.

Constructor & Destructor Documentation

template<class Arc>
fst::Compressor< Arc >::Compressor ( )
inline

Definition at line 204 of file compress.h.

Member Function Documentation

template<class Arc >
void fst::Compressor< Arc >::BfsOrder ( const ExpandedFst< Arc > &  fst,
std::vector< StateId > *  order 
)

Definition at line 324 of file compress.h.

template<class Arc >
bool fst::Compressor< Arc >::Compress ( const Fst< Arc > &  fst,
std::ostream &  strm 
)

Definition at line 799 of file compress.h.

template<class Arc >
void fst::Compressor< Arc >::DecodeForCompress ( MutableFst< Arc > *  fst,
const EncodeMapper< Arc > &  mapper 
)
inline

Definition at line 315 of file compress.h.

template<class Arc >
void fst::Compressor< Arc >::DecodeProcessedFst ( const std::vector< StateId > &  input,
MutableFst< Arc > *  fst,
bool  unweighted 
)

Definition at line 517 of file compress.h.

template<class Arc >
bool fst::Compressor< Arc >::Decompress ( std::istream &  strm,
const string &  source,
MutableFst< Arc > *  fst 
)

Definition at line 717 of file compress.h.

template<class Arc >
void fst::Compressor< Arc >::EncodeProcessedFst ( const ExpandedFst< Arc > &  fst,
std::ostream &  strm 
)

Definition at line 387 of file compress.h.

template<class Arc >
void fst::Compressor< Arc >::Preprocess ( const Fst< Arc > &  fst,
MutableFst< Arc > *  preprocessedfst,
EncodeMapper< Arc > *  encoder 
)

Definition at line 370 of file compress.h.

template<class Arc >
void fst::Compressor< Arc >::ReadWeight ( std::istream &  strm,
std::vector< Weight > *  output 
)

Definition at line 705 of file compress.h.

template<class Arc>
template<class CVar >
void fst::Compressor< Arc >::WriteToBuffer ( CVar  input)
inline

Definition at line 244 of file compress.h.

template<class Arc >
void fst::Compressor< Arc >::WriteToStream ( std::ostream &  strm)

Definition at line 779 of file compress.h.

template<class Arc >
void fst::Compressor< Arc >::WriteWeight ( const std::vector< Weight > &  input,
std::ostream &  strm 
)

Definition at line 768 of file compress.h.


The documentation for this class was generated from the following file: