The Gaudi Framework  v36r9p1 (5c15b2bb)
Gaudi::Examples::ShrdPtrConsumer Struct Referencefinal
Inheritance diagram for Gaudi::Examples::ShrdPtrConsumer:
Collaboration diagram for Gaudi::Examples::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 553 of file MakeAndConsume.cpp.

Constructor & Destructor Documentation

◆ ShrdPtrConsumer()

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

Definition at line 555 of file MakeAndConsume.cpp.

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

Member Function Documentation

◆ operator()()

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

Definition at line 558 of file MakeAndConsume.cpp.

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

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:69
std::shared_ptr::get
T get(T... args)
TimingHistograms.name
name
Definition: TimingHistograms.py:25
endmsg
MsgStream & endmsg(MsgStream &s)
MsgStream Modifier: endmsg. Calls the output method of the MsgStream.
Definition: MsgStream.h:203