Platform.Data.Doublets C++
Loading...
Searching...
No Matches
TargetMatcher.h
Go to the documentation of this file.
2{
3 template <typename...>
5 template <std::integral TLinkAddress>
6 class TargetMatcher<TLinkAddress> : public LinksOperatorBase<TLinkAddress>, ICriterionMatcher<TLinkAddress>
7 {
8 private:
9 TLinkAddress _targetToMatch = 0;
10
11 public:
12 TargetMatcher(ILinks<TLinkAddress>& storage, TLinkAddress targetToMatch) : base(storage)
13 {
14 return _targetToMatch = targetToMatch;
15 }
16
17 public:
19 {
20 return _links.GetTarget(link) == _targetToMatch;
21 }
22 };
23} // namespace Platform::Data::Doublets::CriterionMatchers
TargetMatcher(ILinks< TLinkAddress > &storage, TLinkAddress targetToMatch)
Definition TargetMatcher.h:12
bool IsMatched(TLinkAddress link)
Definition TargetMatcher.h:18