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 153 of file HLTEDMCreator.cxx.

Member Function Documentation

◆ create()

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

Definition at line 156 of file HLTEDMCreator.cxx.

156  {
157  doRecord = record;
158  if ( create )
159  data = std::make_unique<T>();
160  }

◆ record()

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

Definition at line 162 of file HLTEDMCreator.cxx.

162  {
163  if ( doRecord )
164  return h.record( std::move( data ) );
165  return StatusCode::SUCCESS;
166  }

Member Data Documentation

◆ data

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

Definition at line 154 of file HLTEDMCreator.cxx.

◆ doRecord

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

Definition at line 155 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:154
plainGenerator::doRecord
bool doRecord
Definition: HLTEDMCreator.cxx:155
h
plainGenerator::record
StatusCode record(SG::WriteHandle< T > &h)
Definition: HLTEDMCreator.cxx:162
plainGenerator::create
void create(bool create, bool record)
Definition: HLTEDMCreator.cxx:156