#include <fst/matcher.h>
Inherits MatcherBase< M::Arc >.

Public Types | |
| typedef M::FST | FST |
| typedef M::Arc | Arc |
| typedef Arc::StateId | StateId |
| typedef Arc::Label | Label |
| typedef Arc::Weight | Weight |
Public Member Functions | |
| SigmaMatcher (const FST &fst, MatchType match_type, Label sigma_label=kNoLabel, MatcherRewriteMode rewrite_mode=MATCHER_REWRITE_AUTO, M *matcher=0) | |
| SigmaMatcher (const SigmaMatcher< M > &matcher, bool safe=false) | |
| virtual | ~SigmaMatcher () |
| virtual SigmaMatcher< M > * | Copy (bool safe=false) const |
| virtual MatchType | Type (bool test) const |
| void | SetState (StateId s) |
| bool | Find (Label match_label) |
| bool | Done () const |
| const Arc & | Value () const |
| void | Next () |
| virtual const FST & | GetFst () const |
| virtual uint64 | Properties (uint64 props) const |
For any requested label, this matcher considers all transitions that match the label 'sigma_label' (sigma = "any"), and this in additions to transitions with the requested label. Each such sigma transition found is returned with the sigma_label rewritten as the requested label (both sides if an acceptor, or if 'rewrite_both' is true and both input and output labels of the found transition are 'sigma_label'). If 'sigma_label' is kNoLabel, this special matching is not done. SigmaMatcher is templated itself on a matcher, which is used to perform the underlying matching. By default, the underlying matcher is constructed by SigmaMatcher. The user can instead pass in this object; in that case, SigmaMatcher takes its ownership.
Definition at line 486 of file matcher.h.
| typedef M::Arc fst::SigmaMatcher< M >::Arc |
Reimplemented from fst::MatcherBase< M::Arc >.
| typedef M::FST fst::SigmaMatcher< M >::FST |
| typedef Arc::Label fst::SigmaMatcher< M >::Label |
Reimplemented from fst::MatcherBase< M::Arc >.
| typedef Arc::StateId fst::SigmaMatcher< M >::StateId |
Reimplemented from fst::MatcherBase< M::Arc >.
| typedef Arc::Weight fst::SigmaMatcher< M >::Weight |
Reimplemented from fst::MatcherBase< M::Arc >.
| fst::SigmaMatcher< M >::SigmaMatcher | ( | const FST & | fst, | |
| MatchType | match_type, | |||
| Label | sigma_label = kNoLabel, |
|||
| MatcherRewriteMode | rewrite_mode = MATCHER_REWRITE_AUTO, |
|||
| M * | matcher = 0 | |||
| ) | [inline] |
| fst::SigmaMatcher< M >::SigmaMatcher | ( | const SigmaMatcher< M > & | matcher, | |
| bool | safe = false | |||
| ) | [inline] |
| virtual fst::SigmaMatcher< M >::~SigmaMatcher | ( | ) | [inline, virtual] |
| virtual SigmaMatcher<M>* fst::SigmaMatcher< M >::Copy | ( | bool | safe = false |
) | const [inline, virtual] |
Implements fst::MatcherBase< M::Arc >.
| bool fst::SigmaMatcher< M >::Done | ( | ) | const [inline] |
Reimplemented from fst::MatcherBase< M::Arc >.
| bool fst::SigmaMatcher< M >::Find | ( | Label | match_label | ) | [inline] |
| virtual const FST& fst::SigmaMatcher< M >::GetFst | ( | ) | const [inline, virtual] |
Implements fst::MatcherBase< M::Arc >.
| void fst::SigmaMatcher< M >::Next | ( | ) | [inline] |
Reimplemented from fst::MatcherBase< M::Arc >.
| uint64 fst::SigmaMatcher< M >::Properties | ( | uint64 | props | ) | const [inline, virtual] |
Implements fst::MatcherBase< M::Arc >.
| void fst::SigmaMatcher< M >::SetState | ( | StateId | s | ) | [inline] |
| virtual MatchType fst::SigmaMatcher< M >::Type | ( | bool | test | ) | const [inline, virtual] |
Implements fst::MatcherBase< M::Arc >.
| const Arc& fst::SigmaMatcher< M >::Value | ( | ) | const [inline] |
Reimplemented from fst::MatcherBase< M::Arc >.
1.7.1