MCPcopy Create free account
hub / github.com/apache/mesos / operator==

Method operator==

src/common/resources.cpp:1437–1450  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1435
1436
1437bool Resources::Resource_::operator==(const Resource_& that) const
1438{
1439 // Both Resource_ objects should have the same sharedness.
1440 if (isShared() != that.isShared()) {
1441 return false;
1442 }
1443
1444 // For shared resources to be equal, the shared counts need to match.
1445 if (isShared() && (sharedCount.get() != that.sharedCount.get())) {
1446 return false;
1447 }
1448
1449 return resource == that.resource;
1450}
1451
1452
1453bool Resources::Resource_::operator!=(const Resource_& that) const

Callers

nothing calls this directly

Calls 3

isSharedMethod · 0.45
getMethod · 0.45
containsMethod · 0.45

Tested by

no test coverage detected