|
GENIEGenerator
|
#include <Cache.h>

Classes | |
| struct | Cleaner |
| proper de-allocation of the singleton object More... | |
Public Member Functions | |
| void | OpenCacheFile (string filename) |
| cache file More... | |
| CacheBranchI * | FindCacheBranch (string key) |
| finding/adding cache branches More... | |
| void | AddCacheBranch (string key, CacheBranchI *branch) |
| string | CacheBranchKey (string k0, string k1="", string k2="") const |
| void | RmCacheBranch (string key) |
| removing cache branches More... | |
| void | RmAllCacheBranches (void) |
| void | RmMatchedCacheBranches (string key_substring) |
| void | Print (ostream &stream) const |
| print cache buffers More... | |
Static Public Member Functions | |
| static Cache * | Instance (void) |
Private Member Functions | |
| void | Load (void) |
| load/save More... | |
| void | Save (void) |
| Cache () | |
| singleton class: constructors are private More... | |
| Cache (const Cache &cache) | |
| virtual | ~Cache () |
Private Attributes | |
| map< string, CacheBranchI * > * | fCacheMap |
| map of cache buffers & cache file More... | |
| TFile * | fCacheFile |
Static Private Attributes | |
| static Cache * | fInstance = 0 |
| singleton instance More... | |
Friends | |
| struct | Cleaner |
| ostream & | operator<< (ostream &stream, const Cache &cache) |
GENIE Cache Memory.
|
private |
singleton class: constructors are private
Definition at line 37 of file Cache.cxx.
References fCacheFile, fCacheMap, and fInstance.
Referenced by Instance().
|
private |
|
privatevirtual |
Definition at line 44 of file Cache.cxx.
References fCacheFile, fCacheMap, fInstance, and Save().
| void genie::Cache::AddCacheBranch | ( | string | key, |
| CacheBranchI * | branch | ||
| ) |
Definition at line 88 of file Cache.cxx.
References fCacheMap.
Referenced by genie::KineGeneratorWithCache::AccessCacheBranch(), genie::DISXSec::CacheFreeNucleonXSec(), genie::DMDISXSec::CacheFreeNucleonXSec(), genie::ReinSehgalRESXSecWithCache::CacheResExcitationXSec(), genie::ReinSehgalRESXSecWithCacheFast::CacheResExcitationXSec(), genie::SPPXSecWithCache::CacheResExcitationXSec(), and genie::KNOTunedQPMDISPXSec::DISRESJoinSuppressionFactor().
| string genie::Cache::CacheBranchKey | ( | string | k0, |
| string | k1 = "", |
||
| string | k2 = "" |
||
| ) | const |
Definition at line 93 of file Cache.cxx.
Referenced by genie::KineGeneratorWithCache::AccessCacheBranch(), genie::ReinSehgalRESXSecWithCache::CacheBranchName(), genie::DISXSec::CacheBranchName(), genie::DMDISXSec::CacheBranchName(), genie::SPPXSecWithCache::CacheBranchName(), genie::ReinSehgalRESXSecWithCacheFast::CacheBranchName(), and genie::KNOTunedQPMDISPXSec::DISRESJoinSuppressionFactor().
| CacheBranchI * genie::Cache::FindCacheBranch | ( | string | key | ) |
finding/adding cache branches
Definition at line 80 of file Cache.cxx.
References fCacheMap.
Referenced by genie::KineGeneratorWithCache::AccessCacheBranch(), genie::DISXSec::CacheFreeNucleonXSec(), genie::DMDISXSec::CacheFreeNucleonXSec(), genie::ReinSehgalRESXSecWithCache::CacheResExcitationXSec(), genie::ReinSehgalRESXSecWithCacheFast::CacheResExcitationXSec(), genie::SPPXSecWithCache::CacheResExcitationXSec(), genie::KNOTunedQPMDISPXSec::DISRESJoinSuppressionFactor(), genie::DISXSec::Integrate(), genie::DMDISXSec::Integrate(), genie::SPPXSec::Integrate(), genie::ReinSehgalRESXSec::Integrate(), genie::ReinSehgalSPPXSec::Integrate(), and genie::ReinSehgalRESXSecFast::Integrate().
|
static |
Definition at line 67 of file Cache.cxx.
References Cache(), genie::Cache::Cleaner::DummyMethodAndSilentCompiler(), fCacheMap, and fInstance.
Referenced by genie::KineGeneratorWithCache::AccessCacheBranch(), genie::DISXSec::CacheBranchName(), genie::ReinSehgalRESXSecWithCache::CacheBranchName(), genie::DMDISXSec::CacheBranchName(), genie::ReinSehgalRESXSecWithCacheFast::CacheBranchName(), genie::SPPXSecWithCache::CacheBranchName(), genie::utils::app_init::CacheFile(), genie::DISXSec::CacheFreeNucleonXSec(), genie::DMDISXSec::CacheFreeNucleonXSec(), genie::ReinSehgalRESXSecWithCache::CacheResExcitationXSec(), genie::ReinSehgalRESXSecWithCacheFast::CacheResExcitationXSec(), genie::SPPXSecWithCache::CacheResExcitationXSec(), genie::KNOTunedQPMDISPXSec::DISRESJoinSuppressionFactor(), genie::DISXSec::Integrate(), genie::DMDISXSec::Integrate(), genie::SPPXSec::Integrate(), genie::ReinSehgalRESXSec::Integrate(), genie::ReinSehgalSPPXSec::Integrate(), genie::ReinSehgalRESXSecFast::Integrate(), genie::QPMDISPXSec::LoadConfig(), and genie::QPMDMDISPXSec::LoadConfig().
|
private |
load/save
Definition at line 133 of file Cache.cxx.
References fCacheFile, fCacheMap, LOG, and pNOTICE.
Referenced by OpenCacheFile().
| void genie::Cache::OpenCacheFile | ( | string | filename | ) |
cache file
Definition at line 183 of file Cache.cxx.
References fCacheFile, Load(), LOG, pNOTICE, and pWARN.
Referenced by genie::utils::app_init::CacheFile().
| void genie::Cache::Print | ( | ostream & | stream | ) | const |
print cache buffers
Definition at line 206 of file Cache.cxx.
References fCacheMap.
Referenced by genie::operator<<().
| void genie::Cache::RmAllCacheBranches | ( | void | ) |
Definition at line 110 of file Cache.cxx.
References fCacheMap, LOG, and pNOTICE.
| void genie::Cache::RmCacheBranch | ( | string | key | ) |
removing cache branches
Definition at line 104 of file Cache.cxx.
| void genie::Cache::RmMatchedCacheBranches | ( | string | key_substring | ) |
Definition at line 127 of file Cache.cxx.
Referenced by genie::QPMDISPXSec::LoadConfig(), and genie::QPMDMDISPXSec::LoadConfig().
|
private |
Definition at line 155 of file Cache.cxx.
References fCacheFile, and fCacheMap.
Referenced by ~Cache().
|
friend |
|
private |
|
private |
map of cache buffers & cache file
Definition at line 71 of file Cache.h.
Referenced by AddCacheBranch(), Cache(), FindCacheBranch(), Instance(), Load(), Print(), RmAllCacheBranches(), Save(), and ~Cache().
|
staticprivate |
singleton instance
Definition at line 68 of file Cache.h.
Referenced by Cache(), Instance(), ~Cache(), and genie::Cache::Cleaner::~Cleaner().
1.8.5