![]() |
Scanframe Modular Application 0.1.0
|
Template for creating large memory inexpensive bitmasks or bit sets. More...
#include <TBitSet.h>
Public Member Functions | |
| TBitSet () | |
| Default constructor. | |
| bool | has (int bit) |
| Tests if a bit has been Set. | |
| void | set (int bit) |
| Sets a single bit. | |
| void | reset (int bit) |
| Resets a single bit. | |
| void | clear () |
| Clears all bits. | |
| bool | isClear () |
| Returns true if one of the bits has been Set. | |
Template for creating large memory inexpensive bitmasks or bit sets.
| _size | Amount of bits needed. |
| sf::TBitSet< _size >::TBitSet | ( | ) |
Default constructor.
| void sf::TBitSet< _size >::clear | ( | ) |
Clears all bits.
| bool sf::TBitSet< _size >::has | ( | int | bit | ) |
Tests if a bit has been Set.
| bool sf::TBitSet< _size >::isClear | ( | ) |
Returns true if one of the bits has been Set.
| void sf::TBitSet< _size >::reset | ( | int | bit | ) |
Resets a single bit.
| void sf::TBitSet< _size >::set | ( | int | bit | ) |
Sets a single bit.