Logo Search packages:      
Sourcecode: lbt version File versions  Download package

bool BitVector::operator[] ( unsigned  i  )  const [inline]

Read a binary digit

Parameters:
i zero-based index of the element
Returns:
value of the ternary digit

Definition at line 116 of file BitVector.h.

References m_bits, and m_size.

                                     {
    return i < m_size &&
      m_bits[i / (CHAR_BIT * sizeof (word_t))] &
      (word_t (1) << (i % (CHAR_BIT * sizeof (word_t))));
  }


Generated by  Doxygen 1.6.0   Back to index