#include <base.h>
Collaboration diagram for BoolSet:
Public Member Functions | |
BoolSet () | |
The default constructor initializes the BoolSet to all values unset. | |
BoolSet (char bitmask) | |
This constructor copies the default bitmask from a char. | |
void | Set (int number) |
The Set method sets one bool in the set. | |
bool | Get (int number) |
The Get method returns the value of one bool in the set. | |
void | Unset (int number) |
The Unset method unsets one value in the set. | |
void | Invert (int number) |
The Unset method inverts (flips) one value in the set. | |
bool | operator== (BoolSet other) |
Compare two BoolSets. | |
BoolSet | operator| (BoolSet other) |
OR two BoolSets together. | |
BoolSet | operator & (BoolSet other) |
AND two BoolSets together. | |
bool | operator= (BoolSet other) |
Assign one BoolSet to another. | |
Private Attributes | |
char | bits |
Use BoolSet::Set and BoolSet::Get to set and get bools in the bitmask, and Unset and Invert for special operations upon them.
Definition at line 95 of file base.h.
|
The default constructor initializes the BoolSet to all values unset.
|
|
This constructor copies the default bitmask from a char.
|
|
The Get method returns the value of one bool in the set.
|
|
The Unset method inverts (flips) one value in the set.
|
|
AND two BoolSets together.
|
|
Assign one BoolSet to another.
|
|
Compare two BoolSets.
|
|
OR two BoolSets together.
|
|
The Set method sets one bool in the set.
|
|
The Unset method unsets one value in the set.
|
|
|