Lines Matching refs:matcher_

408       : matcher_(matcher ? matcher : new M(fst, match_type)),
432 : matcher_(new M(*matcher.matcher_, safe)),
439 delete matcher_;
446 virtual MatchType Type(bool test) const { return matcher_->Type(test); }
449 matcher_->SetState(s);
459 if (matcher_->Find(match_label)) {
463 (has_rho_ = matcher_->Find(rho_label_))) {
471 bool Done() const { return matcher_->Done(); }
475 return matcher_->Value();
477 rho_arc_ = matcher_->Value();
492 void Next() { matcher_->Next(); }
494 virtual const FST &GetFst() const { return matcher_->GetFst(); }
500 return matcher_->Flags();
501 return matcher_->Flags() | kRequireMatch;
511 M *matcher_;
525 uint64 outprops = matcher_->Properties(inprops);
582 : matcher_(matcher ? matcher : new M(fst, match_type)),
606 : matcher_(new M(*matcher.matcher_, safe)),
613 delete matcher_;
620 virtual MatchType Type(bool test) const { return matcher_->Type(test); }
623 matcher_->SetState(s);
625 sigma_label_ != kNoLabel ? matcher_->Find(sigma_label_) : false;
635 if (matcher_->Find(match_label)) {
639 matcher_->Find(sigma_label_)) {
648 return matcher_->Done();
653 return matcher_->Value();
655 sigma_arc_ = matcher_->Value();
671 matcher_->Next();
672 if (matcher_->Done() && has_sigma_ && (sigma_match_ == kNoLabel) &&
674 matcher_->Find(sigma_label_);
679 virtual const FST &GetFst() const { return matcher_->GetFst(); }
685 return matcher_->Flags();
688 // return matcher_->Flags() | kRequireMatch;
689 return matcher_->Flags();
699 M *matcher_;
714 uint64 outprops = matcher_->Properties(inprops);
772 : matcher_(matcher ? matcher : new M(fst, match_type)),
793 : matcher_(new M(*matcher.matcher_, safe)),
802 delete matcher_;
809 virtual MatchType Type(bool test) const { return matcher_->Type(test); }
812 matcher_->SetState(s);
819 bool Done() const { return matcher_->Done(); }
823 return matcher_->Value();
830 phi_arc_ = matcher_->Value();
848 void Next() { matcher_->Next(); }
850 virtual const FST &GetFst() const { return matcher_->GetFst(); }
856 return matcher_->Flags();
857 return matcher_->Flags() | kRequireMatch;
867 M *matcher_;
890 matcher_->SetState(state_);
897 if (!matcher_->Find(kNoLabel)) {
898 return matcher_->Find(0);
906 return matcher_->Find(match_label);
908 while (!matcher_->Find(match_label)) {
911 if (!matcher_->Find(phi_label_ == 0 ? -1 : phi_label_))
913 if (phi_loop_ && matcher_->Value().nextstate == state) {
917 phi_weight_ = Times(phi_weight_, matcher_->Value().weight);
918 state = matcher_->Value().nextstate;
919 matcher_->Next();
920 if (!matcher_->Done()) {
924 matcher_->SetState(state);
931 uint64 outprops = matcher_->Properties(inprops);
1001 : matcher_(matcher ? matcher : new M(fst, match_type)),
1016 : matcher_(new M(*matcher.matcher_, safe)),
1026 delete matcher_;
1033 MatchType Type(bool test) const { return matcher_->Type(test); }
1036 matcher_->SetState(s);
1047 return current_loop_ ? loop_ : matcher_->Value();
1052 matcher_->Next();
1053 done_ = matcher_->Done();
1057 !matcher_->Find(*multi_eps_iter_))
1062 done_ = !matcher_->Find(kNoLabel);
1070 const FST &GetFst() const { return matcher_->GetFst(); }
1072 uint64 Properties(uint64 props) const { return matcher_->Properties(props); }
1074 uint32 Flags() const { return matcher_->Flags(); }
1097 M *matcher_;
1118 ret = matcher_->Find(0);
1124 !matcher_->Find(*multi_eps_iter_))
1129 ret = matcher_->Find(kNoLabel);
1132 ret = matcher_->Find(kNoLabel);
1140 ret = matcher_->Find(match_label);