Main Page | Modules | Namespace List | Class Hierarchy | Alphabetical List | Data Structures | Directories | File List | Namespace Members | Data Fields | Globals | Examples

bm::bvector< Alloc, MS >::reference Class Reference
[The Main bvector<> Group]

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. More...

#include <bm.h>


Public Member Functions

 reference (bvector< Alloc, MS > &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 ()


Detailed Description

template<class Alloc, class MS>
class bm::bvector< Alloc, MS >::reference

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.

Definition at line 144 of file bm.h.


Constructor & Destructor Documentation

template<class Alloc, class MS>
bm::bvector< Alloc, MS >::reference::reference (  bvector< Alloc, MS > &  bv,
bm::id_t  position
)  [inline]
 

Definition at line 147 of file bm.h.

template<class Alloc, class MS>
bm::bvector< Alloc, MS >::reference::reference (  const reference &  ref  )  [inline]
 

Definition at line 152 of file bm.h.


Member Function Documentation

template<class Alloc, class MS>
reference& bm::bvector< Alloc, MS >::reference::flip (   )  [inline]
 

Negates the bit value

Definition at line 218 of file bm.h.

template<class Alloc, class MS>
const reference& bm::bvector< Alloc, MS >::reference::operator &= (  bool  value  )  const [inline]
 

Bitwise AND. Performs operation: bit = bit AND value

Definition at line 182 of file bm.h.

template<class Alloc, class MS>
bm::bvector< Alloc, MS >::reference::operator bool (   )  const [inline]
 

Definition at line 159 of file bm.h.

template<class Alloc, class MS>
bool bm::bvector< Alloc, MS >::reference::operator! (   )  const [inline]
 

Logical Not operator

Definition at line 206 of file bm.h.

template<class Alloc, class MS>
const reference& bm::bvector< Alloc, MS >::reference::operator= (  bool  value  )  const [inline]
 

Definition at line 170 of file bm.h.

template<class Alloc, class MS>
const reference& bm::bvector< Alloc, MS >::reference::operator= (  const reference &  ref  )  const [inline]
 

Definition at line 164 of file bm.h.

template<class Alloc, class MS>
bool bm::bvector< Alloc, MS >::reference::operator== (  const reference &  ref  )  const [inline]
 

Definition at line 176 of file bm.h.

template<class Alloc, class MS>
const reference& bm::bvector< Alloc, MS >::reference::operator^= (  bool  value  )  const [inline]
 

Bitwise exclusive-OR (XOR). Performs operation: bit = bit XOR value

Definition at line 199 of file bm.h.

template<class Alloc, class MS>
const reference& bm::bvector< Alloc, MS >::reference::operator|= (  bool  value  )  const [inline]
 

Bitwise OR. Performs operation: bit = bit OR value

Definition at line 189 of file bm.h.

template<class Alloc, class MS>
bool bm::bvector< Alloc, MS >::reference::operator~ (   )  const [inline]
 

Bit Not operator

Definition at line 212 of file bm.h.


The documentation for this class was generated from the following file:
Generated on Thu Apr 20 13:29:15 2006 for BitMagic by  doxygen 1.4.1