Home | History | Annotate | Download | only in fst

Lines Matching defs:VectorFst

35 template <class A> class VectorFst;
195 friend class MutableArcIterator< VectorFst<A> >;
347 LOG(ERROR) << "VectorFst::Read: read failed: " << opts.source;
359 LOG(ERROR) << "VectorFst::Read: read failed: " << opts.source;
371 LOG(ERROR) << "VectorFst::Read: unexpected end of file: " << opts.source;
387 FSTERROR() << "VectorFst::Read: Obsolete file format";
412 class VectorFst : public ImplToMutableFst< VectorFstImpl<A> > {
414 friend class StateIterator< VectorFst<A> >;
415 friend class ArcIterator< VectorFst<A> >;
416 friend class MutableArcIterator< VectorFst<A> >;
423 VectorFst() : ImplToMutableFst<Impl>(new Impl) {}
425 explicit VectorFst(const Fst<A> &fst)
428 VectorFst(const VectorFst<A> &fst) : ImplToMutableFst<Impl>(fst) {}
430 // Get a copy of this VectorFst. See Fst<>::Copy() for further doc.
431 virtual VectorFst<A> *Copy(bool safe = false) const {
432 return new VectorFst<A>(*this);
435 VectorFst<A> &operator=(const VectorFst<A> &fst) {
440 virtual VectorFst<A> &operator=(const Fst<A> &fst) {
445 // Read a VectorFst from an input stream; return NULL on error
446 static VectorFst<A> *Read(istream &strm, const FstReadOptions &opts) {
448 return impl ? new VectorFst<A>(impl) : 0;
451 // Read a VectorFst from a file; return NULL on error
453 static VectorFst<A> *Read(const string &filename) {
455 return impl ? new VectorFst<A>(impl) : 0;
492 explicit VectorFst(Impl *impl) : ImplToMutableFst<Impl>(impl) {}
504 // Specialization for VectorFst; see generic version in fst.h
505 // for sample usage (but use the VectorFst type!). This version
508 class StateIterator< VectorFst<A> > {
512 explicit StateIterator(const VectorFst<A> &fst)
534 bool VectorFst<A>::WriteFst(const F &fst, ostream &strm,
567 LOG(ERROR) << "VectorFst::Write: write failed: " << opts.source;
583 // Specialization for VectorFst; see generic version in fst.h
584 // for sample usage (but use the VectorFst type!). This version
587 class ArcIterator< VectorFst<A> > {
591 ArcIterator(const VectorFst<A> &fst, StateId s)
619 // Specialization for VectorFst; see generic version in fst.h
620 // for sample usage (but use the VectorFst type!). This version
623 class MutableArcIterator< VectorFst<A> >
629 MutableArcIterator(VectorFst<A> *fst, StateId s) : i_(0) {
721 void VectorFst<A>::InitMutableArcIterator(
723 data->base = new MutableArcIterator< VectorFst<A> >(this, s);
727 typedef VectorFst<StdArc> StdVectorFst;