The Gaudi Framework  master (594c33fa)
Gaudi::TestSuite::ShrdPtrConsumer Struct Referencefinal
Inheritance diagram for Gaudi::TestSuite::ShrdPtrConsumer:
Collaboration diagram for Gaudi::TestSuite::ShrdPtrConsumer:

Public Member Functions

 ShrdPtrConsumer (const std::string &name, ISvcLocator *svcLoc)
 
void operator() (const std::shared_ptr< Foo > &foo) const override
 

Detailed Description

Definition at line 554 of file MakeAndConsume.cpp.

Constructor & Destructor Documentation

◆ ShrdPtrConsumer()

Gaudi::TestSuite::ShrdPtrConsumer::ShrdPtrConsumer ( const std::string name,
ISvcLocator svcLoc 
)
inline

Definition at line 556 of file MakeAndConsume.cpp.

557  : Consumer( name, svcLoc, KeyValue( "InputLocation", "/Event/MySharedFoo" ) ) {}

Member Function Documentation

◆ operator()()

void Gaudi::TestSuite::ShrdPtrConsumer::operator() ( const std::shared_ptr< Foo > &  foo) const
inlineoverride

Definition at line 559 of file MakeAndConsume.cpp.

559  {
560  info() << "executing ShrdPtrConsumer, got shared_ptr<Foo> with payload at " << foo.get() << " with value "
561  << foo->i << " from " << inputLocation() << endmsg;
562  }

The documentation for this struct was generated from the following file:
Gaudi::Functional::Consumer
details::Consumer< Signature, Traits_, details::isLegacy< Traits_ > > Consumer
Definition: Consumer.h:68
std::shared_ptr::get
T get(T... args)
endmsg
MsgStream & endmsg(MsgStream &s)
MsgStream Modifier: endmsg. Calls the output method of the MsgStream.
Definition: MsgStream.h:203
ConditionsStallTest.name
name
Definition: ConditionsStallTest.py:77