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

Method find

src/v1/resources.cpp:1811–1827  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1809
1810
1811Option<Resources> Resources::find(const Resources& targets) const
1812{
1813 Resources total;
1814
1815 foreach (const Resource& target, targets) {
1816 Option<Resources> found = find(target);
1817
1818 // Each target needs to be found!
1819 if (found.isNone()) {
1820 return None();
1821 }
1822
1823 total += found.get();
1824 }
1825
1826 return total;
1827}
1828
1829
1830Try<Resources> Resources::apply(const ResourceConversion& conversion) const

Callers 15

parseMethod · 0.45
getFunction · 0.45
_detect_exit_sequenceMethod · 0.45
foreachkeyFunction · 0.45
TESTFunction · 0.45
NamesFunction · 0.45
TYPED_TESTFunction · 0.45
TEST_FFunction · 0.45
TYPED_TESTFunction · 0.45
TESTFunction · 0.45
ACTION_P5Function · 0.45
foreachFunction · 0.45

Calls 4

NoneClass · 0.85
ResourcesClass · 0.50
bindFunction · 0.50
toUnreservedMethod · 0.45

Tested by 10

foreachkeyFunction · 0.36
TESTFunction · 0.36
NamesFunction · 0.36
TYPED_TESTFunction · 0.36
TEST_FFunction · 0.36
TYPED_TESTFunction · 0.36
TESTFunction · 0.36
ACTION_P5Function · 0.36
foreachMethod · 0.36
foreachMethod · 0.36