Home | History | Annotate | Download | only in fst

Lines Matching refs:MutableFst

41 class MutableFst : public ExpandedFst<A> {
47 virtual MutableFst<A> &operator=(const Fst<A> &fst) = 0;
49 MutableFst<A> &operator=(const MutableFst<A> &fst) {
84 // Get a copy of this MutableFst. See Fst<>::Copy() for further doc.
85 virtual MutableFst<A> *Copy(bool safe = false) const = 0;
87 // Read an MutableFst from an input stream; return NULL on error.
88 static MutableFst<A> *Read(istream &strm, const FstReadOptions &opts) {
99 LOG(ERROR) << "MutableFst::Read: Not an MutableFst: " << ropts.source;
106 LOG(ERROR) << "MutableFst::Read: Unknown FST type \"" << hdr.FstType()
113 return static_cast<MutableFst<A> *>(fst);
116 // Read a MutableFst from a file; return NULL on error.
120 static MutableFst<A> *Read(const string &filename, bool convert = false,
126 LOG(ERROR) << "MutableFst::Read: Can't open file: " << filename;
137 return static_cast<MutableFst *>(ifst);
143 LOG(ERROR) << "MutableFst: bad convert type: " << convert_type;
144 return static_cast<MutableFst *>(ofst);
157 // the InitMutableArcIterator MutableFst method.
218 // MutableFst<A> case - abstract methods.
220 typename A::Weight Final(const MutableFst<A> &fst, typename A::StateId s) {
225 ssize_t NumArcs(const MutableFst<A> &fst, typename A::StateId s) {
230 ssize_t NumInputEpsilons(const MutableFst<A> &fst, typename A::StateId s) {
235 ssize_t NumOutputEpsilons(const MutableFst<A> &fst, typename A::StateId s) {
243 typedef MutableFst<StdArc> StdMutableFst;
246 // This is a helper class template useful for attaching a MutableFst
249 template <class I, class F = MutableFst<typename I::Arc> >