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

Public Member Functions

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

Public Attributes

Gaudi::Property< int > m_value { this, "Value", 7, "The integer value to produce." }

Detailed Description

Definition at line 619 of file MakeAndConsume.cpp.

Constructor & Destructor Documentation

◆ ShrdPtrProducer()

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

Definition at line 621 of file MakeAndConsume.cpp.

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

Member Function Documentation

◆ operator()()

std::shared_ptr< Foo > Gaudi::TestSuite::ShrdPtrProducer::operator() ( ) const
inlineoverride

Definition at line 624 of file MakeAndConsume.cpp.

624 {
625 auto foo = std::make_shared<Foo>( m_value.value() );
626 info() << "executing ShrdPtrProducer, storing shared_ptr<Foo> with payload at " << foo.get() << " and value "
627 << foo->i << " into " << outputLocation() << endmsg;
628 return foo;
629 }
MsgStream & endmsg(MsgStream &s)
MsgStream Modifier: endmsg. Calls the output method of the MsgStream.
Definition MsgStream.h:198

Member Data Documentation

◆ m_value

Gaudi::Property<int> Gaudi::TestSuite::ShrdPtrProducer::m_value { this, "Value", 7, "The integer value to produce." }

Definition at line 631 of file MakeAndConsume.cpp.

631{ this, "Value", 7, "The integer value to produce." };

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