Xavax C++ Library | Class Index FAQ Overview |
Constructor Summary |
Bit(Bitmap& bitmap,
size_t n)
Construct a reference to a bit in a Bitmap. |
Operator Summary | |
Bit&
|
operator=(Bit& rhs)
Set the value of a bit. |
Bit&
|
operator=(bool rhs)
Set the value of a bit. |
bool
|
operator bool()
Return the value of a bit. |
Method Summary | |
size_t
|
position() const
Return the position of this bit in the bitmap. |
Related Classes | |
Bitmap |
Constructor Detail |
Bit(Bitmap& bitmap, size_t n)
n
in bitmap b
.b
- a bitmap.n
- the bit position.
Operator Detail |
Bit& operator=(Bit& rhs)
this object
to the value of the bit referenced by rhs
.
-
- Parameters:
rhs
- the right operand.
-
- Returns:
- a reference to a bit.
Bit& operator=(bool rhs)
this object
to rhs
.
-
- Parameters:
rhs
- the right operand.
-
- Returns:
- a reference to a bit.
operator bool()
this
object.
Method Detail |
size_t position() const
Example Code |
Copyright © 2003 Xavax Inc. -- All Rights Reserved