Team-Fly
Previous Section Next Section

B.7 Bitwise Operations: Member Functions

const LINT&
operator ^= (const LINT& b);

XOR and assignment, a ^= b;

const LINT&
operator |= (const LINT& b);

OR and assignment, a |= b;

const LINT&
operator &= (const LINT& b);

AND and assignment, a &= b;

const LINT&
operator <<= (const int i);

left shift and assignment, a <<= i;

const LINT&
operator >>= (const int i);

right shift and assignment, a <<= i;

const LINT&
shift (const int i);

shift (left and right) by i bit positions, a.shift (i);

const LINT&
setbit (const unsigned int i);

set a bit at position i, a.setbit (i);

const LINT&
clearbit (const
     unsigned int i);

clear a bit at position i, a.clearbit (i);

const int
testbit (const
     unsigned int i) const;

test a bit at position i, a.testbit (i);


Team-Fly Previous Section Next Section