Home | History | Annotate | Download | only in lib

Lines Matching refs:weight

47 //   // Updates ordering of state s when weight changes, if necessary
247 typedef typename L::Weight Weight;
250 StateWeightCompare(const vector<Weight>* weights, const L &less)
258 const vector<Weight>* weights_;
263 // Shortest-first queue discipline, templated on the StateId and Weight is
264 // specialized to use the weight's natural order for the comparion function.
502 // the Weight type has the path property, will entertain the
505 AutoQueue(const Fst<Arc> &fst, const vector<typename Arc::Weight> *distance,
507 typedef typename Arc::Weight Weight;
508 typedef StateWeightCompare< StateId, NaturalLess<Weight> > Compare;
519 } else if ((props & kUnweighted) && (Weight::Properties() & kIdempotent)) {
529 NaturalLess<Weight> *less = 0;
531 if (distance && (Weight::Properties() & kPath)) {
532 less = new NaturalLess<Weight>;
653 typedef typename A::Weight Weight;
670 if (!less || ((*less)(arc.weight, Weight::One())))
673 if (!(Weight::Properties() & kIdempotent) ||
674 (arc.weight != Weight::Zero() && arc.weight != Weight::One()))
680 if (!(Weight::Properties() & kIdempotent) ||
681 (arc.weight != Weight::Zero() && arc.weight != Weight::One()))