#include <G4CacheDetails.hh>
template<class VALTYPE>
class G4CacheReference< VALTYPE >
Definition at line 77 of file G4CacheDetails.hh.
◆ cache_container
◆ Destroy()
Definition at line 157 of file G4CacheDetails.hh.
161 cout<<
"Destroying element"<<
id<<
" is last?"<<last<<endl;
163 if (
cache->size() < id ) {
165 msg<<
"Internal fatal error. Invalid G4Cache size (requested id: "<<
id<<
" but cache has size: "<<
cache->size();
166 msg<<
" Possibly client created G4Cache object in a thread and tried to delete it from another thread!";
170 if (
cache->size() >
id && (*cache)[id] ) {
static G4ThreadLocal cache_container * cache
std::ostringstream G4ExceptionDescription
void G4Exception(const char *originOfException, const char *exceptionCode, G4ExceptionSeverity severity, const char *comments)
◆ GetCache()
Definition at line 182 of file G4CacheDetails.hh.
184 return *(
cache->operator[](id));
static G4ThreadLocal cache_container * cache
◆ Initialize()
Definition at line 141 of file G4CacheDetails.hh.
145 cout<<
"Generic template"<<endl;
150 if (
cache->size() <= id )
151 cache->resize(
id+1,static_cast<V*>(0));
152 if ( (*
cache)[
id] == 0 ) (*cache)[id]=
new V;
std::vector< VALTYPE * > cache_container
static G4ThreadLocal cache_container * cache
◆ cache
The documentation for this class was generated from the following file: