#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 | |
| RhoMatcher (const FST &fst, MatchType match_type, Label rho_label=kNoLabel, MatcherRewriteMode rewrite_mode=MATCHER_REWRITE_AUTO, M *matcher=0) | |
| RhoMatcher (const RhoMatcher< M > &matcher, bool safe=false) | |
| virtual | ~RhoMatcher () |
| virtual RhoMatcher< 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 that doesn't match at a state, this matcher considers all transitions that match the label 'rho_label' (rho = 'rest'). Each such rho transition found is returned with the rho_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 'rho_label'). If 'rho_label' is kNoLabel, this special matching is not done. RhoMatcher is templated itself on a matcher, which is used to perform the underlying matching. By default, the underlying matcher is constructed by RhoMatcher. The user can instead pass in this object; in that case, RhoMatcher takes its ownership.
Definition at line 332 of file matcher.h.
| typedef M::Arc fst::RhoMatcher< M >::Arc |
Reimplemented from fst::MatcherBase< M::Arc >.
| typedef M::FST fst::RhoMatcher< M >::FST |
| typedef Arc::Label fst::RhoMatcher< M >::Label |
Reimplemented from fst::MatcherBase< M::Arc >.
| typedef Arc::StateId fst::RhoMatcher< M >::StateId |
Reimplemented from fst::MatcherBase< M::Arc >.
| typedef Arc::Weight fst::RhoMatcher< M >::Weight |
Reimplemented from fst::MatcherBase< M::Arc >.
| fst::RhoMatcher< M >::RhoMatcher | ( | const FST & | fst, | |
| MatchType | match_type, | |||
| Label | rho_label = kNoLabel, |
|||
| MatcherRewriteMode | rewrite_mode = MATCHER_REWRITE_AUTO, |
|||
| M * | matcher = 0 | |||
| ) | [inline] |
| fst::RhoMatcher< M >::RhoMatcher | ( | const RhoMatcher< M > & | matcher, | |
| bool | safe = false | |||
| ) | [inline] |
| virtual fst::RhoMatcher< M >::~RhoMatcher | ( | ) | [inline, virtual] |
| virtual RhoMatcher<M>* fst::RhoMatcher< M >::Copy | ( | bool | safe = false |
) | const [inline, virtual] |
Implements fst::MatcherBase< M::Arc >.
| bool fst::RhoMatcher< M >::Done | ( | ) | const [inline] |
Reimplemented from fst::MatcherBase< M::Arc >.
| bool fst::RhoMatcher< M >::Find | ( | Label | match_label | ) | [inline] |
| virtual const FST& fst::RhoMatcher< M >::GetFst | ( | ) | const [inline, virtual] |
Implements fst::MatcherBase< M::Arc >.
| void fst::RhoMatcher< M >::Next | ( | ) | [inline] |
Reimplemented from fst::MatcherBase< M::Arc >.
| uint64 fst::RhoMatcher< M >::Properties | ( | uint64 | props | ) | const [inline, virtual] |
Implements fst::MatcherBase< M::Arc >.
| void fst::RhoMatcher< M >::SetState | ( | StateId | s | ) | [inline] |
| virtual MatchType fst::RhoMatcher< M >::Type | ( | bool | test | ) | const [inline, virtual] |
Implements fst::MatcherBase< M::Arc >.
| const Arc& fst::RhoMatcher< M >::Value | ( | ) | const [inline] |
Reimplemented from fst::MatcherBase< M::Arc >.
1.7.1