Searched refs:narcs (Results 1 – 9 of 9) sorted by relevance
99 size_t narcs = 0; in DeleteStates() local104 if (i != narcs) in DeleteStates()105 arcs[narcs] = arcs[i]; in DeleteStates()106 ++narcs; in DeleteStates()114 arcs.resize(narcs); in DeleteStates()152 data->narcs = states_[s]->arcs.size(); in InitArcIterator()153 data->arcs = data->narcs > 0 ? &states_[s]->arcs[0] : 0; in InitArcIterator()344 int64 narcs; in Read() local345 ReadType(strm, &narcs); in Read()351 impl->ReserveArcs(s, narcs); in Read()[all …]
113 void ReplaceBySize(size_t nstates, size_t narcs, size_t nnonterms);139 size_t narcs; // # of arcs member151 narcs(0), in ReplaceStats()294 ++stats_[i].narcs; in GetDependencies()335 stats_[i].narcs += (stats_[j].narcs + 1) * ni; // narcs - 1 + 2 (eps) in UpdateStats()478 void ReplaceUtil<Arc>::ReplaceBySize(size_t nstates, size_t narcs, in ReplaceBySize() argument492 stats_[j].narcs <= narcs && in ReplaceBySize()
84 size_t NumArcs(StateId s) const { return states_[s].narcs; } in NumArcs()104 data->narcs = states_[s].narcs; in InitArcIterator()115 Unsigned narcs; // Number of arcs (per state) member184 states_[s].narcs = 0; in ConstFstImpl()191 ++states_[s].narcs; in ConstFstImpl()387 state.narcs = fst.NumArcs(siter.Value()); in WriteFst()391 pos += state.narcs; in WriteFst()
470 size_t narcs = 0; in SetState() local472 if (narcs > 0 && equal_(arcs_[i], arcs_[narcs - 1])) { in SetState()473 arcs_[narcs - 1].weight = Plus(arcs_[narcs - 1].weight, in SetState()476 arcs_[narcs++] = arcs_[i]; in SetState()479 arcs_.resize(narcs); in SetState()
1071 num_arcs_ = cache_data_.narcs; in ArcIterator()1096 num_arcs_ = local_data_.narcs; in ArcIterator()1101 offset_ = num_arcs_ - local_data_.narcs; in ArcIterator()1139 offset_ = num_arcs_ - local_data_.narcs; in Init()
265 ssize_t narcs = 0; variable270 if (++narcs % arc_period_ == 0) {
454 size_t narcs = fst_->NumArcs(rstate.state_id); in Expand() local460 if (pos < narcs) { // regular transition in Expand()
418 data->narcs = state->arcs.size(); in InitArcIterator()419 data->arcs = data->narcs > 0 ? &(state->arcs[0]) : 0; in InitArcIterator()
436 size_t narcs; // ... and arc count member474 return data_.base ? data_.base->Done() : i_ >= data_.narcs; in Done()