A container for variation names and variation results that knows how to merge with others of the same type.
| T | Type of the action result. |
Definition at line 677 of file RMergeableValue.hxx.
Public Member Functions | |
| RMergeableVariations ()=default | |
| Default constructor. | |
| RMergeableVariations (const RMergeableVariations &)=delete | |
| RMergeableVariations (RMergeableVariations &&)=delete | |
| RMergeableVariations (RMergeableVariationsBase &&base) | |
| Constructor that initializes data members. | |
| ~RMergeableVariations () final=default | |
| void | AddNominal (std::unique_ptr< RMergeableValueBase > value) |
| Add an entry for the "nominal" value. | |
| const std::vector< std::string > & | GetKeys () const |
| Get the list of variation names. | |
| const T & | GetVariation (const std::string &variationName) const |
| Get the final value from the mergeable corresponding to a certain variation name. | |
| RMergeableVariations & | operator= (const RMergeableVariations &)=delete |
| RMergeableVariations & | operator= (RMergeableVariations &&)=delete |
Protected Attributes | |
| std::vector< std::string > | fKeys {} |
| std::vector< std::unique_ptr< RMergeableValueBase > > | fValues {} |
Private Member Functions | |
| void | Merge (const RMergeableVariations< T > &other) |
| Aggregate the information contained in another RMergeableVariations into this. | |
Friends | |
| template<typename T1, typename... Ts> | |
| void | MergeValues (RMergeableVariations< T1 > &OutputMergeable, const RMergeableVariations< Ts > &... InputMergeables) |
#include <ROOT/RDF/RMergeableValue.hxx>
|
default |
Default constructor.
Needed to allow serialization of ROOT objects. See [TBufferFile::WriteObjectClass] (classTBufferFile.html::a209078a4cb58373b627390790bf0c9c1)
|
delete |
|
delete |
|
finaldefault |
|
inline |
Constructor that initializes data members.
| [in] | base | The container of the names and values. |
The variation names and values are moved from the base container into this.
Definition at line 723 of file RMergeableValue.hxx.
|
inlineinherited |
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.
|
inline |
Get the list of variation names.
Definition at line 727 of file RMergeableValue.hxx.
|
inline |
Get the final value from the mergeable corresponding to a certain variation name.
| [in] | variationName | The name. |
The variation name is used to retrieve the corresponding RMergeableValue contained in this object. From that, the actual value is retrieved by calling the ROOT::Detail::RDF::RMergeableValue::GetValue function.
Definition at line 736 of file RMergeableValue.hxx.
|
inlineprivate |
Aggregate the information contained in another RMergeableVariations into this.
| [in] | other | The other mergeable. |
Iterates over all values of the current object and calls ROOT::Detail::RDF::MergeValues to merge with the corresponding value of the other object.
Definition at line 694 of file RMergeableValue.hxx.
|
delete |
|
delete |
|
friend |
|
protectedinherited |
Definition at line 624 of file RMergeableValue.hxx.
|
protectedinherited |
Definition at line 625 of file RMergeableValue.hxx.