Changeset a2952c in git
- Timestamp:
- Feb 10, 1998, 10:51:02 AM (26 years ago)
- Branches:
- (u'spielwiese', '2fa36c576e6a4ddbb1093b43c7f8e9835e17e52a')
- Children:
- a31a46c44b0893d78ff72ccce3006d4282514d1f
- Parents:
- abc625ea7218c401cfe020a534d5f30c28d85f75
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
factory/cf_switches.h
rabc625 ra2952c 1 1 /* emacs edit mode for this file is -*- C++ -*- */ 2 /* $Id: cf_switches.h,v 1. 6 1998-01-16 18:08:44schmidt Exp $ */2 /* $Id: cf_switches.h,v 1.7 1998-02-10 09:51:02 schmidt Exp $ */ 3 3 4 4 #ifndef INCL_CF_SWITCHES_H … … 27 27 // class CFSwitches - manages boolean switches. 28 28 // 29 // An object of type CFSwitches is simply an array of booleans 30 // with some comfortable access methods (On, Off). Each object 31 // may contain CFSwitchesMax switches. When a new object of type 32 // CFSwitches is created, all its switches are turned off. 29 // An object of class `CFSwitches' is simply an array of booleans 30 // with some comfortable access methods (`On()', `isOn()', etc.). 31 // Each object may contain `CFSwitchesMax' switches. When a new 32 // object of type `CFSwitches' is created, all its switches are 33 // turned off. 33 34 // 34 35 // Note: No range checking is done when accessing switches. … … 44 45 // bool isOff ( int s ) const 45 46 // 46 // On(), Off() - switch son or off, resp.47 // On(), Off() - switch `s' on or off, resp. 47 48 // 48 // isOn(), isOff() - return true iff sis on or off, resp.49 // isOn(), isOff() - return true iff `s' is on or off, resp. 49 50 // 50 51 //}}} … … 53 54 private: 54 55 bool switches [CFSwitchesMax]; 56 55 57 public: 58 // constructors, destructors 56 59 CFSwitches (); 57 60 ~CFSwitches () {} 58 61 62 // selectors 59 63 void On ( int s ) { switches[s] = true; } 60 64 void Off ( int s ) { switches[s] = false; }
Note: See TracChangeset
for help on using the changeset viewer.