![]() |
Scanframe Modular Application 0.1.0
|
Template class for managing bit maks preferably when bits are defined as enumerate values. More...
#include <TSet.h>
Public Member Functions | |
TSet () | |
TSet (const TSet &set) | |
Copy constructor. | |
TSet (S bits) | |
Initializing constructor. | |
S & | getBits () |
Gets a reference to the storage integral typed value. | |
S | getBits () const |
Gets a copy of the storage integral typed value. | |
TSet & | operator= (const TSet &set) |
assign operator. | |
bool | has (T bit) const |
Returns true when the bit was Set. | |
TSet & | set (T bit) |
Sets bits in the mask. | |
TSet & | reset () |
Resets all bits in the mask. | |
TSet & | unset (T bit) |
Unsets bits in the mask. | |
TSet & | toggle (T bit) |
Toggles a bit in the mask. | |
bool | operator== (const TSet &set) const |
Compare equal operator. | |
bool | operator!= (const TSet &set) const |
Compare unequal operator. | |
bool | contains (T bit) const |
Operators and functions that are also available in the VCL 'Set' template. | |
TSet & | operator<< (T bit) |
Operator for adding bits to the mask. | |
TSet & | operator>> (T bit) |
Operator for removing bits from the mask. | |
Template class for managing bit maks preferably when bits are defined as enumerate values.
T | Integer type for setting the bits. |
S | Integer type for containing the bits. |
sf::TSet< T, S >::TSet | ( | ) |
Default constructor.
|
inline |
Copy constructor.
|
explicit |
Initializing constructor.
bool sf::TSet< T, S >::contains | ( | T | bit | ) | const |
Operators and functions that are also available in the VCL 'Set' template.
S & sf::TSet< T, S >::getBits | ( | ) |
Gets a reference to the storage integral typed value.
S sf::TSet< T, S >::getBits | ( | ) | const |
Gets a copy of the storage integral typed value.
bool sf::TSet< T, S >::has | ( | T | bit | ) | const |
Returns true when the bit was Set.
bool sf::TSet< T, S >::operator!= | ( | const TSet< T, S > & | set | ) | const |
Compare unequal operator.
Operator for adding bits to the mask.
TSet & sf::TSet< T, S >::operator= | ( | const TSet< T, S > & | set | ) |
assign operator.
bool sf::TSet< T, S >::operator== | ( | const TSet< T, S > & | set | ) | const |
Compare equal operator.
Operator for removing bits from the mask.
Resets all bits in the mask.
Sets bits in the mask.
Toggles a bit in the mask.
Unsets bits in the mask.