Main   Namespaces   Classes   Hierarchy   Annotated   Files   Compound   Global   Pages  

benzene_bitset< _Nb >::reference Class Reference

This encapsulates the concept of a single bit. More...

#include <BenzeneBitset.hpp>

List of all members.

Public Member Functions

 reference (benzene_bitset &__b, size_t __pos)
 ~reference ()
referenceoperator= (bool __x)
referenceoperator= (const reference &__j)
bool operator~ () const
 operator bool () const
referenceflip ()

Private Member Functions

 reference ()

Private Attributes

_WordT_M_wp
size_t _M_bpos

Friends

class benzene_bitset

Detailed Description

template<size_t _Nb>
class benzene_bitset< _Nb >::reference

This encapsulates the concept of a single bit.

An instance of this class is a proxy for an actual bit; this way the individual bit operations are done as faster word-size bitwise instructions.

Most users will never need to use this class directly; conversions to and from bool are automatic and should be transparent. Overloaded operators help to preserve the illusion.

(On a typical system, this "bit %reference" is 64 times the size of an actual bit. Ha.)

Definition at line 667 of file BenzeneBitset.hpp.


Constructor & Destructor Documentation

template<size_t _Nb>
benzene_bitset< _Nb >::reference::reference (  )  [private]
template<size_t _Nb>
benzene_bitset< _Nb >::reference::reference ( benzene_bitset __b,
size_t  __pos 
) [inline]
template<size_t _Nb>
benzene_bitset< _Nb >::reference::~reference (  )  [inline]

Definition at line 684 of file BenzeneBitset.hpp.


Member Function Documentation

template<size_t _Nb>
reference& benzene_bitset< _Nb >::reference::flip (  )  [inline]
template<size_t _Nb>
benzene_bitset< _Nb >::reference::operator bool (  )  const [inline]
template<size_t _Nb>
reference& benzene_bitset< _Nb >::reference::operator= ( const reference __j  )  [inline]
template<size_t _Nb>
reference& benzene_bitset< _Nb >::reference::operator= ( bool  __x  )  [inline]
template<size_t _Nb>
bool benzene_bitset< _Nb >::reference::operator~ (  )  const [inline]

Friends And Related Function Documentation

template<size_t _Nb>
friend class benzene_bitset [friend]

Definition at line 669 of file BenzeneBitset.hpp.


Member Data Documentation

template<size_t _Nb>
size_t benzene_bitset< _Nb >::reference::_M_bpos [private]
template<size_t _Nb>
_WordT* benzene_bitset< _Nb >::reference::_M_wp [private]

The documentation for this class was generated from the following file:


6 Jan 2011 Doxygen 1.6.3