Logo ROOT  
Reference Guide
ROOT::Detail::RDF::RMergeableCount Class Referencefinal

Specialization of RMergeableValue for the Count action.

Definition at line 176 of file RMergeableValue.hxx.

Public Member Functions

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

Private Member Functions

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

Additional Inherited Members

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

#include <ROOT/RDF/RMergeableValue.hxx>

Inheritance diagram for ROOT::Detail::RDF::RMergeableCount:

Constructor & Destructor Documentation

◆ RMergeableCount() [1/4]

ROOT::Detail::RDF::RMergeableCount::RMergeableCount ( ULong64_t  value)

Constructor that initializes data members.

[in]valueThe action result.

Definition at line 206 of file RMergeableValue.hxx.

◆ RMergeableCount() [2/4]

ROOT::Detail::RDF::RMergeableCount::RMergeableCount ( )

Default constructor.

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

◆ RMergeableCount() [3/4]

ROOT::Detail::RDF::RMergeableCount::RMergeableCount ( RMergeableCount &&  )

◆ RMergeableCount() [4/4]

ROOT::Detail::RDF::RMergeableCount::RMergeableCount ( const RMergeableCount )

Member Function Documentation

◆ Merge()

void ROOT::Detail::RDF::RMergeableCount::Merge ( const RMergeableValue< ULong64_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. Then the two results are added together to update the value held by the current object.

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

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

Definition at line 192 of file RMergeableValue.hxx.

Libraries for ROOT::Detail::RDF::RMergeableCount:

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