Home
last modified time | relevance | path

Searched refs:narcs (Results 1 – 9 of 9) sorted by relevance

/external/openfst/src/include/fst/
Dvector-fst.h99 size_t narcs = 0; in DeleteStates() local
104 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() local
345 ReadType(strm, &narcs); in Read()
351 impl->ReserveArcs(s, narcs); in Read()
[all …]
Dreplace-util.h113 void ReplaceBySize(size_t nstates, size_t narcs, size_t nnonterms);
139 size_t narcs; // # of arcs member
151 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() argument
492 stats_[j].narcs <= narcs && in ReplaceBySize()
Dconst-fst.h84 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) member
184 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()
Dstate-map.h470 size_t narcs = 0; in SetState() local
472 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()
Dreplace.h1071 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()
Daccumulator.h265 ssize_t narcs = 0; variable
270 if (++narcs % arc_period_ == 0) {
Drandgen.h454 size_t narcs = fst_->NumArcs(rstate.state_id); in Expand() local
460 if (pos < narcs) { // regular transition in Expand()
Dcache.h418 data->narcs = state->arcs.size(); in InitArcIterator()
419 data->arcs = data->narcs > 0 ? &(state->arcs[0]) : 0; in InitArcIterator()
Dfst.h436 size_t narcs; // ... and arc count member
474 return data_.base ? data_.base->Done() : i_ >= data_.narcs; in Done()