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 |
Automatically frees memory on scope exit.
Definition at line 179 of file ShowerPhotonGenerator.h.
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.
|
private |
Definition at line 184 of file ShowerPhotonGenerator.h.
Referenced by ~ScopeGuard().