The Gaudi Framework
v30r3 (a5ef0a68)
|
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 ()=delete | |
AlgContext (const AlgContext &right)=delete | |
AlgContext & | operator= (const AlgContext &right)=delete |
Private Attributes | |
SmartIF< IAlgContextSvc > | m_svc |
SmartIF< 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 77 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 23 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 38 of file AlgContext.cpp.
Gaudi::Utils::AlgContext::~AlgContext | ( | ) |
destructor Internally invokes IAlgContextSvc::unSetCurrentAlg
Definition at line 51 of file AlgContext.cpp.
|
privatedelete |
|
privatedelete |
|
privatedelete |
|
private |
Definition at line 113 of file IAlgContextSvc.h.
|
private |
Definition at line 112 of file IAlgContextSvc.h.