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 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  {
214  doRecord = record;
215  if ( create )
216  data = std::make_unique<T>();
217  }

◆ 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.


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