Home | History | Annotate | Download | only in fst

Lines Matching defs:Arc

43 //   typedef F::Arc Arc;
44 // typedef typename Arc::StateId StateId;
45 // typedef typename Arc::Label Label;
46 // typedef typename Arc::Weight Weight;
76 // const A& Value() const; // Current arc (when !Done)
77 // void Next(); // Advance to next arc (when !Done)
100 // Matcher interface, templated on the Arc definition; used
106 typedef A Arc;
134 // Arc(kNoLabel, 0, Weight::One(), current_state) as well as any
136 // Arc(0, kNoLabel, Weight::One(), current_state) is instead matched.
138 class SortedMatcher : public MatcherBase<typename F::Arc> {
141 typedef typename F::Arc Arc;
142 typedef typename Arc::StateId StateId;
143 typedef typename Arc::Label Label;
144 typedef typename Arc::Weight Weight;
274 const Arc& Value() const {
303 virtual const Arc& Value_() const { return Value(); }
314 size_t narcs_; // Current state arc count
315 Arc loop_; // For non-consuming symbols
316 bool current_loop_; // Current arc is the implicit loop
323 // Returns true iff match to match_label_. Positions arc iterator at
395 class RhoMatcher : public MatcherBase<typename M::Arc> {
398 typedef typename M::Arc Arc;
399 typedef typename Arc::StateId StateId;
400 typedef typename Arc::Label Label;
401 typedef typename Arc::Weight Weight;
473 const Arc& Value() const {
508 virtual const Arc& Value_() const { return Value(); }
517 mutable Arc rho_arc_; // Arc to return when rho match
569 class SigmaMatcher : public MatcherBase<typename M::Arc> {
572 typedef typename M::Arc Arc;
573 typedef typename Arc::StateId StateId;
574 typedef typename Arc::Label Label;
575 typedef typename Arc::Weight Weight;
651 const Arc& Value() const {
696 virtual const Arc& Value_() const { return Value(); }
705 mutable Arc sigma_arc_; // Arc to return when sigma match
758 class PhiMatcher : public MatcherBase<typename M::Arc> {
761 typedef typename M::Arc Arc;
762 typedef typename Arc::StateId StateId;
763 typedef typename Arc::Label Label;
764 typedef typename Arc::Weight Weight;
821 const Arc& Value() const {
825 phi_arc_ = Arc(kNoLabel, 0, Weight::One(), state_);
864 virtual const Arc& Value_() const { return Value(); }
873 mutable Arc phi_arc_; // Arc to return
993 typedef typename M::Arc Arc;
994 typedef typename Arc::StateId StateId;
995 typedef typename Arc::Label Label;
996 typedef typename Arc::Weight Weight;
1046 const Arc& Value() const {
1105 bool current_loop_; // Current arc is the implicit loop
1106 mutable Arc loop_; // For non-consuming symbols
1154 // StdArc &arc = matcher.Value();
1161 typedef typename F::Arc Arc;
1162 typedef typename Arc::StateId StateId;
1163 typedef typename Arc::Label Label;
1164 typedef typename Arc::Weight Weight;
1177 Matcher(MatcherBase<Arc>* base_matcher) { base_ = base_matcher; }
1189 const Arc& Value() const { return base_->Value(); }
1196 MatcherBase<Arc> *base_;
1198 void operator=(const Matcher<Arc> &); // disallow