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

Method count

3rdparty/libprocess/src/event_queue.hpp:161–171  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

159
160 template <typename T>
161 size_t count()
162 {
163 synchronized (mutex) {
164 return std::count_if(
165 events.begin(),
166 events.end(),
167 [](const Event* event) {
168 return event->is<T>();
169 });
170 }
171 }
172
173 operator JSON::Array()
174 {

Callers 15

TYPED_TESTFunction · 0.45
TEST_FFunction · 0.45
TESTFunction · 0.45
TESTFunction · 0.45
process_tests.cppFile · 0.45
get_dynamic_stringsMethod · 0.45
bootIdFunction · 0.45
killtreeFunction · 0.45
foreachFunction · 0.45
foreachpairFunction · 0.45
foreachFunction · 0.45
foreachpairFunction · 0.45

Calls 1

for_eachMethod · 0.80

Tested by 6

TYPED_TESTFunction · 0.36
TEST_FFunction · 0.36
TESTFunction · 0.36
TESTFunction · 0.36
TEST_FFunction · 0.36
TESTFunction · 0.36