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]

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


Member Function Documentation

OverlayKeyBit::operator bool (  )  [inline]

Converts to a boolean value.

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
00543     {
00544         key->setBit(pos, value);
00545         return *this;
00546     };

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

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


Member Data Documentation

bool OverlayKeyBit::bit [private]

Referenced by operator bool().

uint OverlayKeyBit::pos [private]

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

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


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

Generated on Fri Sep 19 13:05:07 2008 for ITM OverSim by  doxygen 1.5.5