The Gaudi Framework  v36r11 (bdb84f5f)
Gaudi::Examples::ShrdPtrProducer Struct Referencefinal
Inheritance diagram for Gaudi::Examples::ShrdPtrProducer:
Collaboration diagram for Gaudi::Examples::ShrdPtrProducer:

Public Member Functions

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

Public Attributes

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

Detailed Description

Definition at line 536 of file MakeAndConsume.cpp.

Constructor & Destructor Documentation

◆ ShrdPtrProducer()

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

Definition at line 538 of file MakeAndConsume.cpp.

539  : Producer( name, svcLoc, KeyValue( "OutputLocation", "/Event/MySharedFoo" ) ) {}

Member Function Documentation

◆ operator()()

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

Definition at line 541 of file MakeAndConsume.cpp.

541  {
542  auto foo = std::make_shared<Foo>( m_value.value() );
543  info() << "executing ShrdPtrProducer, storing shared_ptr<Foo> with payload at " << foo.get() << " and value "
544  << foo->i << " into " << outputLocation() << endmsg;
545  return foo;
546  }

Member Data Documentation

◆ m_value

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

Definition at line 548 of file MakeAndConsume.cpp.


The documentation for this struct was generated from the following file:
TimingHistograms.name
name
Definition: TimingHistograms.py:25
Gaudi::Functional::Producer
details::Producer< Signature, Traits_, details::isLegacy< Traits_ > > Producer
Definition: Producer.h:37
Gaudi::Property::value
const ValueType & value() const
Definition: Property.h:239
endmsg
MsgStream & endmsg(MsgStream &s)
MsgStream Modifier: endmsg. Calls the output method of the MsgStream.
Definition: MsgStream.h:203
Gaudi::Examples::ShrdPtrProducer::m_value
Gaudi::Property< int > m_value
Definition: MakeAndConsume.cpp:548