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"

Public Member Functions

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

Private Attributes

bool bit
uint pos
OverlayKeykey


Constructor & Destructor Documentation

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

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


Member Function Documentation

OverlayKeyBit::operator bool (  )  [inline]

Converts to a boolean value.

00536     {
00537         return bit;
00538     };

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

Sets the corresponding bit to a boolean value.

Parameters:
value value to set to
00544     {
00545         key->setBitAt(pos, value);
00546         return *this;
00547     };

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

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


Member Data Documentation

bool OverlayKeyBit::bit [private]

uint OverlayKeyBit::pos [private]

OverlayKey* OverlayKeyBit::key [private]


The documentation for this class was generated from the following file:
Generated on Thu Apr 17 13:19:29 2008 for ITM OverSim by  doxygen 1.5.3