OWLNext 7.0
Borland's Object Windows Library for the modern age
|
For example: More...
#include <owl/bitset.h>
Public Member Functions | |
TBitFlags (T t=0) | |
Initialize the Flags to the specified parameter. | |
T | Clear (T t) |
Clear the bits that are enabled in the specified parameter. | |
T | Set (T t) |
Activate the bits that are enabled in the specified parameter. | |
bool | IsSet (T t) const |
Return true of the ON bits of the parameter are currently enabled. | |
Protected Attributes | |
T | Bits |
For example:
TBitFlags is a lightweight class for setting, clearing and querrying bit flags.
It's intenteded to be used with a 'short' or 'long' type allowing an easy method to handle 16 and 32 bit flags respectively.
owl::TBitFlags< T >::TBitFlags | ( | T | t = 0 | ) |
T owl::TBitFlags< T >::Clear | ( | T | t | ) |
bool owl::TBitFlags< T >::IsSet | ( | T | t | ) | const |
T owl::TBitFlags< T >::Set | ( | T | t | ) |
|
protected |