Logo ROOT  
Reference Guide
 
Loading...
Searching...
No Matches
ROOT::Detail::RDF::RMergeableVariationsBase Class Reference

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 569 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.
 
void AddNominal (std::unique_ptr< RMergeableValueBase > value)
 Add an entry for the "nominal" value.
 
RMergeableVariationsBaseoperator= (const RMergeableVariationsBase &)=delete
 
RMergeableVariationsBaseoperator= (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
 
RMergeableValueBaseoperator= (const RMergeableValueBase &)=delete
 
RMergeableValueBaseoperator= (RMergeableValueBase &&)=delete
 

Protected Attributes

std::vector< std::string > fKeys
 
std::vector< std::unique_ptr< RMergeableValueBase > > fValues
 

#include <ROOT/RDF/RMergeableValue.hxx>

Inheritance diagram for ROOT::Detail::RDF::RMergeableVariationsBase:
[legend]

Constructor & Destructor Documentation

◆ RMergeableVariationsBase() [1/4]

ROOT::Detail::RDF::RMergeableVariationsBase::RMergeableVariationsBase ( )
default

Default constructor.

Needed to allow serialization of ROOT objects. See [TBufferFile::WriteObjectClass] (classTBufferFile.html::a209078a4cb58373b627390790bf0c9c1)

◆ RMergeableVariationsBase() [2/4]

ROOT::Detail::RDF::RMergeableVariationsBase::RMergeableVariationsBase ( const RMergeableVariationsBase )
delete

◆ RMergeableVariationsBase() [3/4]

ROOT::Detail::RDF::RMergeableVariationsBase::RMergeableVariationsBase ( RMergeableVariationsBase &&  other)
inline

Constructor that moves the data members from the input object.

Parameters
[in]otherThe 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 589 of file RMergeableValue.hxx.

◆ RMergeableVariationsBase() [4/4]

ROOT::Detail::RDF::RMergeableVariationsBase::RMergeableVariationsBase ( std::vector< std::string > &&  keys,
std::vector< std::unique_ptr< RMergeableValueBase > > &&  values 
)
inline

Constructor that initializes data members.

Parameters
[in]keysThe names of the variations.
[in]valuesThe mergeable values containing the results of the variations.

Definition at line 600 of file RMergeableValue.hxx.

Member Function Documentation

◆ AddNominal()

void ROOT::Detail::RDF::RMergeableVariationsBase::AddNominal ( std::unique_ptr< RMergeableValueBase value)
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 609 of file RMergeableValue.hxx.

◆ operator=() [1/2]

RMergeableVariationsBase & ROOT::Detail::RDF::RMergeableVariationsBase::operator= ( const RMergeableVariationsBase )
delete

◆ operator=() [2/2]

RMergeableVariationsBase & ROOT::Detail::RDF::RMergeableVariationsBase::operator= ( RMergeableVariationsBase &&  )
delete

Member Data Documentation

◆ fKeys

std::vector<std::string> ROOT::Detail::RDF::RMergeableVariationsBase::fKeys
protected

Definition at line 571 of file RMergeableValue.hxx.

◆ fValues

std::vector<std::unique_ptr<RMergeableValueBase> > ROOT::Detail::RDF::RMergeableVariationsBase::fValues
protected

Definition at line 572 of file RMergeableValue.hxx.

Libraries for ROOT::Detail::RDF::RMergeableVariationsBase:

The documentation for this class was generated from the following file: