CMS 3D CMS Logo

All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Modules 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
edm::BoolCache
Definition: BoolCache.h:28
electrons_cff.bool
bool
Definition: electrons_cff.py:366
funct::false
false
Definition: Factorize.h:29
edm
HLT enums.
Definition: AlignableModifier.h:19
edm::BoolCache::operator=
BoolCache & operator=(bool b)
Definition: BoolCache.h:33
edm::BoolCache::isCached_
bool isCached_
Definition: BoolCache.h:39
b
double b
Definition: hdecay.h:118
edm::BoolCache::BoolCache
BoolCache()
Definition: BoolCache.h:30
edm::BoolCache::BoolCache
BoolCache(bool iValue)
Definition: BoolCache.h:31