CMS 3D CMS Logo

/data/doxygen/doxygen-1.7.3/gen/CMSSW_4_2_8/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 // $Id: BoolCache.h,v 1.2 2007/09/14 09:44:47 llista Exp $
00021 //
00022 
00023 // system include files
00024 
00025 // user include files
00026 
00027 // forward declarations
00028 namespace edm {
00029 class BoolCache {
00030 public:
00031   BoolCache() : isCached_(false) {}
00032   BoolCache(bool iValue) : isCached_(iValue) {}
00033   operator bool() { return isCached_; }
00034   BoolCache & operator=( bool b ) { isCached_ = b; return *this; }
00035 private:
00036   bool isCached_;
00037 };
00038 
00039 }
00040 #endif