List of all members | Public Member Functions | Private Attributes
ShowerPhotonGeneratorOG::ScopeGuard Class Reference

Automatically frees memory on scope exit. More...

#include <ShowerPhotonGenerator.h>

Public Member Functions

 ScopeGuard (std::map< int, utl::RandomSamplerFromPDF * > &theMap)
 
 ~ScopeGuard ()
 

Private Attributes

std::map< int,
utl::RandomSamplerFromPDF * > & 
fMap
 

Detailed Description

Automatically frees memory on scope exit.

Definition at line 179 of file ShowerPhotonGenerator.h.

Constructor & Destructor Documentation

ScopeGuard::ScopeGuard ( std::map< int, utl::RandomSamplerFromPDF * > &  theMap)

Definition at line 1219 of file ShowerPhotonGenerator.cc.

ScopeGuard::~ScopeGuard ( )

Definition at line 1225 of file ShowerPhotonGenerator.cc.

References fMap.

Member Data Documentation

std::map<int, utl::RandomSamplerFromPDF*>& ShowerPhotonGeneratorOG::ScopeGuard::fMap
private

Definition at line 184 of file ShowerPhotonGenerator.h.

Referenced by ~ScopeGuard().


The documentation for this class was generated from the following files:

, generated on Tue Sep 26 2023.