![]() |
The Gaudi Framework
v25r3
|
Helper "sentry" class to automatize the safe register/unregister the algorithm's context. More...
#include <GaudiKernel/IAlgContextSvc.h>
Public Member Functions | |
AlgContext (IAlgContextSvc *svc, IAlgorithm *alg) | |
constructor from the service and the algorithm Internally invokes IAlgContextSvc::setCurrentAlg More... | |
AlgContext (IAlgorithm *alg, IAlgContextSvc *svc) | |
constructor from the algorithm and the service Internally invokes IAlgContextSvc::setCurrentAlg More... | |
~AlgContext () | |
destructor Internally invokes IAlgContextSvc::unSetCurrentAlg More... | |
Private Member Functions | |
AlgContext () | |
no default constructor! More... | |
AlgContext (const AlgContext &right) | |
no copy! More... | |
AlgContext & | operator= (const AlgContext &right) |
no assignement! More... | |
Private Attributes | |
IAlgContextSvc * | m_svc |
IAlgorithm * | m_alg |
Helper "sentry" class to automatize the safe register/unregister the algorithm's context.
Typical explicit usage:
Note: for the regular job the context is properly defined with the help of corresponding auditor AlgContextAuditor. This helper class is needed only if one needs to ensure that the algorithm must register its context independently on job/auditor configuration
Definition at line 84 of file IAlgContextSvc.h.
Gaudi::Utils::AlgContext::AlgContext | ( | IAlgContextSvc * | svc, |
IAlgorithm * | alg | ||
) |
constructor from the service and the algorithm Internally invokes IAlgContextSvc::setCurrentAlg
svc | pointer to algorithm context service |
alg | pointer to the current algorithm |
Definition at line 42 of file AlgContext.cpp.
Gaudi::Utils::AlgContext::AlgContext | ( | IAlgorithm * | alg, |
IAlgContextSvc * | svc | ||
) |
constructor from the algorithm and the service Internally invokes IAlgContextSvc::setCurrentAlg
alg | pointer to the current algorithm |
svc | pointer to algorithm context service |
Definition at line 61 of file AlgContext.cpp.
Gaudi::Utils::AlgContext::~AlgContext | ( | ) |
destructor Internally invokes IAlgContextSvc::unSetCurrentAlg
Definition at line 77 of file AlgContext.cpp.
|
private |
no default constructor!
|
private |
no copy!
|
private |
no assignement!
|
private |
Definition at line 122 of file IAlgContextSvc.h.
|
private |
Definition at line 121 of file IAlgContextSvc.h.