ATLAS Offline Software
SGTools/SGTools/CurrentEventStore.h
Go to the documentation of this file.
1 // This file's extension implies that it's C, but it's really -*- C++ -*-.
2 
3 /*
4  Copyright (C) 2002-2017 CERN for the benefit of the ATLAS collaboration
5 */
6 
7 // $Id$
16 #ifndef SGTOOLS_CURRENTEVENTSTORE_H
17 #define SGTOOLS_CURRENTEVENTSTORE_H
18 
19 class IProxyDict;
20 
21 
22 namespace SG {
23 
24 
25 
37 {
38 public:
40  static IProxyDict* store();
41 
42 
44  static IProxyDict* storeOol();
45 
46 
50 
51 
57  class Push
58  {
59  public:
61  ~Push();
62 
63  private:
65  };
66 
67 
68 private:
70  static thread_local IProxyDict* m_curStore;
71 };
72 
73 
74 } // namespace SG
75 
76 
78 
79 
80 #endif // not SGTOOLS_CURRENTEVENTSTORE_H
SG
Forward declaration.
Definition: CaloCellPacker_400_500.h:32
SG::CurrentEventStore::Push::m_oldStore
IProxyDict * m_oldStore
Definition: SGTools/SGTools/CurrentEventStore.h:64
SG::CurrentEventStore::Push
Temporarily change the current store.
Definition: SGTools/SGTools/CurrentEventStore.h:58
SG::CurrentEventStore::setStore
static IProxyDict * setStore(IProxyDict *store)
Set the current store.
Definition: CurrentEventStore.cxx:36
CurrentEventStore.icc
SG::CurrentEventStore
Hold a pointer to the current event store.
Definition: SGTools/SGTools/CurrentEventStore.h:37
SG::CurrentEventStore::store
static IProxyDict * store()
Fetch the current store.
IProxyDict
A proxy dictionary.
Definition: AthenaKernel/AthenaKernel/IProxyDict.h:47
SG::CurrentEventStore::m_curStore
static thread_local IProxyDict * m_curStore
The current event store.
Definition: SGTools/SGTools/CurrentEventStore.h:70
SG::CurrentEventStore::Push::~Push
~Push()
SG::CurrentEventStore::Push::Push
Push(IProxyDict *store)
SG::CurrentEventStore::storeOol
static IProxyDict * storeOol()
Fetch the current store (out-of-line version).
Definition: CurrentEventStore.cxx:26