Home | History | Annotate | Download | only in lib

Lines Matching full:stateid

102   typedef typename A::StateId StateId;
127 StateId Start() {
129 StateId start = ComputeStart();
137 Weight Final(StateId s) {
145 virtual void Expand(StateId s) = 0;
147 size_t NumArcs(StateId s) {
153 size_t NumInputEpsilons(StateId s) {
159 size_t NumOutputEpsilons(StateId s) {
165 void InitArcIterator(StateId s, ArcIteratorData<A> *data) {
176 virtual StateId ComputeStart() = 0;
177 virtual Weight ComputeFinal(StateId s) = 0;
207 typedef typename A::StateId StateId;
211 StateTuple(StateId s1, StateId s2, int f)
213 StateId state_id1; // state Id on fst1
214 StateId state_id2; // state Id on fst2
222 // NB: if 'tuple' is not in 'table_', the pair (tuple, StateId()) is
224 // StateId is a built-in type, the explicit default constructor call
225 // StateId() returns 0.
226 StateId &operator[](const StateTuple &tuple) {
256 StateId,
271 // simply mapped to StateId s1. Hence, we use an STL vector as a
278 typedef typename A::StateId StateId;
281 typedef typename A::StateId StateId;
283 StateTuple(StateId s1, StateId s2, int /* f */)
285 StateId state_id1; // state Id on fst1
286 StateId state_id2; // state Id on fst2
296 StateId &operator[](const StateTuple &tuple) {
297 StateId index = Fst1IsString ? tuple.state_id1 : tuple.state_id2;
298 if (index >= (StateId)data_.size()) {
306 vector<StateId> data_;
330 typedef typename A::StateId StateId;
420 StateId FindState(const StateTuple& tuple) {
421 StateId &assoc_value = state_tuple_table_[tuple];
431 void AddArc(StateId s, const A &arca, const A &arcb, int f,
452 void Expand(StateId s) {
454 StateId s1 = tuple.state_id1;
455 StateId s2 = tuple.state_id2;
475 void OrderedExpand(StateId s, const Fst<A> *fsta, StateId sa,
476 const Fst<A> *fstb, StateId sb, int f, bool find_input) {
536 StateId sf = sa; // Start of current failure transition.
622 StateId ComputeStart() {
623 StateId s1 = ComposeFstImplBase<A>::fst1_->Start();
624 StateId s2 = ComposeFstImplBase<A>::fst2_->Start();
631 Weight ComputeFinal(StateId s) {
641 // Maps from StateId to StateTuple.
644 // Maps from StateTuple to StateId.
689 typedef typename A::StateId StateId;
707 virtual StateId Start() const { return impl_->Start(); }
709 virtual Weight Final(StateId s) const { return impl_->Final(s); }
711 virtual size_t NumArcs(StateId s) const { return impl_->NumArcs(s); }
713 virtual size_t NumInputEpsilons(StateId s) const {
717 virtual size_t NumOutputEpsilons(StateId s) const {
747 virtual void InitArcIterator(StateId s, ArcIteratorData<A> *data) const {
840 typedef typename A::StateId StateId;
842 ArcIterator(const ComposeFst<A> &fst, StateId s)