MCPcopy Create free account
hub / github.com/apache/mesos / match

Method match

src/common/resources.cpp:2063–2074  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

2061
2062
2063Option<Resource> Resources::match(const Resource& that) const
2064{
2065 foreach (
2066 const Resource_Unsafe& resource_,
2067 resourcesNoMutationWithoutExclusiveOwnership) {
2068 if (compareResourceMetadata(resource_->resource, that)) {
2069 return resource_->resource;
2070 }
2071 }
2072
2073 return None();
2074}
2075
2076/////////////////////////////////////////////////
2077// Private member functions.

Callers 15

additiveFunction · 0.80
mFunction · 0.80
MFunction · 0.80
pbFunction · 0.80
MbFunction · 0.80
tFunction · 0.80
IaFunction · 0.80
iaFunction · 0.80
pcFunction · 0.80
yFunction · 0.80

Calls 1

NoneClass · 0.85

Tested by

no test coverage detected