Lines Matching refs:EditFst
34 // The EditFst class enables non-destructive edit operations on a wrapped
52 // also, this class provides most of the actual implementation of what EditFst
61 // WrappedFstT the type of fst wrapped by the EditFst instance that
362 LOG(ERROR) << "EditFst::Read: read failed: " << opts.source;
379 // WrappedFstT the type of fst wrapped by the EditFst instance that
422 // perform a static_cast to the WrappedFstT type required by EditFst and
501 LOG(ERROR) << "EditFst::Write: write failed: " << opts.source;
599 // for the two properties that always apply to EditFst instances: kExpanded
615 // by EditFst is performed, such as changing an arc of an existing state
632 // The mutable data for this EditFst instance, with delegates for all the
690 class EditFst :
693 friend class MutableArcIterator< EditFst<A, WrappedFstT, MutableFstT> >;
699 EditFst() : ImplToMutableFst<Impl>(new Impl()) {}
701 explicit EditFst(const Fst<A> &fst) :
704 explicit EditFst(const WrappedFstT &fst) :
708 EditFst(const EditFst<A, WrappedFstT, MutableFstT> &fst, bool safe = false) :
711 virtual ~EditFst() {}
713 // Get a copy of this EditFst. See Fst<>::Copy() for further doc.
714 virtual EditFst<A, WrappedFstT, MutableFstT> *Copy(bool safe = false) const {
715 return new EditFst<A, WrappedFstT, MutableFstT>(*this, safe);
718 EditFst<A, WrappedFstT, MutableFstT> &
719 operator=(const EditFst<A, WrappedFstT, MutableFstT> &fst) {
724 virtual EditFst<A, WrappedFstT, MutableFstT> &operator=(const Fst<A> &fst) {
731 // Read an EditFst from an input stream; return NULL on error.
732 static EditFst<A, WrappedFstT, MutableFstT> *
736 return impl ? new EditFst<A>(impl) : 0;
739 // Read an EditFst from a file; return NULL on error.
741 static EditFst<A, WrappedFstT, MutableFstT> *Read(const string &filename) {
743 return impl ? new EditFst<A, WrappedFstT, MutableFstT>(impl) : 0;
767 explicit EditFst(Impl *impl) : ImplToMutableFst<Impl>(impl) {}