CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups 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_; }
34  isCached_ = b;
35  return *this;
36  }
37 
38  private:
39  bool isCached_;
40  };
41 
42 } // namespace edm
43 #endif
BoolCache(bool iValue)
Definition: BoolCache.h:31
bool isCached_
Definition: BoolCache.h:39
double b
Definition: hdecay.h:118
BoolCache & operator=(bool b)
Definition: BoolCache.h:33