MCPcopy Create free account
hub / github.com/arq5x/bedtools2 / getCountDistinct

Method getCountDistinct

src/utils/KeyListOps/KeyListOpsMethods.cpp:238–243  ·  view source on GitHub ↗

return a the count of _unique_ elements in the vector

Source from the content-addressed store, hash-verified

236
237// return a the count of _unique_ elements in the vector
238uint32_t KeyListOpsMethods::getCountDistinct() {
239 if (empty()) return 0;
240
241 makeFreqMap();
242 return _freqMap.size();
243}
244
245// return a delimiter-separated list of elements
246const string &KeyListOpsMethods::getCollapse(const string &delimiter) {

Callers 1

KeyListOps.cppFile · 0.80

Calls 1

sizeMethod · 0.45

Tested by

no test coverage detected