Gaudi::Hive Namespace Reference

Classes

class  ContextSpecificData
 Implementation of a context specific storage accessible as a sort of smart reference class. More...
 
class  ContextSpecificPtr
 Simple implementation of a smart pointer with different values for different event contexts (slots). More...
 

Typedefs

typedef size_t ContextIdType
 Internal type used for the ContextId. More...
 

Functions

GAUDI_API ContextIdType currentContextId ()
 Return the current context id. More...
 
GAUDI_API ContextIdType currentContextEvt ()
 
GAUDI_API void setCurrentContextId (ContextIdType newId)
 Used by the framework to change the value of the current context id. More...
 
GAUDI_API void setCurrentContextEvt (long int evtN)
 
GAUDI_API void setCurrentContextId (ContextIdType newId, long int evtN)
 
GAUDI_API void setCurrentContextId (const EventContext *ctx)
 

Typedef Documentation

typedef size_t Gaudi::Hive::ContextIdType

Internal type used for the ContextId.

Definition at line 18 of file ContextSpecificPtr.h.

Function Documentation

GAUDI_API ContextIdType Gaudi::Hive::currentContextEvt ( )

Definition at line 15 of file ContextSpecificPtr.cpp.

15  {
16  return s_currentContextEvt;
17  }
GAUDI_API ContextIdType Gaudi::Hive::currentContextId ( )

Return the current context id.

The returned id is valid only within the (sys)Execute method of algorithms.

Definition at line 12 of file ContextSpecificPtr.cpp.

12  {
13  return s_currentContextId;
14  }
GAUDI_API void Gaudi::Hive::setCurrentContextEvt ( long int  evtN)

Definition at line 18 of file ContextSpecificPtr.cpp.

18  {
19  s_currentContextEvt = evtN;
20  }
GAUDI_API void Gaudi::Hive::setCurrentContextId ( ContextIdType  newId)

Used by the framework to change the value of the current context id.

Definition at line 21 of file ContextSpecificPtr.cpp.

21  {
22  s_currentContextId = newId;
23  }
GAUDI_API void Gaudi::Hive::setCurrentContextId ( ContextIdType  newId,
long int  evtN 
)

Definition at line 24 of file ContextSpecificPtr.cpp.

24  {
25  s_currentContextId = newId;
26  s_currentContextEvt = evtN;
27  }
GAUDI_API void Gaudi::Hive::setCurrentContextId ( const EventContext ctx)

Definition at line 29 of file ContextSpecificPtr.cpp.

29  {
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  }
long int evt() const
Definition: EventContext.h:37
ID_type slot() const
Definition: EventContext.h:38