Logo ROOT  
Reference Guide
ROOT::Detail::RDF::RMergeableFill< T > Class Template Referencefinal

template<typename T>
class ROOT::Detail::RDF::RMergeableFill< T >

Specialization of RMergeableValue for histograms and statistics.

This subclass is responsible for merging results coming from the following actions:

Definition at line 233 of file RMergeableValue.hxx.

Public Member Functions

 RMergeableFill ()=default
 Default constructor. More...
 RMergeableFill (const RMergeableFill &)=delete
 RMergeableFill (const T &value)
 Constructor that initializes data members. More...
 RMergeableFill (RMergeableFill &&)=default
- Public Member Functions inherited from ROOT::Detail::RDF::RMergeableValue< T >
 RMergeableValue ()=default
 Default constructor. More...
 RMergeableValue (const T &value)
 Constructor taking the action result by const reference. More...
const T & GetValue () const
 Retrieve the result wrapped by this mergeable. More...

Private Member Functions

void Merge (const RMergeableValue< T > &other) final
 Aggregate the information contained in another RMergeableValue into this. More...

Additional Inherited Members

- Protected Attributes inherited from ROOT::Detail::RDF::RMergeableValue< T >

#include <ROOT/RDF/RMergeableValue.hxx>

Inheritance diagram for ROOT::Detail::RDF::RMergeableFill< T >:

Constructor & Destructor Documentation

◆ RMergeableFill() [1/4]

template<typename T >
ROOT::Detail::RDF::RMergeableFill< T >::RMergeableFill ( const T &  value)

Constructor that initializes data members.

[in]valueThe action result.

Definition at line 265 of file RMergeableValue.hxx.

◆ RMergeableFill() [2/4]

template<typename T >
ROOT::Detail::RDF::RMergeableFill< T >::RMergeableFill ( )

Default constructor.

Needed to allow serialization of ROOT objects. See TBufferFile::WriteObjectClass

◆ RMergeableFill() [3/4]

template<typename T >
ROOT::Detail::RDF::RMergeableFill< T >::RMergeableFill ( RMergeableFill< T > &&  )

◆ RMergeableFill() [4/4]

template<typename T >
ROOT::Detail::RDF::RMergeableFill< T >::RMergeableFill ( const RMergeableFill< T > &  )

Member Function Documentation

◆ Merge()

template<typename T >
void ROOT::Detail::RDF::RMergeableFill< T >::Merge ( const RMergeableValue< T > &  other)

Aggregate the information contained in another RMergeableValue into this.

[in]otherAnother RMergeableValue object.
std::invalid_argumentIf the cast of the other object to the same type as this one fails.

The other RMergeableValue object is cast to the same type as this object. This is needed to make sure that only results of the same type of action are merged together. The function then calls the right Merge method according to the class of the fValue data member.

All the Merge methods in the RMergeableValue family are private. To merge multiple RMergeableValue objects please use MergeValues.

Implements ROOT::Detail::RDF::RMergeableValue< T >.

Definition at line 249 of file RMergeableValue.hxx.

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