casa
$Rev:20696$
|
Helper class for BitVector. More...
#include <BitVector.h>
Public Member Functions | |
BitVectorHelper (const BitVectorHelper &that) | |
Copy constructor has to be public. | |
const BitVectorHelper & | operator= (const BitVectorHelper &that) const |
Set the bit to the state of the bit in the other BitVector. | |
const BitVectorHelper & | operator= (Bool state) const |
Set to a state. | |
operator Bool () const | |
Defines the conversion from BitVectorHelper to Bool . | |
Private Member Functions | |
BitVectorHelper (uInt bitNumber, BitVector *vector) | |
The constructor we actually use. | |
Private Attributes | |
uInt | bitNumber_p |
BitVector * | vecPtr_p |
Pointer back to the original vector. | |
Friends | |
class | BitVector |
Helper class for BitVector.
Internal
Helper class for class BitVector . For all practical purposes a BitVectorHelper object is the individual bit in a bit vector. It is the object returned by the index operator of BitVector.
Definition at line 251 of file BitVector.h.
casa::BitVectorHelper::BitVectorHelper | ( | const BitVectorHelper & | that | ) | [inline] |
Copy constructor has to be public.
Definition at line 318 of file BitVector.h.
casa::BitVectorHelper::BitVectorHelper | ( | uInt | bitNumber, |
BitVector * | vector | ||
) | [inline, private] |
The constructor we actually use.
Definition at line 308 of file BitVector.h.
casa::BitVectorHelper::operator Bool | ( | ) | const [inline] |
Defines the conversion from BitVectorHelper
to Bool
.
Definition at line 329 of file BitVector.h.
References bitNumber_p, casa::BitVector::getBit(), and vecPtr_p.
const BitVectorHelper & casa::BitVectorHelper::operator= | ( | const BitVectorHelper & | that | ) | const [inline] |
Set the bit to the state of the bit in the other BitVector.
Thus assignment has not the usual copy semantics, but affects the underlying BitVector bit.
Definition at line 335 of file BitVector.h.
const BitVectorHelper & casa::BitVectorHelper::operator= | ( | Bool | state | ) | const [inline] |
Set to a state.
Definition at line 323 of file BitVector.h.
References bitNumber_p, casa::BitVector::putBit(), and vecPtr_p.
friend class BitVector [friend] |
Definition at line 253 of file BitVector.h.
uInt casa::BitVectorHelper::bitNumber_p [private] |
Definition at line 272 of file BitVector.h.
Referenced by operator Bool(), and operator=().
BitVector* casa::BitVectorHelper::vecPtr_p [private] |
Pointer back to the original vector.
Definition at line 275 of file BitVector.h.
Referenced by operator Bool(), and operator=().