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

Method operator==

src/v1/resources.cpp:1423–1436  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1421
1422
1423bool Resources::Resource_::operator==(const Resource_& that) const
1424{
1425 // Both Resource_ objects should have the same sharedness.
1426 if (isShared() != that.isShared()) {
1427 return false;
1428 }
1429
1430 // For shared resources to be equal, the shared counts need to match.
1431 if (isShared() && (sharedCount.get() != that.sharedCount.get())) {
1432 return false;
1433 }
1434
1435 return resource == that.resource;
1436}
1437
1438
1439bool 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