The Gaudi Framework
v27r0
Main Page
Related Pages
Modules
Namespaces
Classes
Files
File List
File Members
•
All
Classes
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Properties
Friends
Macros
Modules
Pages
ContextSpecificPtr.cpp
Go to the documentation of this file.
1
#include "GaudiKernel/ContextSpecificPtr.h"
2
#include "GaudiKernel/ThreadLocalPtr.h"
3
#include "GaudiKernel/EventContext.h"
4
5
6
7
static
THREAD_LOCAL_PTR
Gaudi::Hive::ContextIdType
s_currentContextId(0);
8
static
THREAD_LOCAL_PTR
long
int
s_currentContextEvt(-1);
9
10
namespace
Gaudi
{
11
namespace
Hive
{
12
ContextIdType
currentContextId
() {
13
return
s_currentContextId;
14
}
15
ContextIdType
currentContextEvt
() {
16
return
s_currentContextEvt;
17
}
18
void
setCurrentContextEvt
(
long
int
evtN) {
19
s_currentContextEvt = evtN;
20
}
21
void
setCurrentContextId
(
ContextIdType
newId) {
22
s_currentContextId = newId;
23
}
24
void
setCurrentContextId
(
ContextIdType
newId,
long
int
evtN) {
25
s_currentContextId = newId;
26
s_currentContextEvt = evtN;
27
}
28
29
void
setCurrentContextId
(
const
EventContext
* ctx) {
30
if
(ctx != 0) {
31
s_currentContextId = ctx->
slot
();
32
s_currentContextEvt = ctx->
evt
();
33
}
else
{
34
s_currentContextId = 0;
35
s_currentContextEvt = -1;
36
}
37
}
38
39
}
40
}
Gaudi::Hive::ContextIdType
size_t ContextIdType
Internal type used for the ContextId.
Definition:
ContextSpecificPtr.h:18
EventContext
This class represents an entry point to all the event specific data.
Definition:
EventContext.h:22
Gaudi::Hive::setCurrentContextId
GAUDI_API void setCurrentContextId(ContextIdType newId)
Used by the framework to change the value of the current context id.
Definition:
ContextSpecificPtr.cpp:21
Gaudi::Hive::currentContextId
GAUDI_API ContextIdType currentContextId()
Return the current context id.
Definition:
ContextSpecificPtr.cpp:12
EventContext::evt
long int evt() const
Definition:
EventContext.h:37
Gaudi::Hive::currentContextEvt
GAUDI_API ContextIdType currentContextEvt()
Definition:
ContextSpecificPtr.cpp:15
THREAD_LOCAL_PTR
#define THREAD_LOCAL_PTR
Definition:
ThreadLocalPtr.h:11
EventContext::slot
ID_type slot() const
Definition:
EventContext.h:38
Hive
Definition:
HiveEventRegistryEntry.h:24
Gaudi::Hive::setCurrentContextEvt
GAUDI_API void setCurrentContextEvt(long int evtN)
Definition:
ContextSpecificPtr.cpp:18
Gaudi
Helper functions to set/get the application return code.
Definition:
__init__.py:1
GaudiKernel
src
Lib
ContextSpecificPtr.cpp
Generated on Thu Feb 4 2016 16:42:13 for The Gaudi Framework by
1.8.9.1