![]() |
TinyLib 0.1.1
|
#include <Bitset.h>
Public Member Functions | |
| Bitset () | |
| ~Bitset () | |
| void | set (u8, bit) |
| Set the bit at index to value. | |
| bit | get (u8) const |
| Get the value of the bit at index. | |
| void | flip (u8) |
| Flip bit at index. True if false, false if true. | |
| void | reset (bit=false) |
| Reset all bits in the bitset to off by default. | |
| tl::Bitset::Bitset | ( | ) |
Definition at line 4 of file Bitset.cpp.
| tl::Bitset::~Bitset | ( | ) |
Definition at line 10 of file Bitset.cpp.
| void tl::Bitset::flip | ( | u8 | index | ) |
Flip bit at index. True if false, false if true.
| index | Which bit to flip. |
Definition at line 40 of file Bitset.cpp.
Get the value of the bit at index.
| index | Which bit to get. |
Definition at line 32 of file Bitset.cpp.
| void tl::Bitset::reset | ( | tl::bit | value = false | ) |
Reset all bits in the bitset to off by default.
| value | True or false what the bitset is reset to. |
Definition at line 48 of file Bitset.cpp.
Set the bit at index to value.
| index | Which bit will be set. |
| value | True/false for the bit. |
Definition at line 19 of file Bitset.cpp.