LArSoft  v07_13_02
Liquid Argon Software toolkit - http://larsoft.org/
art::BoolCache Class Reference

#include "BoolCache.h"

Public Member Functions

 BoolCache ()
 
 BoolCache (bool iValue)
 
 operator bool ()
 
BoolCacheoperator= (bool b)
 

Private Attributes

bool isCached_
 

Detailed Description

Definition at line 30 of file BoolCache.h.

Constructor & Destructor Documentation

art::BoolCache::BoolCache ( )
inline

Definition at line 32 of file BoolCache.h.

32 : isCached_(false) {}
bool isCached_
Definition: BoolCache.h:44
art::BoolCache::BoolCache ( bool  iValue)
inline

Definition at line 33 of file BoolCache.h.

33 : isCached_(iValue) {}
bool isCached_
Definition: BoolCache.h:44

Member Function Documentation

art::BoolCache::operator bool ( )
inline

Definition at line 34 of file BoolCache.h.

References isCached_.

34 { return isCached_; }
bool isCached_
Definition: BoolCache.h:44
BoolCache& art::BoolCache::operator= ( bool  b)
inline

Definition at line 37 of file BoolCache.h.

References isCached_.

38  {
39  isCached_ = b;
40  return *this;
41  }
bool isCached_
Definition: BoolCache.h:44

Member Data Documentation

bool art::BoolCache::isCached_
private

Definition at line 44 of file BoolCache.h.

Referenced by operator bool(), and operator=().


The documentation for this class was generated from the following file: