| 180 | } |
| 181 | |
| 182 | bool BitField::Test(unsigned int bitID) const |
| 183 | { |
| 184 | if constexpr (DEBUG_BUILD) |
| 185 | { |
| 186 | if (!IsBitIDCorrect(bitID)) |
| 187 | return false; |
| 188 | } |
| 189 | |
| 190 | unsigned int localBitID = bitID % CHUNK_SIZE; |
| 191 | unsigned int chunkID = bitID / CHUNK_SIZE; |
| 192 | return bool(_chunks[chunkID] & ((ChunkType)1 << localBitID)); |
| 193 | } |
| 194 | |
| 195 | bool BitField::Test(const std::vector<unsigned int>& bitIds, bool testAny) const |
| 196 | { |
no outgoing calls
no test coverage detected