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

Function foreach

src/common/protobuf_utils.cpp:141–146  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

139 FrameworkInfo::Capability::Type capability)
140{
141 foreach (const FrameworkInfo::Capability& c,
142 framework.capabilities()) {
143 if (c.type() == capability) {
144 return true;
145 }
146 }
147
148 return false;
149}

Callers 4

operator()Method · 0.70
injectAllocationInfoFunction · 0.70
operator()Method · 0.70
stripAllocationInfoFunction · 0.70

Calls 11

convertResourceFormatFunction · 0.85
typeMethod · 0.80
CopyFromMethod · 0.80
insertMethod · 0.80
ErrorFunction · 0.50
countMethod · 0.45
valueMethod · 0.45
containsMethod · 0.45
isSomeMethod · 0.45
getMethod · 0.45
isNoneMethod · 0.45

Tested by

no test coverage detected