#include <G4CacheDetails.hh>
Definition at line 116 of file G4CacheDetails.hh.
◆ Destroy()
Definition at line 298 of file G4CacheDetails.hh.
299{
300 if(cache() != nullptr && last)
301 {
302#ifdef g4cdebug
303 std::cout << "DB: Destroying LAST element! Is it last? " << last
304 << std::endl;
305#endif
306 delete cache();
307 cache() = nullptr;
308 }
309}
◆ GetCache()
◆ Initialize()
Definition at line 283 of file G4CacheDetails.hh.
284{
285 if(cache() == nullptr)
286 {
287#ifdef g4cdebug
288 std::cout << "Specialized template for G4double container..." << std::endl;
289#endif
290 cache() = new cache_container;
291 }
292 if(cache()->size() <= id)
293 {
294 cache()->resize(
id + 1,
static_cast<G4double>(0));
295 }
296}
The documentation for this class was generated from the following files: