Home
last modified time | relevance | path

Searched refs:NumArcs (Results 1 – 25 of 39) sorted by relevance

12

/external/openfst/src/include/fst/
Dequal.h109 if (fst1.NumArcs(s1) != fst2.NumArcs(s2) ||
Dconst-fst.h84 size_t NumArcs(StateId s) const { return states_[s].narcs; } in NumArcs() function
214 impl->narcs_ = hdr.NumArcs(); in Read()
359 num_arcs += fst.NumArcs(siter.Value()); in WriteFst()
387 state.narcs = fst.NumArcs(siter.Value()); in WriteFst()
419 if (hdr.NumArcs() != num_arcs) { in WriteFst()
464 narcs_(fst.GetImpl()->NumArcs(s)), i_(0) {} in ArcIterator()
Darcsort.h59 arcs_.reserve(fst_.NumArcs(s)); in SetState()
142 virtual size_t NumArcs(StateId s) const { in NumArcs() function
143 return GetImpl()->GetFst().NumArcs(s); in NumArcs()
Dfst.h120 int64 NumArcs() const { return numarcs_; } in NumArcs() function
174 virtual size_t NumArcs(StateId) const = 0; // State's arc count
547 ssize_t NumArcs(const F &fst, typename F::Arc::StateId s) { in NumArcs() function
548 return fst.F::NumArcs(s); in NumArcs()
569 ssize_t NumArcs(const Fst<A> &fst, typename A::StateId s) { in NumArcs() function
570 return fst.NumArcs(s); in NumArcs()
847 virtual size_t NumArcs(StateId s) const { return impl_->NumArcs(s); } in NumArcs() function
Drandgen.h56 size_t n = fst.NumArcs(s); in operator()
127 fst.NumArcs(s))).Value(); in operator()
191 if ((fst_.NumArcs(rstate.state_id) == 0 && in Sample()
270 if ((fst_.NumArcs(rstate.state_id) == 0 && in Sample()
405 size_t NumArcs(StateId s) { in NumArcs() function
409 return CacheImpl<B>::NumArcs(s); in NumArcs()
454 size_t narcs = fst_->NumArcs(rstate.state_id); in Expand()
Dedit-fst.h137 size_t NumArcs(StateId s, const WrappedFstT *wrapped) const { in NumArcs() function
140 wrapped->NumArcs(s) : edits_.NumArcs(it->second); in NumArcs()
197 size_t num_arcs = edits_.NumArcs(internal_id); in AddArc()
463 size_t NumArcs(StateId s) const { in NumArcs() function
464 return data_->NumArcs(s, wrapped_); in NumArcs()
Dminimize.h82 if (fst_.NumArcs(x) < fst_.NumArcs(y)) return true; in operator()
83 if (fst_.NumArcs(x) > fst_.NumArcs(y)) return false; in operator()
238 if (Tr_.NumArcs(s + 1)) in Split()
Dexpanded-fst.h100 ssize_t NumArcs(const ExpandedFst<A> &fst, typename A::StateId s) { in NumArcs() function
101 return fst.NumArcs(s); in NumArcs()
Dcompose-filter.h251 size_t na1 = internal::NumArcs(fst1_, s1); in SetState()
336 size_t na2 = internal::NumArcs(fst2_, s2); in SetState()
424 size_t na1 = internal::NumArcs(fst1_, s1); in SetState()
429 size_t na2 = internal::NumArcs(fst2_, s2); in SetState()
Dconcat.h81 fst1->ReserveArcs(s1, fst2.NumArcs(s2)); in Concat()
146 fst2->ReserveArcs(s2, fst1.NumArcs(s1) + (final != Weight::Zero() ? 1 : 0)); in Concat()
Dstate-map.h251 size_t NumArcs(StateId s) { in NumArcs() function
254 return CacheImpl<B>::NumArcs(s); in NumArcs()
462 arcs_.reserve(fst_.NumArcs(s)); in SetState()
546 arcs_.reserve(fst_.NumArcs(s)); in SetState()
Dadd-on.h188 size_t NumArcs(StateId s) const { return fst_.NumArcs(s); } in NumArcs() function
Dcomplement.h100 size_t NumArcs(StateId s) const { in NumArcs() function
104 return fst_->NumArcs(s - 1) + 1; in NumArcs()
Dcompact-fst.h178 size_t NumArcs() const { return narcs_; } in NumArcs() function
369 data->narcs_ = hdr.NumArcs(); in Read()
565 size_t NumArcs(StateId s) { in NumArcs() function
567 return CacheImpl<A>::NumArcs(s); in NumArcs()
653 hdr.SetNumArcs(data_->NumArcs()); in Write()
940 num_arcs = impl->Data()->NumArcs(); in WriteFst()
998 compacts += fst.NumArcs(s); in WriteFst()
Drmfinalepsilon.h93 if (arcs.size() < fst->NumArcs(s)) { in RmFinalEpsilon()
Dcompose.h170 size_t NumArcs(StateId s) { in NumArcs() function
173 return CacheImpl<A>::NumArcs(s); in NumArcs()
272 internal::NumArcs(fst1_, s1) > internal::NumArcs(fst2_, s2))) in Expand()
Dmutable-fst.h225 ssize_t NumArcs(const MutableFst<A> &fst, typename A::StateId s) { in NumArcs() function
226 return fst.NumArcs(s); in NumArcs()
Drational.h100 size_t NumArcs(StateId s) { return Replace()->NumArcs(s); } in NumArcs() function
Dstate-reachable.h75 if (fst_.NumArcs(s) > 0) { in InitState()
Dunion.h81 fst1->ReserveArcs(s1, fst2.NumArcs(s2)); in Union()
Daccumulator.h260 if (fst.NumArcs(s) >= arc_limit_) {
485 if ((weights_ == 0) && (fst_->NumArcs(s) >= arc_limit_)) {
487 weights_->reserve(fst_->NumArcs(s) + 1);
/external/openfst/src/include/fst/extensions/pdt/
Dinfo.h54 int64 NumArcs() const { return narcs_; } in NumArcs() function
153 cout << "# of arcs" << pdtinfo.NumArcs() << endl; in PrintPdtInfo()
/external/openfst/src/test/
Dfst_test.h92 CHECK_EQ(fst.NumArcs(s), s); in TestBase()
160 CHECK_EQ(cfst2->NumArcs(s), 0); in TestMutable()
/external/openfst/src/include/fst/script/
Dinfo-impl.h187 int64 NumArcs() const { CheckLong(); return narcs_; } in NumArcs() function
253 os << "# of arcs" << fstinfo.NumArcs() << endl;
/external/openfst/src/include/fst/extensions/ngram/
Dngram-fst.h148 size_t NumArcs(StateId state, NGramFstInst<A> *inst = NULL) const {
368 num_futures += fst.NumArcs(state) - fst.NumInputEpsilons(state); in NGramFstImpl()
677 virtual size_t NumArcs(StateId s) const { in NumArcs() function
678 return GetImpl()->NumArcs(s, &inst_); in NumArcs()

12