index previous next 

file name: bool.hpp, bool.cpp
classification: simulation
contents: enum EBool, some operators for it
use: provide a boolean type
 

global items used:

 
The definition of EBool depends upon the constant PSOS_SIM. If it is defined, then the type EBool and its values are defined as:

#define EBool int
#define True 1
#define False 0
 

Otherwise, they are defined as:

enum EBool: True (1), False (0)
 

operators:

EBool& operator|= (EBool& result, EBool const & operand): Implements A |= B. Returns True if at least one of A, B is True, False if both are False. A is set to the return value.

EBool& operator&= (EBool& result, EBool const & operand): Implements A &= B. Returns True if both A and B are True, False if one of them is False. A is set to the return value.


last modified: Fri Feb 5 18:55:59 1999