Lines Matching refs:Idx
47 reference(BitVector &b, unsigned Idx) { in reference() argument
48 WordRef = &b.Bits[Idx / BITWORD_SIZE]; in reference()
49 BitPos = Idx % BITWORD_SIZE; in reference()
242 BitVector &set(unsigned Idx) { in set() argument
243 Bits[Idx / BITWORD_SIZE] |= 1L << (Idx % BITWORD_SIZE); in set()
280 BitVector &reset(unsigned Idx) { in reset() argument
281 Bits[Idx / BITWORD_SIZE] &= ~(1L << (Idx % BITWORD_SIZE)); in reset()
320 BitVector &flip(unsigned Idx) { in flip() argument
321 Bits[Idx / BITWORD_SIZE] ^= 1L << (Idx % BITWORD_SIZE); in flip()
326 reference operator[](unsigned Idx) {
327 assert (Idx < Size && "Out-of-bounds Bit access.");
328 return reference(*this, Idx);
331 bool operator[](unsigned Idx) const {
332 assert (Idx < Size && "Out-of-bounds Bit access.");
333 BitWord Mask = 1L << (Idx % BITWORD_SIZE);
334 return (Bits[Idx / BITWORD_SIZE] & Mask) != 0;
337 bool test(unsigned Idx) const { in test() argument
338 return (*this)[Idx]; in test()