Lines Matching refs:StateId

48   typedef typename A::StateId StateId;
59 const Partition<typename A::StateId>& partition,
64 bool operator()(const StateId x, const StateId y) const {
100 const Partition<typename A::StateId>& partition_;
119 typedef typename A::StateId StateId;
120 typedef typename A::StateId ClassId;
133 const Partition<StateId>& partition() const {
142 ArcIterCompare(const Partition<StateId>& partition)
157 const Partition<StateId>& partition_;
172 typedef map<StateId, StateId, StateComparator<A> > EquivalenceMap;
177 StateId class_id = P_.AddClass();
182 StateId s = siter.Value();
222 for (PartitionIterator<StateId> siter(P_, C);
224 StateId s = siter.Value();
241 StateId from_state = aiter->Value().nextstate - 1;
246 StateId from_class = P_.class_id(from_state);
275 Partition<StateId> P_;
301 typedef typename A::StateId StateId;
302 typedef typename A::StateId ClassId;
310 const Partition<StateId>& partition() {
325 bool InitState(StateId s, StateId root) {
330 if (s >= (StateId)num_states_) num_states_ = s + 1;
335 bool TreeArc(StateId s, const A& arc) {
340 bool BackArc(StateId s, const A& arc) {
345 bool ForwardOrCrossArc(StateId s, const A& arc) {
352 void FinishState(StateId s, StateId parent, const A* parent_arc) {
354 StateId h = height_[s] + 1;
357 if (h > (StateId)max_height_) max_height_ = h;
366 const vector<StateId>& height() const { return height_; }
371 vector<StateId> height_;
387 const vector<StateId>& hstates = hvisitor.height();
394 typedef map<StateId, StateId, StateComparator<A> > EquivalenceMap;
403 PartitionIterator<StateId> siter(partition_, h);
406 const StateId s = siter.Value();
416 const StateId s = siter.Value();
417 const StateId old_class = partition_.class_id(s);
418 const StateId new_class = equiv_classes[s];
431 Partition<StateId> partition_;
442 const Partition<typename A::StateId>& partition, MutableFst<A>* fst) {
443 typedef typename A::StateId StateId;
445 vector<StateId> state_map(partition.num_classes());
447 PartitionIterator<StateId> siter(partition, i);
453 for (PartitionIterator<StateId> siter(partition, c);
455 StateId s = siter.Value();
475 typedef typename A::StateId StateId;
492 CyclicMinimizer<A, LifoQueue<StateId> > minimizer(*fst);