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 624 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. | |
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 |
Public Member Functions inherited from ROOT::Detail::RDF::RMergeableVariationsBase | |
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. | |
void | AddNominal (std::unique_ptr< RMergeableValueBase > value) |
Add an entry for the "nominal" value. | |
RMergeableVariationsBase & | operator= (const RMergeableVariationsBase &)=delete |
RMergeableVariationsBase & | operator= (RMergeableVariationsBase &&)=delete |
Public Member Functions inherited from ROOT::Detail::RDF::RMergeableValueBase | |
RMergeableValueBase ()=default | |
Default constructor. | |
RMergeableValueBase (const RMergeableValueBase &)=delete | |
RMergeableValueBase (RMergeableValueBase &&)=delete | |
virtual | ~RMergeableValueBase ()=default |
RMergeableValueBase & | operator= (const RMergeableValueBase &)=delete |
RMergeableValueBase & | operator= (RMergeableValueBase &&)=delete |
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) |
Additional Inherited Members | |
Protected Attributes inherited from ROOT::Detail::RDF::RMergeableVariationsBase | |
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 |
|
delete |
|
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 669 of file RMergeableValue.hxx.
|
inline |
Get the list of variation names.
Definition at line 673 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 682 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.
Merge
methods in the RMergeableValue family are private. To merge multiple RMergeableValue objects please use ROOT::Detail::RDF::MergeValues Definition at line 641 of file RMergeableValue.hxx.
|
delete |
|
delete |
|
friend |