boolean.h
Go to the documentation of this file.
00001 //$$ boolean.h                       bool class
00002 
00003 // This is for compilers that do not have bool automatically defined
00004 
00005 #ifndef bool_LIB
00006 #define bool_LIB 0
00007 
00008 #ifdef use_namespace
00009 namespace RBD_COMMON {
00010 #endif
00011 
00012 
00013 class bool
00014 {
00015         int value;
00016 public:
00017         bool(const int b) { value = b ? 1 : 0; }
00018         bool(const void* b) { value = b ? 1 : 0; }
00019         bool() {}
00020         operator int() const { return value; }
00021         int operator!() const { return !value; }
00022 };
00023 
00024 
00025 const bool true = 1;
00026 const bool false = 0;
00027 
00028 
00029 
00030 // version for some older versions of gnu g++
00031 //#define false 0
00032 //#define true 1
00033 
00034 #ifdef use_namespace
00035 }
00036 #endif
00037 
00038 
00039 
00040 #endif


rl_agent
Author(s): Todd Hester
autogenerated on Thu Jun 6 2019 22:00:13