ATLAS Offline Software
Public Attributes | List of all members
H5Utils::VariableFillers Class Reference

Variable filler arrays. More...

#include <HdfTuple.h>

Inheritance diagram for H5Utils::VariableFillers:
Collaboration diagram for H5Utils::VariableFillers:

Public Member Functions

template<typename T >
void add (const std::string &name, const std::function< T()> &)
 Variable add method. More...
 

Public Attributes

elements
 STL member. More...
 

Detailed Description

Variable filler arrays.

This is what you actually interact with.

The elements added to this container specify one compound element in the output HDF5 file. You need to give each variable a name and a function that fills the variable. Note that these functions have no inputs, but they can close over whatever buffers you want to read from.

For examples, see copyRootTree.cxx

Definition at line 116 of file HdfTuple.h.

Member Function Documentation

◆ add()

template<typename T >
void H5Utils::VariableFillers::add ( const std::string &  name,
const std::function< T()> &  fun 
)

Variable add method.

This should be the only method you need in this class. The function should provide one output element, and will be called with no arguments at least once each time the output is filled.

Definition at line 131 of file HdfTuple.h.

132  {
133  using internal::VariableFiller;
134  this->push_back(std::make_shared<VariableFiller<T> >(name, fun));
135  }

Member Data Documentation

◆ elements

T std::vector< T >::elements
inherited

STL member.


The documentation for this class was generated from the following file:
generateReferenceFile.fun
fun
Definition: generateReferenceFile.py:18
name
std::string name
Definition: Control/AthContainers/Root/debug.cxx:192