Home
last modified time | relevance | path

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

/external/openfst/src/include/fst/
Dstate-map.h459 arcs_.clear(); in SetState()
460 arcs_.reserve(fst_.NumArcs(s)); in SetState()
462 arcs_.push_back(aiter.Value()); in SetState()
467 sort(arcs_.begin(), arcs_.end(), comp_); in SetState()
469 for (size_t i = 0; i < arcs_.size(); ++i) { in SetState()
470 if (narcs > 0 && equal_(arcs_[i], arcs_[narcs - 1])) { in SetState()
471 arcs_[narcs - 1].weight = Plus(arcs_[narcs - 1].weight, in SetState()
472 arcs_[i].weight); in SetState()
474 arcs_[narcs++] = arcs_[i]; in SetState()
477 arcs_.resize(narcs); in SetState()
[all …]
Darcsort.h58 arcs_.clear(); in SetState()
59 arcs_.reserve(fst_.NumArcs(s)); in SetState()
61 arcs_.push_back(aiter.Value()); in SetState()
62 sort(arcs_.begin(), arcs_.end(), comp_); in SetState()
65 bool Done() const { return i_ >= arcs_.size(); } in Done()
66 const Arc &Value() const { return arcs_[i_]; } in Value()
76 vector<Arc> arcs_; variable
Dconst-fst.h58 : states_(0), arcs_(0), nstates_(0), narcs_(0), start_(kNoStateId) { in ConstFstImpl()
73 delete[] arcs_; in ~ConstFstImpl()
92 A *Arcs(StateId s) { return arcs_ + states_[s].pos; } in Arcs()
103 data->arcs = arcs_ + states_[s].pos; in InitArcIterator()
134 A *arcs_; // Arcs representation variable
179 arcs_ = new A[narcs_]; in ConstFstImpl()
196 arcs_[pos++] = arc; in ConstFstImpl()
216 impl->arcs_ = new A[impl->narcs_]; in Read()
242 strm.read(reinterpret_cast<char *>(impl->arcs_), b); in Read()
449 : arcs_(fst.GetImpl()->Arcs(s)), in ArcIterator()
[all …]
Drmepsilon.h87 vector<Arc> &Arcs() { return arcs_; } in Arcs()
147 vector<Arc> arcs_; // Arcs of state being expanded variable
163 arcs_.clear(); in Expand()
195 (element, pair<StateId, size_t>(expand_id_, arcs_.size()))); in Expand()
196 arcs_.push_back(arc); in Expand()
199 Weight &w = arcs_[((*it).second).second].weight; in Expand()
203 ((*it).second).second = arcs_.size(); in Expand()
204 arcs_.push_back(arc); in Expand()
Dreplace.h1057 : fst_(fst), state_(s), pos_(0), offset_(0), flags_(0), arcs_(0), in ArcIterator()
1072 arcs_ = cache_data_.arcs; // 'arcs_' is a ptr to the cached arcs. in ArcIterator()
1086 arcs_ = local_data_.arcs; in ArcIterator()
1123 arcs_ = cache_data_.arcs; // 'arcs_' is a pointer to the cached arcs. in ExpandAndCache()
1132 arcs_ = local_data_.arcs; in Init()
1159 const A& arc = arcs_[pos_ - offset_]; in Value()
1224 mutable const A* arcs_; // Array of arcs variable
Dvector-fst.h588 : arcs_(fst.GetImpl()->GetState(s)->arcs), i_(0) {} in ArcIterator()
590 bool Done() const { return i_ >= arcs_.size(); } in Done()
592 const A& Value() const { return arcs_[i_]; } in Value()
609 const vector<A>& arcs_;
/external/srec/tools/thirdparty/OpenFst/fst/lib/
Dconst-fst.h44 : states_(0), arcs_(0), nstates_(0), narcs_(0), start_(kNoStateId) { in ConstFstImpl()
53 delete[] arcs_; in ~ConstFstImpl()
72 A *Arcs(StateId s) { return arcs_ + states_[s].pos; } in Arcs()
83 data->arcs = arcs_ + states_[s].pos; in InitArcIterator()
109 A *arcs_; // Arcs representation variable
138 arcs_ = new A[narcs_]; in ConstFstImpl()
155 arcs_[pos++] = arc; in ConstFstImpl()
171 impl->arcs_ = new A[impl->narcs_]; in Read()
187 strm.read(reinterpret_cast<char *>(impl->arcs_), b); in Read()
212 strm.write(reinterpret_cast<char *>(arcs_), narcs_ * sizeof(A)); in Write()
[all …]
Drmepsilon.h72 vector<Arc> &Arcs() { return arcs_; } in Arcs()
129 vector<Arc> arcs_; // Arcs of state being expanded variable
141 arcs_.clear(); in Expand()
168 (element, pair<StateId, ssize_t>(source, arcs_.size()))); in Expand()
169 arcs_.push_back(arc); in Expand()
172 Weight &w = arcs_[((*it).second).second].weight; in Expand()
176 ((*it).second).second = arcs_.size(); in Expand()
177 arcs_.push_back(arc); in Expand()
Dvector-fst.h698 : arcs_(fst.impl_->GetState(s)->arcs), i_(0) {} in ArcIterator()
700 bool Done() const { return i_ >= arcs_.size(); } in Done()
702 const A& Value() const { return arcs_[i_]; } in Value()
711 const vector<A>& arcs_;