ATLAS Offline Software
Loading...
Searching...
No Matches
AthContainers/AthContainers/CurrentContext.h
Go to the documentation of this file.
1/*
2 Copyright (C) 2002-2025 CERN for the benefit of the ATLAS collaboration
3*/
4
6
7
8
9#ifndef ATHCONTAINERS_CURRENTCONTEXT_H
10#define ATHCONTAINERS_CURRENTCONTEXT_H
11
12#ifndef XAOD_STANDALONE
13#include <GaudiKernel/ThreadLocalContext.h>
14#else
15
16class EventContext;
17
18namespace Gaudi
19{
20 namespace Hive
21 {
28
29 const EventContext& currentContext ();
30 }
31}
32
39
40class EventContext final
41{
42 // deleting these for now, as users should be passing these objects
43 // by reference.
44 EventContext (const EventContext&) noexcept = delete;
45 EventContext& operator = (const EventContext&) noexcept = delete;
46
47 // making this private, so that users can't instantiate their own
48 // EventContext.
49 EventContext () noexcept = default;
50 friend const EventContext& Gaudi::Hive::currentContext ();
51};
52
53#endif
54
55#endif
=============================================================================