MCPcopy Create free account
hub / github.com/CppMicroServices/CppMicroServices / Match

Method Match

framework/src/util/LDAPFilter.cpp:71–75  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

69 LDAPFilter::operator bool() const { return d != nullptr; }
70
71 bool
72 LDAPFilter::Match(ServiceReferenceBase const& reference) const
73 {
74 return ((d) ? d->ldapExpr.Evaluate(reference.d.Load()->GetProperties(), false) : false);
75 }
76
77 // This function has been modified to call the LDAPExpr::Evaluate() function which takes
78 // an AnyMap rather than a PropertiesHandle to optimize the code. Constructing a Properties

Callers 9

TESTFunction · 0.80
TESTFunction · 0.80
TEST_FFunction · 0.80
MatchFilterWithAnyMapFunction · 0.80
MatchFilterWithBundleFunction · 0.80
ServiceChangedMethod · 0.80
MatchesMethod · 0.80
ListConfigurationsMethod · 0.80

Calls 5

ValidateAnyMapFunction · 0.85
EvaluateMethod · 0.80
GetPropertiesMethod · 0.45
LoadMethod · 0.45
GetTypeMethod · 0.45

Tested by 6

TESTFunction · 0.64
TESTFunction · 0.64
TEST_FFunction · 0.64
MatchFilterWithAnyMapFunction · 0.64
MatchFilterWithBundleFunction · 0.64