ATLAS Offline Software
Loading...
Searching...
No Matches
plainGenerator< T > Struct Template Reference
Collaboration diagram for plainGenerator< T >:

Public Member Functions

void create (bool create, bool record)
StatusCode record (SG::WriteHandle< T > &h)

Public Attributes

std::unique_ptr< T > data
bool doRecord {true}

Detailed Description

template<class T>
struct plainGenerator< T >

Definition at line 210 of file HLTEDMCreator.cxx.

Member Function Documentation

◆ create()

template<class T>
void plainGenerator< T >::create ( bool create,
bool record )
inline

Definition at line 213 of file HLTEDMCreator.cxx.

213 {
215 if ( create )
217 }
std::unique_ptr< T > data
StatusCode record(SG::WriteHandle< T > &h)
void create(bool create, bool record)

◆ record()

template<class T>
StatusCode plainGenerator< T >::record ( SG::WriteHandle< T > & h)
inline

Definition at line 219 of file HLTEDMCreator.cxx.

219 {
220 if ( doRecord )
221 return h.record( std::move( data ) );
222 return StatusCode::SUCCESS;
223 }

Member Data Documentation

◆ data

template<class T>
std::unique_ptr<T> plainGenerator< T >::data

Definition at line 211 of file HLTEDMCreator.cxx.

◆ doRecord

template<class T>
bool plainGenerator< T >::doRecord {true}

Definition at line 212 of file HLTEDMCreator.cxx.

212{true};

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