CMS 3D CMS Logo

/data/refman/pasoursint/CMSSW_5_3_4/src/DataFormats/Common/interface/BoolCache.h

Go to the documentation of this file.
00001 #ifndef DataFormats_Common_BoolCache_h
00002 #define DataFormats_Common_BoolCache_h
00003 // -*- C++ -*-
00004 //
00005 // Package:     Common
00006 // Class  :     BoolCache
00007 // 
00017 //
00018 // Original Author:  Chris Jones
00019 //         Created:  Sat Aug 18 17:30:08 EDT 2007
00020 //
00021 
00022 // system include files
00023 
00024 // user include files
00025 
00026 // forward declarations
00027 namespace edm {
00028 class BoolCache {
00029 public:
00030   BoolCache() : isCached_(false) {}
00031   BoolCache(bool iValue) : isCached_(iValue) {}
00032   operator bool() { return isCached_; }
00033   BoolCache & operator=( bool b ) { isCached_ = b; return *this; }
00034 private:
00035   bool isCached_;
00036 };
00037 
00038 }
00039 #endif