![]() |
OGRE 2.3.3
Object-Oriented Graphics Rendering Engine
|
#include <OgreBitset.h>
Public Member Functions | |
| bitset64 () | |
| size_t | capacity () const |
| Return maximum number of bits this bitset can hold. | |
| void | clear () |
| Sets all bits to 0. | |
| bool | empty () const |
| Returns true if all bits are unset. | |
| size_t | findFirstBitSet () const |
| Finds the first bit set. | |
| size_t | findLastBitSetPlusOne () const |
| Finds the first bit unset after the last bit set. | |
| size_t | numBitsSet (const size_t positionEnd) const |
| Returns the number of bits that are set between range [0; positionEnd). | |
| void | reset (size_t bitsCapacity) |
| void | set (const size_t position) |
| Sets bit at 'position' to 1. | |
| void | setAll () |
| Sets all bits to 1. | |
| void | setAllUntil (size_t position) |
| Sets all bits in range [0; position) It's the same as calling: | |
| void | setValue (const size_t position, const bool bValue) |
| Sets bit at 'position'. | |
| bool | test (const size_t position) const |
| Returns true if bit at 'position' is 1. | |
| void | unset (const size_t position) |
| Sets bit at 'position' to 0. | |
See cbitset64.
This is the same, but the maximum number of bits is not known at build time
|
inline |
|
inline |
Return maximum number of bits this bitset can hold.
|
inline |
Sets all bits to 0.
|
inline |
Returns true if all bits are unset.
|
inline |
Finds the first bit set.
|
inline |
Finds the first bit unset after the last bit set.
Returns the number of bits that are set between range [0; positionEnd).
Sets bit at 'position' to 1.
| position | Value in range [0; _N) |
|
inline |
Sets all bits to 1.
Sets all bits in range [0; position) It's the same as calling:
for( size_t i = 0u; i < position; ++i ) this->set( i );
Values in range [position; _N) are left untouched
| position |
Sets bit at 'position'.
| position | Value in range [0; _N) |
| bValue |
Returns true if bit at 'position' is 1.
| position | Value in range [0; _N) |
Sets bit at 'position' to 0.
| position | Value in range [0; _N) |