MCPcopy Create free account
hub / github.com/3rdparty/libprocess / count

Method count

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 11

foreachpairFunction · 0.45
reinitializeFunction · 0.45
removeMethod · 0.45
helpMethod · 0.45
foreachFunction · 0.45
synchronizedFunction · 0.45
synchronizedFunction · 0.45
consumeMethod · 0.45
TEST_FFunction · 0.45
TESTFunction · 0.45
consumeMethod · 0.45

Calls 1

for_eachMethod · 0.80

Tested by 2

TEST_FFunction · 0.36
TESTFunction · 0.36