OverlayKeyBit Class Reference

#include <OverlayKey.h>

List of all members.


Detailed Description

An auxiliary class for single bits in OverlayKey.

Allows statements like "key[n] = true"

Definition at line 525 of file OverlayKey.h.


Public Member Functions

 OverlayKeyBit (bool value, uint32_t pos, OverlayKey *key)
 operator bool ()
 Converts to a boolean value.
OverlayKeyBit & operator= (bool value)
 Sets the corresponding bit to a boolean value.
OverlayKeyBit & operator^= (bool value)

Private Attributes

bool bit
uint32_t pos
OverlayKey * key

Constructor & Destructor Documentation

OverlayKeyBit::OverlayKeyBit ( bool  value,
uint32_t  pos,
OverlayKey *  key 
) [inline]

Definition at line 529 of file OverlayKey.h.

00530         : bit(value), pos(pos), key(key)
00531     {};


Member Function Documentation

OverlayKeyBit::operator bool (  )  [inline]

Converts to a boolean value.

Definition at line 534 of file OverlayKey.h.

00535     {
00536         return bit;
00537     };

OverlayKeyBit& OverlayKeyBit::operator= ( bool  value  )  [inline]

Sets the corresponding bit to a boolean value.

Parameters:
value value to set to

Definition at line 542 of file OverlayKey.h.

00543     {
00544         key->setBit(pos, value);
00545         return *this;
00546     };

OverlayKeyBit& OverlayKeyBit::operator^= ( bool  value  )  [inline]

Definition at line 548 of file OverlayKey.h.

00549     {
00550         key->setBit(pos, (*key)[pos] ^ value);
00551         return *this;
00552     };


Member Data Documentation

bool OverlayKeyBit::bit [private]

Definition at line 552 of file OverlayKey.h.

Referenced by operator bool().

uint32_t OverlayKeyBit::pos [private]

Definition at line 557 of file OverlayKey.h.

Referenced by operator=(), and operator^=().

Definition at line 558 of file OverlayKey.h.

Referenced by operator=(), and operator^=().


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

Generated on Wed Mar 25 16:32:53 2009 for OverSim by  doxygen 1.5.5