Lines Matching full:stateid
45 typedef typename A::StateId StateId;
47 StateId state_;
51 StateId node_state_;
53 StateId context_state_;
77 typedef typename A::StateId StateId;
87 NGramFstImpl(const Fst<A> &fst, vector<StateId>* order_out);
136 StateId Start() const {
140 Weight Final(StateId state) const {
148 size_t NumArcs(StateId state, NGramFstInst<A> *inst = NULL) const {
158 size_t NumInputEpsilons(StateId state) const {
164 size_t NumOutputEpsilons(StateId state) const {
168 StateId NumStates() const {
197 void SetInstFuture(StateId state, NGramFstInst<A> *inst) const {
235 const vector<Label> &GetContext(StateId s, NGramFstInst<A> *inst) const {
245 void GetStates(const vector<Label>& context, vector<StateId> *states) const;
248 StateId Transition(const vector<Label> &context, Label future) const;
279 NGramFstImpl<A>::NGramFstImpl(const Fst<A> &fst, vector<StateId>* order_out)
284 typedef typename Arc::StateId StateId;
303 StateId unigram = fst.Start();
321 queue<pair<StateId, Label> > label_queue;
331 pair<StateId, Label> &now = label_queue.front();
367 const StateId &state = siter.Value();
454 queue<StateId> context_q;
456 StateId state_number = 0;
458 const StateId &state = context_q.front();
563 inline typename A::StateId NGramFstImpl<A>::Transition(
598 vector<typename A::StateId>* states) const {
639 typedef typename A::StateId StateId;
647 NGramFst(const Fst<A> &fst, vector<StateId>* order_out)
667 const vector<Label> GetContext(StateId s) const {
673 void GetStates(const vector<Label>& context, vector<StateId> *state) const {
677 virtual size_t NumArcs(StateId s) const {
716 StateId s, ArcIteratorData<A>* data) const;
742 NGramFst<A>::InitArcIterator(StateId s, ArcIteratorData<A>* data) const {
754 typedef typename A::StateId StateId;
792 virtual void SetState_(StateId s) {
862 typedef typename A::StateId StateId;
865 ArcIterator(const NGramFst<A> &fst, StateId state)
879 StateId state = (inst_.node_ == 0) ? i_ : i_ - 1;
964 typedef typename A::StateId StateId;
970 StateId Value() const { return s_; }
976 virtual StateId Value_() const { return Value(); }
980 StateId s_, num_states_;