dlvhex
2.5.0
|
Class reference implements an object for bit assignment. More...
#include <vs10/bm/bm.h>
Public Member Functions | |
reference (bvector< Alloc > &bv, bm::id_t position) | |
reference (const reference &ref) | |
operator bool () const | |
const reference & | operator= (const reference &ref) const |
const reference & | operator= (bool value) const |
bool | operator== (const reference &ref) const |
const reference & | operator&= (bool value) const |
const reference & | operator|= (bool value) const |
const reference & | operator^= (bool value) const |
bool | operator! () const |
bool | operator~ () const |
reference & | flip () |
reference (bvector< Alloc > &bv, bm::id_t position) | |
reference (const reference &ref) | |
operator bool () const | |
const reference & | operator= (const reference &ref) const |
const reference & | operator= (bool value) const |
bool | operator== (const reference &ref) const |
const reference & | operator&= (bool value) const |
const reference & | operator|= (bool value) const |
const reference & | operator^= (bool value) const |
bool | operator! () const |
bool | operator~ () const |
reference & | flip () |
Private Attributes | |
bvector< Alloc > & | bv_ |
Reference variable on the parent. | |
bm::id_t | position_ |
Position in the parent bitvector. |
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.
bm::bvector< Alloc >::reference::reference | ( | bvector< Alloc > & | bv, |
bm::id_t | position | ||
) | [inline] |
bm::bvector< Alloc >::reference::reference | ( | const reference & | ref | ) | [inline] |
Definition at line 148 of file bm.h.
References bm::bvector< Alloc >::reference::bv_, and bm::bvector< Alloc >::reference::position_.
bm::bvector< Alloc >::reference::reference | ( | bvector< Alloc > & | bv, |
bm::id_t | position | ||
) | [inline] |
bm::bvector< Alloc >::reference::reference | ( | const reference & | ref | ) | [inline] |
Definition at line 148 of file bm.h.
References bm::bvector< Alloc >::reference::bv_, and bm::bvector< Alloc >::reference::position_.
reference& bm::bvector< Alloc >::reference::flip | ( | ) | [inline] |
Negates the bit value
Definition at line 214 of file bm.h.
References bm::bvector< Alloc >::reference::bv_, and bm::bvector< Alloc >::reference::position_.
reference& bm::bvector< Alloc >::reference::flip | ( | ) | [inline] |
Negates the bit value
Definition at line 214 of file bm.h.
References bm::bvector< Alloc >::reference::bv_, and bm::bvector< Alloc >::reference::position_.
bm::bvector< Alloc >::reference::operator bool | ( | ) | const [inline] |
Definition at line 155 of file bm.h.
References bm::bvector< Alloc >::reference::bv_, and bm::bvector< Alloc >::reference::position_.
bm::bvector< Alloc >::reference::operator bool | ( | ) | const [inline] |
Definition at line 155 of file bm.h.
References bm::bvector< Alloc >::reference::bv_, and bm::bvector< Alloc >::reference::position_.
bool bm::bvector< Alloc >::reference::operator! | ( | ) | const [inline] |
Logical Not operator
Definition at line 202 of file bm.h.
References bm::bvector< Alloc >::reference::bv_, and bm::bvector< Alloc >::reference::position_.
bool bm::bvector< Alloc >::reference::operator! | ( | ) | const [inline] |
Logical Not operator
Definition at line 202 of file bm.h.
References bm::bvector< Alloc >::reference::bv_, and bm::bvector< Alloc >::reference::position_.
const reference& bm::bvector< Alloc >::reference::operator&= | ( | bool | value | ) | const [inline] |
Bitwise AND. Performs operation: bit = bit AND value
Definition at line 178 of file bm.h.
References bm::bvector< Alloc >::reference::bv_, and bm::bvector< Alloc >::reference::position_.
const reference& bm::bvector< Alloc >::reference::operator&= | ( | bool | value | ) | const [inline] |
Bitwise AND. Performs operation: bit = bit AND value
Definition at line 178 of file bm.h.
References bm::bvector< Alloc >::reference::bv_, and bm::bvector< Alloc >::reference::position_.
const reference& bm::bvector< Alloc >::reference::operator= | ( | const reference & | ref | ) | const [inline] |
Definition at line 160 of file bm.h.
References bm::bvector< Alloc >::reference::bv_, and bm::bvector< Alloc >::reference::position_.
const reference& bm::bvector< Alloc >::reference::operator= | ( | const reference & | ref | ) | const [inline] |
Definition at line 160 of file bm.h.
References bm::bvector< Alloc >::reference::bv_, and bm::bvector< Alloc >::reference::position_.
const reference& bm::bvector< Alloc >::reference::operator= | ( | bool | value | ) | const [inline] |
Definition at line 166 of file bm.h.
References bm::bvector< Alloc >::reference::bv_, and bm::bvector< Alloc >::reference::position_.
const reference& bm::bvector< Alloc >::reference::operator= | ( | bool | value | ) | const [inline] |
Definition at line 166 of file bm.h.
References bm::bvector< Alloc >::reference::bv_, and bm::bvector< Alloc >::reference::position_.
bool bm::bvector< Alloc >::reference::operator== | ( | const reference & | ref | ) | const [inline] |
bool bm::bvector< Alloc >::reference::operator== | ( | const reference & | ref | ) | const [inline] |
const reference& bm::bvector< Alloc >::reference::operator^= | ( | bool | value | ) | const [inline] |
Bitwise exclusive-OR (XOR). Performs operation: bit = bit XOR value
Definition at line 195 of file bm.h.
References bm::bvector< Alloc >::reference::bv_, and bm::bvector< Alloc >::reference::position_.
const reference& bm::bvector< Alloc >::reference::operator^= | ( | bool | value | ) | const [inline] |
Bitwise exclusive-OR (XOR). Performs operation: bit = bit XOR value
Definition at line 195 of file bm.h.
References bm::bvector< Alloc >::reference::bv_, and bm::bvector< Alloc >::reference::position_.
const reference& bm::bvector< Alloc >::reference::operator|= | ( | bool | value | ) | const [inline] |
Bitwise OR. Performs operation: bit = bit OR value
Definition at line 185 of file bm.h.
References bm::bvector< Alloc >::reference::bv_, and bm::bvector< Alloc >::reference::position_.
const reference& bm::bvector< Alloc >::reference::operator|= | ( | bool | value | ) | const [inline] |
Bitwise OR. Performs operation: bit = bit OR value
Definition at line 185 of file bm.h.
References bm::bvector< Alloc >::reference::bv_, and bm::bvector< Alloc >::reference::position_.
bool bm::bvector< Alloc >::reference::operator~ | ( | ) | const [inline] |
Bit Not operator
Definition at line 208 of file bm.h.
References bm::bvector< Alloc >::reference::bv_, and bm::bvector< Alloc >::reference::position_.
bool bm::bvector< Alloc >::reference::operator~ | ( | ) | const [inline] |
Bit Not operator
Definition at line 208 of file bm.h.
References bm::bvector< Alloc >::reference::bv_, and bm::bvector< Alloc >::reference::position_.
bvector< Alloc > & bm::bvector< Alloc >::reference::bv_ [private] |
Reference variable on the parent.
Definition at line 221 of file bm.h.
Referenced by bm::bvector< Alloc >::reference::flip(), bm::bvector< Alloc >::reference::operator bool(), bm::bvector< Alloc >::reference::operator!(), bm::bvector< Alloc >::reference::operator&=(), bm::bvector< Alloc >::reference::operator=(), bm::bvector< Alloc >::reference::operator^=(), bm::bvector< Alloc >::reference::operator|=(), bm::bvector< Alloc >::reference::operator~(), and bm::bvector< Alloc >::reference::reference().
bm::id_t bm::bvector< Alloc >::reference::position_ [private] |
Position in the parent bitvector.
Definition at line 222 of file bm.h.
Referenced by bm::bvector< Alloc >::reference::flip(), bm::bvector< Alloc >::reference::operator bool(), bm::bvector< Alloc >::reference::operator!(), bm::bvector< Alloc >::reference::operator&=(), bm::bvector< Alloc >::reference::operator=(), bm::bvector< Alloc >::reference::operator^=(), bm::bvector< Alloc >::reference::operator|=(), bm::bvector< Alloc >::reference::operator~(), and bm::bvector< Alloc >::reference::reference().