A container for variation names and variation results.
The class stores two vectors: one with the variation names, the other with corresponding mergeable variation values. These are retrieved from an RVariedAction (resulting from a call to ROOT::RDF::VariationsFor). The results are stored as type-erased RMergeableValueBase objects.
Definition at line 622 of file RMergeableValue.hxx.
Public Member Functions | |
| RMergeableVariationsBase ()=default | |
| Default constructor. | |
| RMergeableVariationsBase (const RMergeableVariationsBase &)=delete | |
| RMergeableVariationsBase (RMergeableVariationsBase &&other) | |
| Constructor that moves the data members from the input object. | |
| RMergeableVariationsBase (std::vector< std::string > &&keys, std::vector< std::unique_ptr< RMergeableValueBase > > &&values) | |
| Constructor that initializes data members. | |
| ~RMergeableVariationsBase () override=default | |
| void | AddNominal (std::unique_ptr< RMergeableValueBase > value) |
| Add an entry for the "nominal" value. | |
| RMergeableVariationsBase & | operator= (const RMergeableVariationsBase &)=delete |
| RMergeableVariationsBase & | operator= (RMergeableVariationsBase &&)=delete |
Protected Attributes | |
| std::vector< std::string > | fKeys {} |
| std::vector< std::unique_ptr< RMergeableValueBase > > | fValues {} |
#include <ROOT/RDF/RMergeableValue.hxx>
|
default |
Default constructor.
Needed to allow serialization of ROOT objects. See [TBufferFile::WriteObjectClass] (classTBufferFile.html::a209078a4cb58373b627390790bf0c9c1)
|
delete |
|
inline |
Constructor that moves the data members from the input object.
| [in] | other | The container from which the data members are moved. |
This constructor is needed as an helper in the RMergeableVariations constructor that takes an RMergeableVariationsBase as input.
Definition at line 642 of file RMergeableValue.hxx.
|
overridedefault |
|
inline |
Constructor that initializes data members.
| [in] | keys | The names of the variations. |
| [in] | values | The mergeable values containing the results of the variations. |
Definition at line 654 of file RMergeableValue.hxx.
|
inline |
Add an entry for the "nominal" value.
The way client code is structured, the nominal value is provided separately from the others.
Definition at line 663 of file RMergeableValue.hxx.
|
delete |
|
delete |
|
protected |
Definition at line 624 of file RMergeableValue.hxx.
|
protected |
Definition at line 625 of file RMergeableValue.hxx.