|
BitMagic-C++
|
Class reference implements an object for bit assignment. More...
#include <bm.h>
Public Member Functions | |
| reference (bvector< Alloc > &bv, size_type position) BMNOEXCEPT | |
| reference (const reference &ref) BMNOEXCEPT | |
| operator bool () const BMNOEXCEPT | |
| const reference & | operator= (const reference &ref) const |
| const reference & | operator= (bool value) const BMNOEXCEPT |
| bool | operator== (const reference &ref) const BMNOEXCEPT |
| const reference & | operator&= (bool value) const |
| const reference & | operator|= (bool value) const |
| const reference & | operator^= (bool value) const |
| bool | operator! () const BMNOEXCEPT |
| bool | operator~ () const BMNOEXCEPT |
| reference & | flip () |
Class reference implements an object for bit assignment.
Since C++ does not provide with build-in bit type supporting l-value operations we have to emulate it.
|
inline |
Definition at line 148 of file bm.h.
References BMNOEXCEPT, and bm::bvector< Alloc >::bvector().
Referenced by flip(), operator&=(), operator=(), operator=(), operator==(), operator^=(), operator|=(), and reference().
|
inline |
Definition at line 153 of file bm.h.
References BMNOEXCEPT, and reference().
|
inline |
Negates the bit value
Definition at line 219 of file bm.h.
References flip(), and reference().
Referenced by flip().
|
inline |
Definition at line 160 of file bm.h.
References BMNOEXCEPT.
|
inline |
|
inline |
Bitwise AND. Performs operation: bit = bit AND value
Definition at line 183 of file bm.h.
References reference().
|
inline |
Definition at line 171 of file bm.h.
References BMNOEXCEPT, and reference().
|
inline |
Definition at line 165 of file bm.h.
References reference().
|
inline |
Definition at line 177 of file bm.h.
References BMNOEXCEPT, and reference().
|
inline |
Bitwise exclusive-OR (XOR). Performs operation: bit = bit XOR value
Definition at line 200 of file bm.h.
References reference().
|
inline |
Bitwise OR. Performs operation: bit = bit OR value
Definition at line 190 of file bm.h.
References reference().
|
inline |