#include <G4CacheDetails.hh>
template<class VALTYPE>
class G4CacheReference< VALTYPE >
Definition at line 77 of file G4CacheDetails.hh.
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] ) {
std::ostringstream G4ExceptionDescription
void G4Exception(const char *originOfException, const char *exceptionCode, G4ExceptionSeverity severity, const char *comments)
Definition at line 141 of file G4CacheDetails.hh.
145 cout<<
"Generic template"<<endl;
149 cache =
new cache_container;
150 if ( cache->size() <= id )
151 cache->resize(
id+1,static_cast<V*>(0));
152 if ( (*cache)[
id] == 0 ) (*cache)[id]=
new V;
The documentation for this class was generated from the following file: