Lines Matching refs:states_
59 : states_region_(0), arcs_region_(0), states_(0), arcs_(0), nstates_(0), in ConstFstImpl()
80 Weight Final(StateId s) const { return states_[s].final; } in Final()
84 size_t NumArcs(StateId s) const { return states_[s].narcs; } in NumArcs()
86 size_t NumInputEpsilons(StateId s) const { return states_[s].niepsilons; } in NumInputEpsilons()
88 size_t NumOutputEpsilons(StateId s) const { return states_[s].noepsilons; } in NumOutputEpsilons()
92 A *Arcs(StateId s) { return arcs_ + states_[s].pos; } in Arcs()
103 data->arcs = arcs_ + states_[s].pos; in InitArcIterator()
104 data->narcs = states_[s].narcs; in InitArcIterator()
133 State *states_; // States represenation variable
176 states_region_ = MappedFile::Allocate(nstates_ * sizeof(*states_)); in ConstFstImpl()
178 states_ = reinterpret_cast<State*>(states_region_->mutable_data()); in ConstFstImpl()
182 states_[s].final = fst.Final(s); in ConstFstImpl()
183 states_[s].pos = pos; in ConstFstImpl()
184 states_[s].narcs = 0; in ConstFstImpl()
185 states_[s].niepsilons = 0; in ConstFstImpl()
186 states_[s].noepsilons = 0; in ConstFstImpl()
191 ++states_[s].narcs; in ConstFstImpl()
193 ++states_[s].niepsilons; in ConstFstImpl()
195 ++states_[s].noepsilons; in ConstFstImpl()
233 impl->states_ = reinterpret_cast<State*>( in Read()