Lines Matching full:stateid
55 // typedef typename A::StateId StateId;
56 // typedef ReplaceStateTuple<StateId, PrefixId> StateTuple;
67 // StateId FindState(const StateTuple &tuple);
70 // const StateTuple &Tuple(StateId id) const;
78 typedef S StateId;
84 ReplaceStateTuple(PrefixId p, StateId f, StateId s)
88 StateId fst_id; // current fst being walked
89 StateId fst_state; // current state in fst being walked, not to be
175 typedef typename A::StateId StateId;
178 typedef ReplaceStateTuple<StateId, P> StateTuple;
179 typedef VectorHashStateTable<ReplaceStateTuple<StateId, P>,
180 ReplaceRootSelector<StateId, P>,
181 ReplaceFstStateFingerprint<StateId, P>,
182 ReplaceFingerprint<StateId, P> > StateTable;
198 new ReplaceRootSelector<StateId, P>,
199 new ReplaceFstStateFingerprint<StateId, P>,
200 new ReplaceFingerprint<StateId, P>(&cumulative_size_array_),
209 new ReplaceRootSelector<StateId, P>,
210 new ReplaceFstStateFingerprint<StateId, P>,
211 new ReplaceFingerprint<StateId, P>(&cumulative_size_array_),
220 StateId FindState(const StateTuple &tuple) {
224 const StateTuple &Tuple(StateId id) const {
229 StateId root_size_;
239 ReplaceStateTuple<typename A::StateId, P>,
240 ReplaceHash<typename A::StateId, P> > {
243 typedef typename A::StateId StateId;
246 typedef ReplaceStateTuple<StateId, P> StateTuple;
248 ReplaceHash<StateId, PrefixId> > StateTable;
330 typedef typename A::StateId StateId;
337 typedef ReplaceStateTuple<StateId, PrefixId> StateTuple;
474 StateId Start() {
481 StateId fst_start = fst->Start();
486 StateId start = state_table_->FindState(
497 Weight Final(StateId s) {
502 StateId fst_state = tuple.fst_state;
512 size_t NumArcs(StateId s) {
545 size_t NumInputEpsilons(StateId s) {
582 size_t NumOutputEpsilons(StateId s) {
626 void InitArcIterator(StateId s, ArcIteratorData<A> *data) {
637 void Expand(StateId s) {
663 void Expand(StateId s, const StateTuple &tuple,
692 StateId fst_state = tuple.fst_state;
729 StateId nextstate = flags & kArcNextStateValue
746 StateId nt_start = nt_fst->Start();
748 StateId nt_nextstate = flags & kArcNextStateValue
758 StateId nextstate = flags & kArcNextStateValue
793 PrefixTuple(Label f, StateId s) : fst_id(f), nextstate(s) {}
796 StateId nextstate;
810 void Push(StateId fst_id, StateId nextstate) {
884 PrefixId PushPrefix(StackPrefix prefix, Label fst_id, StateId nextstate) {
964 typedef typename A::StateId StateId;
989 virtual void InitArcIterator(StateId
1054 typedef typename A::StateId StateId;
1056 ArcIterator(const ReplaceFst<A, T> &fst, StateId s)
1212 StateId state_; // State in the FST
1237 typedef typename A::StateId StateId;
1323 virtual void SetState_(StateId s) {
1401 StateId s_; // Current state