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 // $Id: BoolCache.h,v 1.1 2007/08/20 13:55:58 chrjones Exp $
21 //
22 
23 // system include files
24 
25 // user include files
26 
27 // forward declarations
28 namespace edm {
29 class BoolCache {
30 public:
32  BoolCache(bool iValue) : isCached_(iValue) {}
33  operator bool() { return isCached_; }
34  BoolCache & operator=( bool b ) { isCached_ = b; return *this; }
35 private:
36  bool isCached_;
37 };
38 
39 }
40 #endif
BoolCache(bool iValue)
Definition: BoolCache.h:32
bool isCached_
Definition: BoolCache.h:36
double b
Definition: hdecay.h:120
BoolCache & operator=(bool b)
Definition: BoolCache.h:34