|
|||
|
|||
|
#include <base.h>
Inheritance 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 |
| Actual bit values. | |
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 160 of file base.h.
|
|
The default constructor initializes the BoolSet to all values unset.
Definition at line 83 of file base.cpp. References bits. |
|
|
This constructor copies the default bitmask from a char.
Definition at line 88 of file base.cpp. References bits. |
|
|
The Get method returns the value of one bool in the set.
Definition at line 61 of file base.cpp. References bitfields. |
|
|
The Unset method inverts (flips) one value in the set.
|
|
|
AND two BoolSets together.
Definition at line 77 of file base.cpp. References bits. |
|
|
Assign one BoolSet to another.
Definition at line 93 of file base.cpp. References bits. |
|
|
Compare two BoolSets.
Definition at line 66 of file base.cpp. References bits. |
|
|
OR two BoolSets together.
Definition at line 71 of file base.cpp. References bits. |
|
|
The Set method sets one bool in the set.
|
|
|
The Unset method unsets one value in the set.
Definition at line 51 of file base.cpp. References bits, and inverted_bitfields. |
|
|
Actual bit values.
Definition at line 163 of file base.h. Referenced by BoolSet(), Invert(), operator &(), operator=(), operator==(), operator|(), Set(), and Unset(). |