Loading [MathJax]/extensions/tex2jax.js
ATLAS Offline Software
All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Modules Pages
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 206 of file HLTEDMCreator.cxx.

Member Function Documentation

◆ create()

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

Definition at line 209 of file HLTEDMCreator.cxx.

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

◆ record()

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

Definition at line 215 of file HLTEDMCreator.cxx.

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

Member Data Documentation

◆ data

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

Definition at line 207 of file HLTEDMCreator.cxx.

◆ doRecord

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

Definition at line 208 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:207
plainGenerator::doRecord
bool doRecord
Definition: HLTEDMCreator.cxx:208
h
plainGenerator::record
StatusCode record(SG::WriteHandle< T > &h)
Definition: HLTEDMCreator.cxx:215
plainGenerator::create
void create(bool create, bool record)
Definition: HLTEDMCreator.cxx:209