![]() |
OGRE
2.2.4
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 >:Public Member Functions | |
| size_t | capacity () const |
| Return maximum number of bits this bitset can hold. More... | |
| void | clear () |
| Sets all bits to 0. More... | |
| uint32 | numBitsSet (size_t positionEnd) const |
| Returns the number of bits that are set between range [0; positionEnd). More... | |
| void | set (size_t position) |
| Sets bit at 'position' to 1. More... | |
| void | setAll () |
| Sets all bits to 1. More... | |
| void | setValue (size_t position, bool bValue) |
| Sets bit at 'position'. More... | |
| bool | test (size_t position) const |
| Returns true if bit at 'position' is 1. More... | |
| void | unset (size_t position) |
| Sets bit at 'position' to 0. More... | |
This is similar to std::bitset, except waaay less bloat.
cbitset32 stands for constant/compile-time bitset with an internal representation of 32-bits
|
inlineinherited |
Return maximum number of bits this bitset can hold.
|
inlineinherited |
Sets all bits to 0.
|
inlineinherited |
Returns the number of bits that are set between range [0; positionEnd).
References OGRE_ASSERT_MEDIUM, and Ogre::cbitsetN< _N, _internalDataType, _bits, _mask >::test().
|
inlineinherited |
Sets bit at 'position' to 1.
| position | Value in range [0; _N) |
References OGRE_ASSERT_MEDIUM.
|
inlineinherited |
Sets all bits to 1.
|
inlineinherited |
Sets bit at 'position'.
| position | Value in range [0; _N) |
| bValue |
References OGRE_ASSERT_MEDIUM.
|
inlineinherited |
Returns true if bit at 'position' is 1.
| position | Value in range [0; _N) |
References OGRE_ASSERT_MEDIUM.
|
inlineinherited |
Sets bit at 'position' to 0.
| position | Value in range [0; _N) |
References OGRE_ASSERT_MEDIUM.