MCPcopy Create free account
hub / github.com/ablab/spades / test

Method test

ext/include/llvm/ADT/SparseBitVector.h:471–484  ·  view source on GitHub ↗

Test, Reset, and Set a bit in the bitmap.

Source from the content-addressed store, hash-verified

469
470 // Test, Reset, and Set a bit in the bitmap.
471 bool test(unsigned Idx) const {
472 if (Elements.empty())
473 return false;
474
475 unsigned ElementIndex = Idx / ElementSize;
476 ElementListConstIter ElementIter = FindLowerBoundConst(ElementIndex);
477
478 // If we can't find an element that is supposed to contain this bit, there
479 // is nothing more to do.
480 if (ElementIter == Elements.end() ||
481 ElementIter->index() != ElementIndex)
482 return false;
483 return ElementIter->test(Idx % ElementSize);
484 }
485
486 void reset(unsigned Idx) {
487 if (Elements.empty())

Callers

nothing calls this directly

Calls 3

emptyMethod · 0.45
endMethod · 0.45
indexMethod · 0.45

Tested by

no test coverage detected