Home
last modified time | relevance | path

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

/external/openfst/src/include/fst/
Dstate-map.h461 arcs_.clear(); in SetState()
462 arcs_.reserve(fst_.NumArcs(s)); in SetState()
464 arcs_.push_back(aiter.Value()); in SetState()
469 sort(arcs_.begin(), arcs_.end(), comp_); in SetState()
471 for (size_t i = 0; i < arcs_.size(); ++i) { in SetState()
472 if (narcs > 0 && equal_(arcs_[i], arcs_[narcs - 1])) { in SetState()
473 arcs_[narcs - 1].weight = Plus(arcs_[narcs - 1].weight, in SetState()
474 arcs_[i].weight); in SetState()
476 arcs_[narcs++] = arcs_[i]; in SetState()
479 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.h59 : states_region_(0), arcs_region_(0), states_(0), arcs_(0), nstates_(0), 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
177 arcs_region_ = MappedFile::Allocate(narcs_ * sizeof(*arcs_)); in ConstFstImpl()
179 arcs_ = reinterpret_cast<A*>(arcs_region_->mutable_data()); in ConstFstImpl()
196 arcs_[pos++] = arc; in ConstFstImpl()
248 impl->arcs_ = reinterpret_cast<A*>(impl->arcs_region_->mutable_data()); in Read()
463 : arcs_(fst.GetImpl()->Arcs(s)), in ArcIterator()
468 const A& Value() const { return arcs_[i_]; } in Value()
[all …]
Drmepsilon.h87 vector<Arc> &Arcs() { return arcs_; } in Arcs()
146 vector<Arc> arcs_; // Arcs of state being expanded variable
162 arcs_.clear(); in Expand()
194 (element, pair<StateId, size_t>(expand_id_, arcs_.size()))); in Expand()
195 arcs_.push_back(arc); in Expand()
198 Weight &w = arcs_[((*it).second).second].weight; in Expand()
202 ((*it).second).second = arcs_.size(); in Expand()
203 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.h592 : arcs_(fst.GetImpl()->GetState(s)->arcs), i_(0) {} in ArcIterator()
594 bool Done() const { return i_ >= arcs_.size(); } in Done()
596 const A& Value() const { return arcs_[i_]; } in Value()
613 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_;