MCPcopy Create free account
hub / github.com/catboost/catboost / Count

Method Count

util/generic/bitmap.h:982–988  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

980 }
981
982 Y_FORCE_INLINE size_t Count() const {
983 size_t count = 0;
984 for (size_t i = 0; i < Mask.GetChunkCapacity(); ++i) {
985 count += ::NBitMapPrivate::CountBitsPrivate(Mask.Data[i]);
986 }
987 return count;
988 }
989
990 void Save(IOutputStream* out) const {
991 ::Save(out, ui8(sizeof(TChunk)));

Callers 5

Y_UNIT_TESTFunction · 0.45
TestAndImplFunction · 0.45
TestOrImplFunction · 0.45
TestStringSplitterCountFunction · 0.45
Y_UNIT_TESTFunction · 0.45

Calls 2

CountBitsPrivateFunction · 0.85
GetChunkCapacityMethod · 0.45

Tested by 3

TestAndImplFunction · 0.36
TestOrImplFunction · 0.36
TestStringSplitterCountFunction · 0.36