Lines Matching defs:CompactFst

44   // CompactFst default caching behaviour is to do no caching. Most
373 LOG(ERROR) << "CompactFst::Read: Alignment failed: " << opts.source;
380 LOG(ERROR) << "CompactFst::Read: Read failed: " << opts.source;
393 LOG(ERROR) << "CompactFst::Read: Alignment failed: " << opts.source;
400 LOG(ERROR) << "CompactFst::Read: Read failed: " << opts.source;
414 LOG(ERROR) << "CompactFst::Write: Alignment failed: " << opts.source;
421 LOG(ERROR) << "CompactFst::Write: Alignment failed: " << opts.source;
429 LOG(ERROR) << "CompactFst::Write: Write failed: " << opts.source;
435 template <class A, class C, class U> class CompactFst;
438 // Implementation class for CompactFst, which contains CompactFstData
724 friend class CompactFst<A, C, U>; // allow access during write.
789 // CompactFst. This class attaches interface to implementation and
795 class CompactFst : public ImplToExpandedFst< CompactFstImpl<A, C, U> > {
797 friend class StateIterator< CompactFst<A, C, U> >;
798 friend class ArcIterator< CompactFst<A, C, U> >;
807 CompactFst() : ImplToExpandedFst<Impl>(new Impl()) {}
809 explicit CompactFst(const Fst<A> &fst, const C &compactor = C(),
813 CompactFst(const Fst<A> &fst, C *compactor,
833 // These 2 constructors allows the direct construction of a CompactFst
837 explicit CompactFst(const Iterator &begin, const Iterator &end,
843 CompactFst(const Iterator &begin, const Iterator &end,
848 CompactFst(const CompactFst<A, C, U> &fst, bool safe = false)
851 // Get a copy of this CompactFst. See Fst<>::Copy() for further doc.
852 virtual CompactFst<A, C, U> *Copy(bool safe = false) const {
853 return new CompactFst<A, C, U>(*this, safe);
856 // Read a CompactFst from an input stream; return NULL on error
857 static CompactFst<A, C, U> *Read(istream &strm, const FstReadOptions &opts) {
859 return impl ? new CompactFst<A, C, U>(impl) : 0;
862 // Read a CompactFst from a file; return NULL on error
864 static CompactFst<A, C, U> *Read(const string &filename) {
866 return impl ? new CompactFst<A, C, U>(impl) : 0;
890 return new SortedMatcher<CompactFst<A, C, U> >(*this, match_type);
899 CompactFst(Impl *impl) : ImplToExpandedFst<Impl>(impl) {}
909 static Impl* GetImplIfCompactFst(const CompactFst<A, C, U> &compact_fst) {
913 // This does not give privileged treatment to subclasses of CompactFst.
919 void operator=(const CompactFst<A, C, U> &fst); // disallow
927 bool CompactFst<A, C, U>::WriteFst(const F &fst,
988 LOG(ERROR) << "CompactFst::Write: Alignment failed: " << opts.source;
1021 LOG(ERROR) << "CompactFst write failed: " << opts.source;
1028 // Specialization for CompactFst; see generic version in fst.h
1029 // for sample usage (but use the CompactFst type!). This version
1032 class StateIterator< CompactFst<A, C, U> > {
1036 explicit StateIterator(const CompactFst<A, C, U> &fst)
1054 // Specialization for CompactFst.
1057 class ArcIterator< CompactFst<A, C, U> > {
1062 ArcIterator(const CompactFst<A, C, U> &fst, StateId s)
1121 // // Specialization for CompactFst.
1126 // class ArcIterator< CompactFst<A, C, U> > {
1130 // ArcIterator(const CompactFst<A, C, U> &fst, StateId s)
1198 // mutable const CompactFst<A, C, U> &fst_;
1425 typedef CompactFst< StdArc, StringCompactor<StdArc> >
1427 typedef CompactFst< StdArc, WeightedStringCompactor<StdArc> >
1429 typedef CompactFst<StdArc, AcceptorCompactor<StdArc> >
1431 typedef CompactFst<StdArc, UnweightedCompactor<StdArc> >
1433 typedef CompactFst<StdArc, UnweightedAcceptorCompactor<StdArc> >