CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
BoolCache.h
Go to the documentation of this file.
1 #ifndef DataFormats_Common_BoolCache_h
2 #define DataFormats_Common_BoolCache_h
3 // -*- C++ -*-
4 //
5 // Package: Common
6 // Class : BoolCache
7 //
17 //
18 // Original Author: Chris Jones
19 // Created: Sat Aug 18 17:30:08 EDT 2007
20 //
21 
22 // system include files
23 
24 // user include files
25 
26 // forward declarations
27 namespace edm {
28 class BoolCache {
29 public:
31  BoolCache(bool iValue) : isCached_(iValue) {}
32  operator bool() { return isCached_; }
33  BoolCache & operator=( bool b ) { isCached_ = b; return *this; }
34 private:
35  bool isCached_;
36 };
37 
38 }
39 #endif
BoolCache(bool iValue)
Definition: BoolCache.h:31
bool isCached_
Definition: BoolCache.h:35
double b
Definition: hdecay.h:120
BoolCache & operator=(bool b)
Definition: BoolCache.h:33