FST
openfst-1.8.4
OpenFst Library
|
#include <compress.h>
Public Types | |
using | Label = typename Arc::Label |
using | StateId = typename Arc::StateId |
using | Weight = typename Arc::Weight |
Public Member Functions | |
Compressor ()=default | |
bool | Compress (const Fst< Arc > &fst, std::ostream &strm) |
bool | Decompress (std::istream &strm, std::string_view 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) |
Definition at line 189 of file compress.h.
using fst::Compressor< Arc >::Label = typename Arc::Label |
Definition at line 191 of file compress.h.
using fst::Compressor< Arc >::StateId = typename Arc::StateId |
Definition at line 192 of file compress.h.
using fst::Compressor< Arc >::Weight = typename Arc::Weight |
Definition at line 193 of file compress.h.
|
default |
void fst::Compressor< Arc >::BfsOrder | ( | const ExpandedFst< Arc > & | fst, |
std::vector< StateId > * | order | ||
) |
Definition at line 308 of file compress.h.
bool fst::Compressor< Arc >::Compress | ( | const Fst< Arc > & | fst, |
std::ostream & | strm | ||
) |
Definition at line 742 of file compress.h.
void fst::Compressor< Arc >::DecodeForCompress | ( | MutableFst< Arc > * | fst, |
const EncodeMapper< Arc > & | mapper | ||
) |
Definition at line 300 of file compress.h.
void fst::Compressor< Arc >::DecodeProcessedFst | ( | const std::vector< StateId > & | input, |
MutableFst< Arc > * | fst, | ||
bool | unweighted | ||
) |
Definition at line 479 of file compress.h.
bool fst::Compressor< Arc >::Decompress | ( | std::istream & | strm, |
std::string_view | source, | ||
MutableFst< Arc > * | fst | ||
) |
Definition at line 671 of file compress.h.
void fst::Compressor< Arc >::EncodeProcessedFst | ( | const ExpandedFst< Arc > & | fst, |
std::ostream & | strm | ||
) |
Definition at line 355 of file compress.h.
void fst::Compressor< Arc >::Preprocess | ( | const Fst< Arc > & | fst, |
MutableFst< Arc > * | preprocessedfst, | ||
EncodeMapper< Arc > * | encoder | ||
) |
Definition at line 340 of file compress.h.
void fst::Compressor< Arc >::ReadWeight | ( | std::istream & | strm, |
std::vector< Weight > * | output | ||
) |
Definition at line 659 of file compress.h.
|
inline |
Definition at line 231 of file compress.h.
void fst::Compressor< Arc >::WriteToStream | ( | std::ostream & | strm | ) |
Definition at line 722 of file compress.h.
void fst::Compressor< Arc >::WriteWeight | ( | const std::vector< Weight > & | input, |
std::ostream & | strm | ||
) |
Definition at line 712 of file compress.h.