ATLAS Offline Software
Control
AthenaKernel
src
ExtendedEventContext.cxx
Go to the documentation of this file.
1
/*
2
Copyright (C) 2002-2019 CERN for the benefit of the ATLAS collaboration
3
*/
14
#include "
AthenaKernel/ExtendedEventContext.h
"
15
16
17
namespace
Atlas
{
18
19
23
bool
hasExtendedEventContext
(
const
EventContext& ctx)
24
{
25
return
ctx.hasExtension<
ExtendedEventContext
>();
26
}
27
28
32
const
ExtendedEventContext
&
getExtendedEventContext
(
const
EventContext& ctx)
33
{
34
return
ctx.getExtension<
ExtendedEventContext
>();
35
}
36
37
41
ExtendedEventContext
&
getExtendedEventContext
(EventContext& ctx)
42
{
43
return
ctx.getExtension<
ExtendedEventContext
>();
44
}
45
46
50
void
setExtendedEventContext
(EventContext& ctx,
51
ExtendedEventContext
&& ectx)
52
{
53
ctx.setExtension (std::move (ectx));
54
}
55
56
57
}
// namespace Atlas
ExtendedEventContext.h
Atlas::hasExtendedEventContext
bool hasExtendedEventContext(const EventContext &ctx)
Test whether a context object has an extended context installed.
Definition:
ExtendedEventContext.cxx:23
Atlas::getExtendedEventContext
const ExtendedEventContext & getExtendedEventContext(const EventContext &ctx)
Retrieve an extended context from a context object.
Definition:
ExtendedEventContext.cxx:32
Atlas::ExtendedEventContext
Definition:
ExtendedEventContext.h:23
Atlas::setExtendedEventContext
void setExtendedEventContext(EventContext &ctx, ExtendedEventContext &&ectx)
Move an extended context into a context object.
Definition:
ExtendedEventContext.cxx:50
Atlas
Definition:
ExtendedEventContext.h:21
Generated on Thu Nov 7 2024 21:15:07 for ATLAS Offline Software by
1.8.18