![]() |
OGRE-Next 3.0.0
Object-Oriented Graphics Rendering Engine
|
This is similar to std::bitset, except waaay less bloat. More...
#include <OgreBitset.h>
Inheritance diagram for Ogre::cbitset32< _N >:Additional Inherited Members | |
Public Member Functions inherited from Ogre::cbitsetN< _N, uint32, 5u, 0x1Fu > | |
| cbitsetN () | |
| 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 | numBitsSet (const size_t positionEnd) const |
| Returns the number of bits that are set between range [0; positionEnd). | |
| 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. | |
This is similar to std::bitset, except waaay less bloat.
cbitset32 stands for constant/compile-time bitset with an internal representation of 32-bits
2^5 = 32 0x1F = 32 - 1 = 5 bits set
| _N | Number of bits this bitset will hold |