|
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 151 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 156 of file bm.h.
References BMNOEXCEPT, and reference().
|
inline |
Negates the bit value
Definition at line 222 of file bm.h.
References flip(), and reference().
Referenced by flip().
|
inline |
Definition at line 163 of file bm.h.
References BMNOEXCEPT.
|
inline |
|
inline |
Bitwise AND. Performs operation: bit = bit AND value
Definition at line 186 of file bm.h.
References reference().
|
inline |
Definition at line 174 of file bm.h.
References BMNOEXCEPT, and reference().
|
inline |
Definition at line 168 of file bm.h.
References reference().
|
inline |
Definition at line 180 of file bm.h.
References BMNOEXCEPT, and reference().
|
inline |
Bitwise exclusive-OR (XOR). Performs operation: bit = bit XOR value
Definition at line 203 of file bm.h.
References reference().
|
inline |
Bitwise OR. Performs operation: bit = bit OR value
Definition at line 193 of file bm.h.
References reference().
|
inline |