Searched defs:StateId (Results 26 - 50 of 117) sorted by relevance

12345

/external/srec/tools/thirdparty/OpenFst/fst/lib/
H A Dintersect.h47 typedef typename A::StateId StateId; typedef in class:fst::IntersectFst
94 typedef typename A::StateId StateId; typedef in class:fst::ArcIterator
96 ArcIterator(const IntersectFst<A> &fst, StateId s)
H A Dprune.h59 typedef typename Arc::StateId StateId; typedef
67 StateId ns = fst->NumStates();
87 vector<StateId> dead;
92 for (StateId state = 0; state < ns; ++state) {
145 typedef typename Arc::StateId StateId; typedef
171 vector<StateId> copy;
180 StateId state = sit.Value();
H A Dtopsort.h36 typedef typename A::StateId StateId; typedef in class:fst::TopOrderVisitor
41 TopOrderVisitor(vector<StateId> *order, bool *acyclic)
45 finish_ = new vector<StateId>;
49 bool InitState(StateId s, StateId r) { return true; }
51 bool TreeArc(StateId s, const A &arc) { return true; }
53 bool BackArc(StateId s, const A &arc) { return (*acyclic_ = false); }
55 bool ForwardOrCrossArc(StateId s, const A &arc) { return true; }
57 void FinishState(StateId
87 typedef typename Arc::StateId StateId; typedef
[all...]
H A Dunion.h38 typedef typename Arc::StateId StateId; typedef
42 StateId start2 = fst2.Start();
46 StateId numstates1 = fst1->NumStates();
54 StateId s1 = fst1->AddState();
55 StateId s2 = siter.Value();
65 StateId start1 = fst1->Start();
75 StateId nstart1 = fst1->AddState();
113 typedef typename A::StateId StateId; typedef in class:fst::UnionFst
143 typedef typename A::StateId StateId; typedef in class:fst::ArcIterator
[all...]
H A Dconnect.h35 typedef typename A::StateId StateId; typedef in class:fst::SccVisitor
44 SccVisitor(vector<StateId> *scc, vector<bool> *access,
68 dfnumber_ = new vector<StateId>;
69 lowlink_ = new vector<StateId>;
71 scc_stack_ = new vector<StateId>;
74 bool InitState(StateId s, StateId root) {
76 while ((StateId)dfnumber_->size() <= s) {
102 bool TreeArc(StateId
203 typedef typename Arc::StateId StateId; typedef
[all...]
H A Dequivalent.h37 // disjoint, we map Arc::StateId on the type MappedId. The states of
46 typedef typename Arc::StateId StateId; typedef in struct:fst::EquivalenceUtil
59 static MappedId MapState(StateId s, int32 which_fst) {
68 static StateId UnMapState(MappedId id) {
69 return static_cast<StateId>((--id) >> 1);
140 typedef typename Arc::StateId StateId; typedef
H A Dmutable-fst.h37 typedef typename A::StateId StateId; typedef in class:fst::MutableFst
41 virtual void SetStart(StateId) = 0; // Set the initial state
42 virtual void SetFinal(StateId, Weight) = 0; // Set a state's final weight
45 virtual StateId AddState() = 0; // Add a state, return its ID
46 virtual void AddArc(StateId, const A &arc) = 0; // Add an arc to state
48 virtual void DeleteStates(const vector<StateId>&) = 0; // Delete some states
50 virtual void DeleteArcs(StateId, size_t n) = 0; // Delete some arcs at state
51 virtual void DeleteArcs(StateId) = 0; // Delete all arcs at state
110 virtual void InitMutableArcIterator(StateId
143 typedef typename Arc::StateId StateId; typedef in class:fst::MutableArcIterator
[all...]
H A Drandgen.h43 typedef typename A::StateId StateId; typedef in struct:fst::UniformArcSelector
48 size_t operator()(const Fst<A> &fst, StateId s) const {
64 typedef typename A::StateId StateId; typedef in struct:fst::LogProbArcSelector
69 size_t operator()(const Fst<A> &fst, StateId s) const {
H A Dtest-properties.h76 typedef typename Arc::StateId StateId; typedef
118 StateId nfinal = 0;
122 StateId s = siter.Value();
/external/openfst/src/include/fst/
H A Darc.h48 typedef int StateId; typedef in class:fst::ArcTpl
50 ArcTpl(Label i, Label o, const Weight& w, StateId s)
64 StateId nextstate;
81 typedef int StateId; typedef in class:fst::StringArc
83 StringArc(Label i, Label o, Weight w, StateId s)
100 StateId nextstate; // Transition destination state
110 typedef typename A::StateId StateId; typedef in struct:fst::GallicArc
115 GallicArc(Label i, Label o, Weight w, StateId s)
134 StateId nextstat
144 typedef typename A::StateId StateId; typedef in struct:fst::ReverseArc
168 typedef int StateId; typedef in struct:fst::LexicographicArc
192 typedef int StateId; typedef in struct:fst::ProductArc
218 typedef typename A::StateId StateId; typedef in struct:fst::PowerArc
249 typedef typename A::StateId StateId; typedef in struct:fst::SparsePowerArc
282 typedef typename A::StateId StateId; typedef in struct:fst::ExpectationArc
[all...]
H A Dconcat.h48 typedef typename Arc::StateId StateId; typedef
65 StateId start1 = fst1->Start();
71 StateId numstates1 = fst1->NumStates();
78 StateId s1 = fst1->AddState();
79 StateId s2 = siter2.Value();
91 StateId start2 = fst2.Start();
92 for (StateId s1 = 0; s1 < numstates1; ++s1) {
114 typedef typename Arc::StateId StateId; typedef
199 typedef typename A::StateId StateId; typedef in class:fst::ConcatFst
234 typedef typename A::StateId StateId; typedef in class:fst::ArcIterator
[all...]
H A Dequivalent.h47 // disjoint, we map Arc::StateId on the type MappedId. The states of
56 typedef typename Arc::StateId StateId; typedef in struct:fst::EquivalenceUtil
58 typedef StateId MappedId; // ID for an equivalence class.
69 static MappedId MapState(StateId s, int32 which_fst) {
78 static StateId UnMapState(MappedId id) {
79 return static_cast<StateId>((--id) >> 1);
174 typedef typename Arc::StateId StateId; typedef
H A Dexpanded-fst.h38 typedef typename A::StateId StateId; typedef in class:fst::ExpandedFst
40 virtual StateId NumStates() const = 0; // State count
95 typename A::Weight Final(const ExpandedFst<A> &fst, typename A::StateId s) {
100 ssize_t NumArcs(const ExpandedFst<A> &fst, typename A::StateId s) {
105 ssize_t NumInputEpsilons(const ExpandedFst<A> &fst, typename A::StateId s) {
110 ssize_t NumOutputEpsilons(const ExpandedFst<A> &fst, typename A::StateId s) {
129 typedef typename Arc::StateId StateId; typedef in class:fst::ImplToExpandedFst
133 virtual StateId NumState
[all...]
H A Dstate-reachable.h44 template <class A, typename I = typename A::StateId>
47 typedef typename A::StateId StateId; typedef in class:fst::IntervalReachVisitor
65 bool InitState(StateId s, StateId r) {
96 bool TreeArc(StateId s, const A &arc) {
100 bool BackArc(StateId s, const A &arc) {
106 bool ForwardOrCrossArc(StateId s, const A &arc) {
112 void FinishState(StateId s, StateId
143 typedef typename A::StateId StateId; typedef in class:fst::StateReachable
[all...]
H A Dtest-properties.h80 typedef typename Arc::StateId StateId; typedef
122 StateId nfinal = 0;
126 StateId s = siter.Value();
H A Dunion.h45 typedef typename Arc::StateId StateId; typedef
59 StateId numstates1 = fst1->NumStates();
64 StateId start2 = fst2.Start();
78 StateId s1 = fst1->AddState();
79 StateId s2 = siter.Value();
90 StateId start1 = fst1->Start();
100 StateId nstart1 = fst1->AddState();
138 typedef typename A::StateId StateId; typedef in class:fst::UnionFst
173 typedef typename A::StateId StateId; typedef in class:fst::ArcIterator
[all...]
H A Dadd-on.h149 typedef typename Arc::StateId StateId; typedef in class:fst::AddOnImpl
186 StateId Start() const { return fst_.Start(); }
187 Weight Final(StateId s) const { return fst_.Final(s); }
188 size_t NumArcs(StateId s) const { return fst_.NumArcs(s); }
190 size_t NumInputEpsilons(StateId s) const {
194 size_t NumOutputEpsilons(StateId s) const {
262 void InitArcIterator(StateId s, ArcIteratorData<Arc> *data) const {
H A Darcsort.h42 typedef typename Arc::StateId StateId; typedef in class:fst::ArcSortMapper
53 StateId Start() { return fst_.Start(); }
54 Weight Final(StateId s) const { return fst_.Final(s); }
56 void SetState(StateId s) {
124 typedef typename Arc::StateId StateId; typedef in class:fst::ArcSortFst
142 virtual size_t NumArcs(StateId s) const {
146 virtual size_t NumInputEpsilons(StateId s) const {
150 virtual size_t NumOutputEpsilons(StateId
[all...]
H A Dcomplement.h61 typedef typename A::StateId StateId; typedef in class:fst::ComplementFstImpl
81 StateId Start() const {
85 StateId start = fst_->Start();
93 Weight Final(StateId s) const {
100 size_t NumArcs(StateId s) const {
107 size_t NumInputEpsilons(StateId s) const {
111 size_t NumOutputEpsilons(StateId s) const {
148 typedef typename A::StateId StateId; typedef in class:fst::ComplementFst
194 typedef typename A::StateId StateId; typedef in class:fst::StateIterator
236 typedef typename A::StateId StateId; typedef in class:fst::ArcIterator
[all...]
H A Dconnect.h40 typedef typename A::StateId StateId; typedef in class:fst::CcVisitor
43 CcVisitor(vector<StateId> *cc)
44 : comps_(new UnionFind<StateId>(0, kNoStateId)),
49 CcVisitor(UnionFind<StateId> *comps)
61 bool InitState(StateId s, StateId root) {
68 bool WhiteArc(StateId s, const A &arc) {
74 bool GreyArc(StateId s, const A &arc) {
79 bool BlackArc(StateId
125 typedef typename A::StateId StateId; typedef in class:fst::SccVisitor
302 typedef typename Arc::StateId StateId; typedef
[all...]
/external/openfst/src/include/fst/extensions/pdt/
H A Dpdtscript.h204 typedef typename Arc::StateId StateId; typedef
223 typedef FifoQueue<StateId> Queue;
230 typedef LifoQueue<StateId> Queue;
237 typedef StateOrderQueue<StateId> Queue;
H A Dinfo.h42 typedef typename A::StateId StateId; typedef in class:fst::PdtInfo
91 unordered_set<StateId> open_paren_state_set;
92 unordered_set<StateId> close_paren_state_set;
104 StateId s = siter.Value();
/external/openfst/src/include/fst/script/
H A Dprint-impl.h41 typedef typename A::StateId StateId; typedef in class:fst::FstPrinter
59 StateId start = fst_.Start();
67 StateId s = siter.Value();
94 void PrintStateId(StateId s) const {
106 void PrintState(StateId s) const {
H A Drmepsilon.h68 typedef typename Arc::StateId StateId; typedef
76 AutoQueue<StateId> queue(*fst, distance, EpsilonArcFilter<Arc>());
77 fst::RmEpsilonOptions<Arc, AutoQueue<StateId> > ropts(
84 FifoQueue<StateId> queue;
85 fst::RmEpsilonOptions<Arc, FifoQueue<StateId> > ropts(
92 LifoQueue<StateId> queue;
93 fst::RmEpsilonOptions<Arc, LifoQueue<StateId> > ropts(
100 NaturalShortestFirstQueue<StateId, Weight> queue(*distance);
101 fst::RmEpsilonOptions<Arc, NaturalShortestFirstQueue<StateId,
[all...]
H A Dshortest-distance.h69 struct QueueConstructor<AutoQueue<typename Arc::StateId>, Arc, ArcFilter> {
71 static AutoQueue<typename Arc::StateId> *Construct(
74 return new AutoQueue<typename Arc::StateId>(fst, distance, ArcFilter());
79 struct QueueConstructor<NaturalShortestFirstQueue<typename Arc::StateId,
83 static NaturalShortestFirstQueue<typename Arc::StateId, typename Arc::Weight>
86 return new NaturalShortestFirstQueue<typename Arc::StateId,
92 struct QueueConstructor<TopOrderQueue<typename Arc::StateId>, Arc, ArcFilter> {
94 static TopOrderQueue<typename Arc::StateId> *Construct(
96 return new TopOrderQueue<typename Arc::StateId>(fst, ArcFilter());
165 typedef typename Arc::StateId StateI typedef
[all...]

Completed in 221 milliseconds

12345