The Gaudi Framework  v41r0 (bdbe7744)
Loading...
Searching...
No Matches
Gaudi::TestSuite::KeyedDataProducer Struct Referencefinal
Inheritance diagram for Gaudi::TestSuite::KeyedDataProducer:
Collaboration diagram for Gaudi::TestSuite::KeyedDataProducer:

Public Member Functions

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

Detailed Description

Definition at line 142 of file MakeAndConsume.cpp.

Constructor & Destructor Documentation

◆ KeyedDataProducer()

Gaudi::TestSuite::KeyedDataProducer::KeyedDataProducer ( const std::string & name,
ISvcLocator * svcLoc )
inline

Definition at line 144 of file MakeAndConsume.cpp.

145 : Producer( name, svcLoc, { "OutputLocation", "/Event/MyKeyed" } ) {}
details::Producer< Signature, Traits_, details::isLegacy< Traits_ > > Producer
Definition Producer.h:37

Member Function Documentation

◆ operator()()

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

Definition at line 147 of file MakeAndConsume.cpp.

147 {
148 int_container container;
149 auto a = new KeyedObject<int>{ 4 };
150 container.add( a );
151 auto b = new KeyedObject<int>{ 5 };
152 container.add( b );
153 info() << "executing KeyedDataProducer, storing [4,5] into " << outputLocation() << endmsg;
154 return container;
155 }
MsgStream & endmsg(MsgStream &s)
MsgStream Modifier: endmsg. Calls the output method of the MsgStream.
Definition MsgStream.h:198
long add(ContainedObject *pObject) override
ObjectContainerBase overload: Add an object to the container.
KeyedContainer< KeyedObject< int >, Containers::HashMap > int_container

The documentation for this struct was generated from the following file: