#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.
November 26, 2004
Copyright (c) 2003-2020, The GENIE Collaboration For the full text of the license visit http://copyright.genie-mc.org
|
private |
singleton class: constructors are private
Definition at line 37 of file Cache.cxx.
|
private |
|
privatevirtual |
Definition at line 44 of file Cache.cxx.
void genie::Cache::AddCacheBranch | ( | string | key, |
CacheBranchI * | branch | ||
) |
Definition at line 88 of file Cache.cxx.
CacheBranchI * genie::Cache::FindCacheBranch | ( | string | key | ) |
finding/adding cache branches
Definition at line 80 of file Cache.cxx.
|
static |
Definition at line 67 of file Cache.cxx.
|
private |
load/save
Definition at line 133 of file Cache.cxx.
void genie::Cache::OpenCacheFile | ( | string | filename | ) |
cache file
Definition at line 183 of file Cache.cxx.
void genie::Cache::Print | ( | ostream & | stream | ) | const |
print cache buffers
Definition at line 206 of file Cache.cxx.
void genie::Cache::RmAllCacheBranches | ( | void | ) |
Definition at line 110 of file Cache.cxx.
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.
|
private |
Definition at line 155 of file Cache.cxx.
|
friend |
|
private |
|
staticprivate |