ATLAS Offline Software
Public Member Functions | Public Attributes | List of all members
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 208 of file HLTEDMCreator.cxx.

Member Function Documentation

◆ create()

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

Definition at line 211 of file HLTEDMCreator.cxx.

211  {
212  doRecord = record;
213  if ( create )
214  data = std::make_unique<T>();
215  }

◆ record()

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

Definition at line 217 of file HLTEDMCreator.cxx.

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

Member Data Documentation

◆ data

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

Definition at line 209 of file HLTEDMCreator.cxx.

◆ doRecord

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

Definition at line 210 of file HLTEDMCreator.cxx.


The documentation for this struct was generated from the following file:
plainGenerator::data
std::unique_ptr< T > data
Definition: HLTEDMCreator.cxx:209
plainGenerator::doRecord
bool doRecord
Definition: HLTEDMCreator.cxx:210
h
plainGenerator::record
StatusCode record(SG::WriteHandle< T > &h)
Definition: HLTEDMCreator.cxx:217
plainGenerator::create
void create(bool create, bool record)
Definition: HLTEDMCreator.cxx:211