Changeset 64b9bf in git
- Timestamp:
- Oct 23, 2013, 7:01:26 PM (9 years ago)
- Branches:
- (u'jengelh-datetime', 'ceac47cbc86fe4a15902392bdbb9bd2ae0ea02c6')(u'spielwiese', 'f875bbaccd0831e36aaed09ff6adeb3eb45aeb94')
- Children:
- 25761d107c152ed2282675247e571d5cfac99ef4
- Parents:
- 319eab5422b663cf987a25ed055f76e33b2b9751
- git-author:
- Oleksandr Motsak <motsak@mathematik.uni-kl.de>2013-10-23 19:01:26+02:00
- git-committer:
- Oleksandr Motsak <motsak@mathematik.uni-kl.de>2013-10-24 23:39:48+02:00
- Location:
- factory
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
factory/cf_globals.cc
r319eab r64b9bf 13 13 #endif /* HAVE_CONFIG_H */ 14 14 15 #include "cf_switches.h"16 15 17 16 //{{{ extern const char factoryVersion[]; … … 41 40 //}}} 42 41 43 //{{{ CFSwitches cf_glob_switches;44 //{{{ docu45 //46 // cf_glob_switches - factory switches.47 //48 // This is the only object of type CFSwitches in factory. It is49 // used either directly in the low level algorithms or by the50 // functions On(), Off(), isOn() defined in canonicalform.cc.51 //52 //}}}53 CFSwitches cf_glob_switches;54 //}}} -
factory/cf_globals.h
r319eab r64b9bf 21 21 /*ENDPUBLIC*/ 22 22 23 extern CFSwitches cf_glob_switches;24 23 25 24 #endif /* ! INCL_CF_GLOBALS_H */ -
factory/cf_switches.h
r319eab r64b9bf 54 54 bool switches [CFSwitchesMax]; 55 55 56 CFSwitches (); 56 57 public: 57 58 // constructors, destructors 58 CFSwitches ();59 59 ~CFSwitches () {} 60 60 61 static CFSwitches& getInstance() 62 { 63 static CFSwitches singleton; 64 return singleton; 65 } 61 66 // selectors 62 67 void On ( int s ) { switches[s] = true; } … … 66 71 }; 67 72 //}}} 73 //{{{ CFSwitches cf_glob_switches; 74 //{{{ docu 75 // 76 // cf_glob_switches - factory switches. 77 // 78 // This is the only object of type CFSwitches in factory. It is 79 // used either directly in the low level algorithms or by the 80 // functions On(), Off(), isOn() defined in canonicalform.cc. 81 // 82 //}}} 83 // extern CFSwitches& cf_glob_switches; 84 // CFSwitches& cf_glob_switches = CFSwitches::getInstance(); 85 #define cf_glob_switches (CFSwitches::getInstance()) 86 //}}} 68 87 69 88 #endif /* ! INCL_CF_SWITCHES_H */
Note: See TracChangeset
for help on using the changeset viewer.