ATLAS Offline Software
|
Variable filler arrays. More...
#include <HdfTuple.h>
Public Member Functions | |
template<typename T > | |
void | add (const std::string &name, const std::function< T()> &) |
Variable add method. More... | |
Public Attributes | |
T | elements |
STL member. More... | |
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.
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.
|
inherited |
STL member.