HomeSort by relevance Sort by last modified time
    Searched defs:Arc (Results 1 - 25 of 63) sorted by null

1 2 3

  /external/openfst/src/include/fst/
closure.h 45 template<class Arc>
46 void Closure(MutableFst<Arc> *fst, ClosureType closure_type) {
47 typedef typename Arc::StateId StateId;
48 typedef typename Arc::Label Label;
49 typedef typename Arc::Weight Weight;
53 for (StateIterator< MutableFst<Arc> > siter(*fst);
59 fst->AddArc(s, Arc(0, 0, final, start));
67 fst->AddArc(nstart, Arc(0, 0, Weight::One(), start));
75 template<class Arc>
76 void Closure(RationalFst<Arc> *fst, ClosureType closure_type)
    [all...]
difference.h 67 typedef A Arc;
159 template<class Arc>
160 void Difference(const Fst<Arc> &ifst1, const Fst<Arc> &ifst2,
161 MutableFst<Arc> *ofst,
163 typedef Matcher< Fst<Arc> > M;
168 *ofst = DifferenceFst<Arc>(ifst1, ifst2, nopts);
170 DifferenceFstOptions<Arc> dopts;
172 *ofst = DifferenceFst<Arc>(ifst1, ifst2, dopts);
174 DifferenceFstOptions<Arc, M, AltSequenceComposeFilter<M> > dopts
    [all...]
intersect.h 66 typedef A Arc;
142 template<class Arc>
143 void Intersect(const Fst<Arc> &ifst1, const Fst<Arc> &ifst2,
144 MutableFst<Arc> *ofst,
146 typedef Matcher< Fst<Arc> > M;
151 *ofst = IntersectFst<Arc>(ifst1, ifst2, nopts);
153 IntersectFstOptions<Arc> iopts;
155 *ofst = IntersectFst<Arc>(ifst1, ifst2, iopts);
157 IntersectFstOptions<Arc, M, AltSequenceComposeFilter<M> > iopts
    [all...]
invert.h 24 #include <fst/arc-map.h>
30 // Mapper to implement inversion of an arc.
34 A operator()(const A &arc) {
35 return A(arc.olabel, arc.ilabel, arc.weight, arc.nextstate);
55 template<class Arc> inline
56 void Invert(MutableFst<Arc> *fst) {
59 ArcMap(fst, InvertMapper<Arc>());
    [all...]
map.h 26 #include <fst/arc-map.h>
56 typedef B Arc;
108 A operator()(const A &arc) const { return arc; }
register.h 85 // from 'Fst<Arc>' for this to work.
88 : public GenericRegisterer<FstRegister<typename F::Arc> > {
90 typedef typename F::Arc Arc;
91 typedef typename FstRegister<Arc>::Entry Entry;
92 typedef typename FstRegister<Arc>::Reader Reader;
95 GenericRegisterer<FstRegister<typename F::Arc> >(
107 static Fst<Arc> *Convert(const Fst<Arc> &fst) { return new F(fst); }
125 << "\" (arc type = \"" << atype << "\")"
    [all...]
topsort.h 40 typedef A Arc;
56 bool TreeArc(StateId s, const A &arc) { return true; }
58 bool BackArc(StateId s, const A &arc) { return (*acyclic_ = false); }
60 bool ForwardOrCrossArc(StateId s, const A &arc) { return true; }
90 template <class Arc>
91 bool TopSort(MutableFst<Arc> *fst) {
92 typedef typename Arc::StateId StateId;
97 TopOrderVisitor<Arc> top_order_visitor(&order, &acyclic);
concat.h 46 template<class Arc>
47 void Concat(MutableFst<Arc> *fst1, const Fst<Arc> &fst2) {
48 typedef typename Arc::StateId StateId;
49 typedef typename Arc::Label Label;
50 typedef typename Arc::Weight Weight;
75 for (StateIterator< Fst<Arc> > siter2(fst2);
82 for (ArcIterator< Fst<Arc> > aiter(fst2, s2);
85 Arc arc = aiter.Value() local
152 Arc arc = aiter.Value(); local
    [all...]
expanded-fst.h 37 typedef A Arc;
65 << "\" (arc type = \"" << A::Type()
124 template < class I, class F = ExpandedFst<typename I::Arc> >
127 typedef typename I::Arc Arc;
128 typedef typename Arc::Weight Weight;
129 typedef typename Arc::StateId StateId;
165 ImplToExpandedFst<I, F> &operator=(const Fst<Arc> &fst) {
174 template <class Arc>
175 typename Arc::StateId CountStates(const Fst<Arc> &fst)
    [all...]
project.h 24 #include <fst/arc-map.h>
34 // Mapper to implement projection per arc.
40 A operator()(const A &arc) {
42 ? arc.ilabel : arc.olabel;
43 return A(label, label, arc.weight, arc.nextstate);
76 template<class Arc> inline
77 void Project(MutableFst<Arc> *fst, ProjectType project_type) {
78 ArcMap(fst, ProjectMapper<Arc>(project_type))
    [all...]
union.h 43 template <class Arc>
44 void Union(MutableFst<Arc> *fst1, const Fst<Arc> &fst2) {
45 typedef typename Arc::StateId StateId;
46 typedef typename Arc::Label Label;
47 typedef typename Arc::Weight Weight;
75 for (StateIterator< Fst<Arc> > siter(fst2);
82 for (ArcIterator< Fst<Arc> > aiter(fst2, s2);
85 Arc arc = aiter.Value() local
    [all...]
arc.h 0 // arc.h
20 // Commonly used Fst arc types.
75 // Arc with integer labels and state Ids and string weights.
88 static const string &Type() { // Arc type name
104 // Arc with label and state Id type the same as template arg and with
108 typedef A Arc;
118 GallicArc(const A &arc)
119 : ilabel(arc.ilabel), olabel(arc.ilabel),
120 weight(arc.olabel, arc.weight), nextstate(arc.nextstate) {
    [all...]
arcsort.h 36 template <class Arc, class Compare>
39 typedef Arc FromArc;
40 typedef Arc ToArc;
42 typedef typename Arc::StateId StateId;
43 typedef typename Arc::Weight Weight;
45 ArcSortMapper(const Fst<Arc> &fst, const Compare &comp)
49 ArcSortMapper(const ArcSortMapper<Arc, Compare> &mapper,
50 const Fst<Arc> *fst = 0)
60 for (ArcIterator< Fst<Arc> > aiter(fst_, s); !aiter.Done(); aiter.Next())
66 const Arc &Value() const { return arcs_[i_];
    [all...]
state-reachable.h 96 bool TreeArc(StateId s, const A &arc) {
100 bool BackArc(StateId s, const A &arc) {
106 bool ForwardOrCrossArc(StateId s, const A &arc) {
108 (*isets_)[s].Union((*isets_)[arc.nextstate]);
112 void FinishState(StateId s, StateId p, const A *arc) {
141 typedef A Arc;
150 IntervalReachVisitor<Arc> reach_visitor(fst, &isets_, &state2index_);
state-table.h 195 // typedef A Arc;
201 // ComposeStateTable(const Fst<Arc> &fst1, const Fst<Arc> &fst2);
271 typedef A Arc;
350 typedef A Arc;
384 typedef A Arc;
426 typedef A Arc;
466 typedef A Arc;
string.h 38 typedef A Arc;
101 fst->AddArc(i, Arc(labels[i], labels[i], Weight::One(), i + 1));
161 typedef A Arc;
225 const A& arc = aiter.Value(); local
226 labels_.push_back(arc.olabel);
228 s = arc.nextstate;
visit.h 40 // template <class Arc>
43 // typedef typename Arc::StateId StateId;
47 // void InitVisit(const Fst<Arc> &fst);
50 // // Invoked when arc to white/undiscovered state examined
51 // bool WhiteArc(StateId s, const Arc &a);
52 // // Invoked when arc to grey/unfinished state examined
53 // bool GreyArc(StateId s, const Arc &a);
54 // // Invoked when arc to black/finished state examined
55 // bool BlackArc(StateId s, const Arc &a);
68 template <class Arc, class V, class Q, class ArcFilter
137 const Arc &arc = aiter->Value(); local
    [all...]
add-on.h 144 class AddOnImpl : public FstImpl<typename F::Arc> {
146 typedef typename F::Arc Arc;
147 typedef typename Arc::Label Label;
148 typedef typename Arc::Weight Weight;
149 typedef typename Arc::StateId StateId;
151 using FstImpl<Arc>::SetType;
152 using FstImpl<Arc>::SetProperties;
153 using FstImpl<Arc>::WriteHeader;
165 AddOnImpl(const Fst<Arc> &fst, const string &type, T *t = 0
    [all...]
complement.h 44 // corresponds to input state s - 1. The first arc in the output at
58 typedef A Arc;
122 return FstImpl<Arc>::Properties(mask);
147 typedef A Arc;
connect.h 38 typedef A Arc;
39 typedef typename Arc::Weight Weight;
68 bool WhiteArc(StateId s, const A &arc) {
69 comps_->MakeSet(arc.nextstate);
70 comps_->Union(s, arc.nextstate);
74 bool GreyArc(StateId s, const A &arc) {
75 comps_->Union(s, arc.nextstate);
79 bool BlackArc(StateId s, const A &arc) {
80 comps_->Union(s, arc.nextstate);
123 typedef A Arc;
    [all...]
  /external/openfst/src/include/fst/extensions/pdt/
info.h 41 typedef A Arc;
108 const A &arc = aiter.Value(); local
111 = paren_map.find(arc.ilabel);
115 if (arc.ilabel == open_paren) {
121 if (!open_paren_state_set.count(arc.nextstate)) {
123 open_paren_state_set.insert(arc.nextstate);
149 cout << "arc type" << pdtinfo.ArcType().c_str() << endl;
  /external/openfst/src/include/fst/script/
compile-impl.h 48 typedef A Arc;
86 Arc arc; local
96 arc.nextstate = d = StrToStateId(col[1]);
97 arc.ilabel = StrToILabel(col[2]);
98 arc.olabel = arc.ilabel;
99 arc.weight = Weight::One();
100 fst_.AddArc(s, arc);
103 arc.nextstate = d = StrToStateId(col[1])
    [all...]
print-impl.h 40 typedef A Arc;
99 PrintId(l, isyms_, "arc input label");
103 PrintId(l, osyms_, "arc output label");
111 Arc arc = aiter.Value(); local
114 PrintStateId(arc.nextstate);
116 PrintILabel(arc.ilabel);
119 PrintOLabel(arc.olabel);
121 if (show_weight_one_ || arc.weight != Weight::One())
122 *ostrm_ << FLAGS_fst_field_separator[0] << arc.weight
    [all...]
  /external/openfst/src/test/
fst_test.cc 31 // A user-defined arc type.
41 static const string &Type() { // Arc type name
57 typedef A Arc;
63 Element Compact(StateId s, const A &arc) const {
64 return make_pair(arc.ilabel, arc.weight);
67 Arc Expand(StateId s, const Element &p, uint32 f = kArcValueFlags) const {
69 Arc(kNoLabel, kNoLabel, p.second, kNoStateId) :
70 Arc(p.first, 0, p.second, s);
  /external/chromium_org/third_party/skia/experimental/SkV8Example/
Path2D.cpp 51 ADD_METHOD("arc", Arc);
139 void Path2D::Arc(const v8::FunctionCallbackInfo<Value>& args) {

Completed in 820 milliseconds

1 2 3