| The Gaudi Framework v28r2-patches (bc4ad17a)

- Main Page
- Related Pages
- Modules
- Namespaces
- Classes
- Files

- Namespace List
- Namespace Members

Classes | Typedefs | Functions
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...
class | FetchDataFromFile

## Typedefs
typedef std::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 const EventContext & | currentContext ()
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)
GAUDI_API void | setCurrentContext (const EventContext *ctx)
GAUDI_API void | setCurrentContext (const EventContext &ctx)

## Typedef Documentation

typedef std::size_t Gaudi::Hive::ContextIdType

Internal type used for the ContextId.

Definition at line 13 of file ThreadLocalContext.h.

## Function Documentation

const EventContext & Gaudi::Hive::currentContext | ( |  | ) |

Definition at line 24 of file ThreadLocalContext.cpp.

24 {
25 return s_curCtx();
26 }

ContextIdType Gaudi::Hive::currentContextEvt | ( |  | ) |

Definition at line 21 of file ThreadLocalContext.cpp.

21 {
22 return s_curCtx().evt();
23 }

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 18 of file ThreadLocalContext.cpp.

18 {
19 return s_curCtx().slot();
20 }

void Gaudi::Hive::setCurrentContext | ( | const EventContext * | ctx | ) |

Definition at line 45 of file ThreadLocalContext.cpp.

45 {
46 s_curCtx() = *ctx;
47 }

void Gaudi::Hive::setCurrentContext | ( | const EventContext & | ctx | ) |

Definition at line 49 of file ThreadLocalContext.cpp.

49 {
50 s_curCtx() = ctx;
51 }

void Gaudi::Hive::setCurrentContextEvt | ( | long int | evtN | ) |

Definition at line 28 of file ThreadLocalContext.cpp.

28 {
29 s_curCtx().setEvt(evtN);
30 }

void Gaudi::Hive::setCurrentContextId | ( | ContextIdType | newId | ) |

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

Definition at line 31 of file ThreadLocalContext.cpp.

31 {
32 s_curCtx().setSlot(newId);
33 }

void Gaudi::Hive::setCurrentContextId | ( | ContextIdType | newId,
|  | long int | evtN
| ) |  |

Definition at line 36 of file ThreadLocalContext.cpp.

36 {
37 s_curCtx().set(evtN,newId);
38 }

void Gaudi::Hive::setCurrentContextId | ( | const EventContext * | ctx | ) |

Definition at line 41 of file ThreadLocalContext.cpp.

41 {
42 s_curCtx() = *ctx;
43 }