Lines Matching defs:StateId

49 //   StateId FindState(const StateTuple &);
51 // const StateTuple<StateId> &Tuple(StateId) const;
53 // StateId Size() const;
60 // typedef typename S StateId;
71 class HashStateTable : public HashBiTable<typename T::StateId, T, H> {
74 typedef typename StateTuple::StateId StateId;
75 using HashBiTable<StateId, T, H>::FindId;
76 using HashBiTable<StateId, T, H>::FindEntry;
77 using HashBiTable<StateId, T, H>::Size;
79 HashStateTable() : HashBiTable<StateId, T, H>() {}
83 : HashBiTable<StateId, T, H>(table_size) {}
85 StateId FindState(const StateTuple &tuple) { return FindId(tuple); }
86 const StateTuple &Tuple(StateId s) const { return FindEntry(s); }
94 : public CompactHashBiTable<typename T::StateId, T, H> {
97 typedef typename StateTuple::StateId StateId;
98 using CompactHashBiTable<StateId, T, H>::FindId;
99 using CompactHashBiTable<StateId, T, H>::FindEntry;
100 using CompactHashBiTable<StateId, T, H>::Size;
102 CompactHashStateTable() : CompactHashBiTable<StateId, T, H>() {}
106 : CompactHashBiTable<StateId, T, H>(table_size) {}
108 StateId FindState(const StateTuple &tuple) { return FindId(tuple); }
109 const StateTuple &Tuple(StateId s) const { return FindEntry(s); }
120 : public VectorBiTable<typename T::StateId, T, FP> {
123 typedef typename StateTuple::StateId StateId;
124 using VectorBiTable<StateId, T, FP>::FindId;
125 using VectorBiTable<StateId, T, FP>::FindEntry;
126 using VectorBiTable<StateId, T, FP>::Size;
127 using VectorBiTable<StateId, T, FP>::Fingerprint;
131 : VectorBiTable<StateId, T, FP>(fp, table_size) {}
133 StateId FindState(const StateTuple &tuple) { return FindId(tuple); }
134 const StateTuple &Tuple(StateId s) const { return FindEntry(s); }
146 : public VectorHashBiTable<typename T::StateId, T, S, FP, H> {
149 typedef typename StateTuple::StateId StateId;
150 using VectorHashBiTable<StateId, T, S, FP, H>::FindId;
151 using VectorHashBiTable<StateId, T, S, FP, H>::FindEntry;
152 using VectorHashBiTable<StateId, T, S, FP, H>::Size;
153 using VectorHashBiTable<StateId, T, S, FP, H>::Selector;
154 using VectorHashBiTable<StateId, T, S, FP, H>::Fingerprint;
155 using VectorHashBiTable<StateId, T, S, FP, H>::Hash;
160 : VectorHashBiTable<StateId, T, S, FP, H>(
163 StateId FindState(const StateTuple &tuple) { return FindId(tuple); }
164 const StateTuple &Tuple(StateId s) const { return FindEntry(s); }
173 class ErasableStateTable : public ErasableBiTable<typename T::StateId, T, F> {
176 typedef typename StateTuple::StateId StateId;
177 using ErasableBiTable<StateId, T, F>::FindId;
178 using ErasableBiTable<StateId, T, F>::FindEntry;
179 using ErasableBiTable<StateId, T, F>::Size;
180 using ErasableBiTable<StateId, T, F>::Erase;
182 ErasableStateTable() : ErasableBiTable<StateId, T, F>() {}
183 StateId FindState(const StateTuple &tuple) { return FindId(tuple); }
184 const StateTuple &Tuple(StateId s) const { return FindEntry(s); }
197 // typedef typename A::StateId StateId;
198 // typedef ComposeStateTuple<StateId> StateTuple;
204 // StateId FindState(const StateTuple &);
206 // const StateTuple<StateId> &Tuple(StateId) const;
208 // StateId Size() const;
216 typedef S StateId;
223 ComposeStateTuple(StateId s1, StateId s2, const FilterState &f)
226 StateId state_id1; // State Id on fst1
227 StateId state_id2; // State Id on fst2
267 CompactHashStateTable<ComposeStateTuple<typename A::StateId, F>,
268 ComposeHash<typename A::StateId, F> > >
272 typedef typename A::StateId StateId;
274 typedef ComposeStateTuple<StateId, F> StateTuple;
293 typedef S StateId;
303 ComposeFingerprint(StateId nstates1, StateId nstates2)
321 typedef S StateId;
333 typedef S StateId;
347 VectorStateTable<ComposeStateTuple<typename A::StateId, F>,
348 ComposeFingerprint<typename A::StateId, F> > {
351 typedef typename A::StateId StateId;
353 typedef ComposeStateTuple<StateId, F> StateTuple;
355 ComposeFingerprint<StateId, F> > StateTable;
360 : StateTable(new ComposeFingerprint<StateId, F>(CountStates(fst1),
365 : StateTable(new ComposeFingerprint<StateId, F>(table.Fingerprint())) {}
381 VectorStateTable<ComposeStateTuple<typename A::StateId, F>,
382 ComposeState1Fingerprint<typename A::StateId, F> > {
385 typedef typename A::StateId StateId;
387 typedef ComposeStateTuple<StateId, F> StateTuple;
389 ComposeState1Fingerprint<StateId, F> > StateTable;
423 VectorStateTable<ComposeStateTuple<typename A::StateId, F>,
424 ComposeState2Fingerprint<typename A::StateId, F> > {
427 typedef typename A::StateId StateId;
429 typedef ComposeStateTuple<StateId, F> StateTuple;
431 ComposeState2Fingerprint<StateId, F> > StateTable;
457 // An ErasableStateTable over composition tuples. The Erase(StateId) method
463 ErasableStateTable<ComposeStateTuple<typename A::StateId, F>,
464 ComposeHash<typename A::StateId, F> > {
467 typedef typename A::StateId StateId;
469 typedef ComposeStateTuple<StateId, F> StateTuple;