The Gaudi Framework  v38r0 (2143aa4c)
Gaudi::Examples::KeyedDataProducer Struct Referencefinal
Inheritance diagram for Gaudi::Examples::KeyedDataProducer:
Collaboration diagram for Gaudi::Examples::KeyedDataProducer:

Public Member Functions

 KeyedDataProducer (const std::string &name, ISvcLocator *svcLoc)
 
int_container operator() () const override
 

Detailed Description

Definition at line 124 of file MakeAndConsume.cpp.

Constructor & Destructor Documentation

◆ KeyedDataProducer()

Gaudi::Examples::KeyedDataProducer::KeyedDataProducer ( const std::string name,
ISvcLocator svcLoc 
)
inline

Definition at line 126 of file MakeAndConsume.cpp.

127  : Producer( name, svcLoc, KeyValue( "OutputLocation", "/Event/MyKeyed" ) ) {}

Member Function Documentation

◆ operator()()

int_container Gaudi::Examples::KeyedDataProducer::operator() ( ) const
inlineoverride

Definition at line 129 of file MakeAndConsume.cpp.

129  {
130  int_container container;
131  auto a = new KeyedObject<int>{ 4 };
132  container.add( a );
133  auto b = new KeyedObject<int>{ 5 };
134  container.add( b );
135  info() << "executing KeyedDataProducer, storing [4,5] into " << outputLocation() << endmsg;
136  return container;
137  }

The documentation for this struct was generated from the following file:
bug_34121.name
name
Definition: bug_34121.py:20
Gaudi::Functional::Producer
details::Producer< Signature, Traits_, details::isLegacy< Traits_ > > Producer
Definition: Producer.h:36
KeyedObject< int >
Gaudi::Examples::int_container
KeyedContainer< KeyedObject< int >, Containers::HashMap > int_container
Definition: MakeAndConsume.cpp:123
endmsg
MsgStream & endmsg(MsgStream &s)
MsgStream Modifier: endmsg. Calls the output method of the MsgStream.
Definition: MsgStream.h:203