ATLAS Offline Software
Classes | Functions
Atlas Namespace Reference

Classes

class  ExtendedEventContext
 

Functions

bool hasExtendedEventContext (const EventContext &ctx)
 Test whether a context object has an extended context installed. More...
 
const ExtendedEventContextgetExtendedEventContext (const EventContext &ctx)
 Retrieve an extended context from a context object. More...
 
ExtendedEventContextgetExtendedEventContext (EventContext &ctx)
 Retrieve an extended context from a context object. More...
 
void setExtendedEventContext (EventContext &ctx, ExtendedEventContext &&ectx)
 Move an extended context into a context object. More...
 

Function Documentation

◆ getExtendedEventContext() [1/2]

const ExtendedEventContext & Atlas::getExtendedEventContext ( const EventContext &  ctx)

Retrieve an extended context from a context object.

Definition at line 32 of file ExtendedEventContext.cxx.

33 {
34  return ctx.getExtension<ExtendedEventContext>();
35 }

◆ getExtendedEventContext() [2/2]

ExtendedEventContext & Atlas::getExtendedEventContext ( EventContext &  ctx)

Retrieve an extended context from a context object.

Definition at line 41 of file ExtendedEventContext.cxx.

42 {
43  return ctx.getExtension<ExtendedEventContext>();
44 }

◆ hasExtendedEventContext()

bool Atlas::hasExtendedEventContext ( const EventContext &  ctx)

Test whether a context object has an extended context installed.

Definition at line 23 of file ExtendedEventContext.cxx.

24 {
25  return ctx.hasExtension<ExtendedEventContext>();
26 }

◆ setExtendedEventContext()

void Atlas::setExtendedEventContext ( EventContext &  ctx,
ExtendedEventContext &&  ectx 
)

Move an extended context into a context object.

Definition at line 50 of file ExtendedEventContext.cxx.

52 {
53  ctx.setExtension (std::move (ectx));
54 }