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.
November 26, 2004
Copyright (c) 2003-2019, The GENIE Collaboration For the full text of the license visit http://copyright.genie-mc.org or see $GENIE/LICENSE
|
private |
singleton class: constructors are private
Definition at line 46 of file Cache.cxx.
References fCacheFile, fCacheMap, and fInstance.
Referenced by Instance().
|
private |
|
privatevirtual |
Definition at line 53 of file Cache.cxx.
References compare_h5_caf::branch, fCacheFile, fCacheMap, fInstance, and Save().
void genie::Cache::AddCacheBranch | ( | string | key, |
CacheBranchI * | branch | ||
) |
Definition at line 97 of file Cache.cxx.
References fCacheMap.
Referenced by genie::KineGeneratorWithCache::AccessCacheBranch(), genie::QELEventGeneratorSM::AccessCacheBranch2(), genie::QELEventGeneratorSM::AccessCacheBranchDiffv(), genie::DISXSec::CacheFreeNucleonXSec(), genie::DMDISXSec::CacheFreeNucleonXSec(), genie::ReinSehgalRESXSecWithCache::CacheResExcitationXSec(), genie::ReinSehgalRESXSecWithCacheFast::CacheResExcitationXSec(), genie::QPMDISPXSec::DISRESJoinSuppressionFactor(), and genie::QPMDMDISPXSec::DMDISRESJoinSuppressionFactor().
Definition at line 102 of file Cache.cxx.
References findDuplicateFiles::key.
Referenced by genie::KineGeneratorWithCache::AccessCacheBranch(), genie::QELEventGeneratorSM::AccessCacheBranch2(), genie::QELEventGeneratorSM::AccessCacheBranchDiffv(), genie::DISXSec::CacheBranchName(), genie::ReinSehgalRESXSecWithCache::CacheBranchName(), genie::DMDISXSec::CacheBranchName(), genie::ReinSehgalRESXSecWithCacheFast::CacheBranchName(), genie::QPMDISPXSec::DISRESJoinSuppressionFactor(), and genie::QPMDMDISPXSec::DMDISRESJoinSuppressionFactor().
CacheBranchI * genie::Cache::FindCacheBranch | ( | string | key | ) |
finding/adding cache branches
Definition at line 89 of file Cache.cxx.
References fCacheMap.
Referenced by genie::KineGeneratorWithCache::AccessCacheBranch(), genie::QELEventGeneratorSM::AccessCacheBranch2(), genie::QELEventGeneratorSM::AccessCacheBranchDiffv(), genie::DISXSec::CacheFreeNucleonXSec(), genie::DMDISXSec::CacheFreeNucleonXSec(), genie::ReinSehgalRESXSecWithCache::CacheResExcitationXSec(), genie::ReinSehgalRESXSecWithCacheFast::CacheResExcitationXSec(), genie::QPMDISPXSec::DISRESJoinSuppressionFactor(), genie::QPMDMDISPXSec::DMDISRESJoinSuppressionFactor(), genie::DISXSec::Integrate(), genie::DMDISXSec::Integrate(), genie::ReinSehgalRESXSec::Integrate(), genie::ReinSehgalRESXSecFast::Integrate(), and genie::ReinSehgalSPPXSec::Integrate().
Definition at line 76 of file Cache.cxx.
References Cache(), genie::Cache::Cleaner::DummyMethodAndSilentCompiler(), fCacheMap, and fInstance.
Referenced by genie::KineGeneratorWithCache::AccessCacheBranch(), genie::QELEventGeneratorSM::AccessCacheBranch2(), genie::QELEventGeneratorSM::AccessCacheBranchDiffv(), genie::DISXSec::CacheBranchName(), genie::ReinSehgalRESXSecWithCache::CacheBranchName(), genie::DMDISXSec::CacheBranchName(), genie::ReinSehgalRESXSecWithCacheFast::CacheBranchName(), genie::utils::app_init::CacheFile(), genie::DISXSec::CacheFreeNucleonXSec(), genie::DMDISXSec::CacheFreeNucleonXSec(), genie::ReinSehgalRESXSecWithCache::CacheResExcitationXSec(), genie::ReinSehgalRESXSecWithCacheFast::CacheResExcitationXSec(), genie::QPMDISPXSec::DISRESJoinSuppressionFactor(), genie::QPMDMDISPXSec::DMDISRESJoinSuppressionFactor(), genie::DISXSec::Integrate(), genie::DMDISXSec::Integrate(), genie::ReinSehgalRESXSec::Integrate(), genie::ReinSehgalRESXSecFast::Integrate(), genie::ReinSehgalSPPXSec::Integrate(), genie::QPMDISPXSec::LoadConfig(), and genie::QPMDMDISPXSec::LoadConfig().
load/save
Definition at line 142 of file Cache.cxx.
References fCacheFile, fCacheMap, findDuplicateFiles::key, LOG, pNOTICE, and string.
Referenced by OpenCacheFile().
cache file
Definition at line 192 of file Cache.cxx.
References fCacheFile, shutoffs::filename, 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 215 of file Cache.cxx.
References compare_h5_caf::branch, fCacheMap, and findDuplicateFiles::key.
Referenced by genie::operator<<().
Definition at line 119 of file Cache.cxx.
References compare_h5_caf::branch, fCacheMap, LOG, and pNOTICE.
removing cache branches
Definition at line 113 of file Cache.cxx.
References findDuplicateFiles::key, LOG, and pNOTICE.
Definition at line 136 of file Cache.cxx.
Referenced by genie::QPMDISPXSec::LoadConfig(), and genie::QPMDMDISPXSec::LoadConfig().
Definition at line 164 of file Cache.cxx.
References compare_h5_caf::branch, fCacheFile, fCacheMap, and findDuplicateFiles::key.
Referenced by ~Cache().
|
friend |
|
private |
|
private |
map of cache buffers & cache file
Definition at line 72 of file Cache.h.
Referenced by AddCacheBranch(), Cache(), FindCacheBranch(), Instance(), Load(), Print(), RmAllCacheBranches(), Save(), and ~Cache().
|
staticprivate |
singleton instance
Definition at line 69 of file Cache.h.
Referenced by Cache(), Instance(), genie::operator<<(), ~Cache(), and genie::Cache::Cleaner::~Cleaner().