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

Specialization of RMergeableValue for the Count action.

Definition at line 194 of file RMergeableValue.hxx.

Public Member Functions

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

Private Member Functions

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

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:
[legend]

Constructor & Destructor Documentation

◆ RMergeableCount() [1/4]

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

Constructor that initializes data members.

Parameters
[in]valueThe action result.

Definition at line 224 of file RMergeableValue.hxx.

◆ RMergeableCount() [2/4]

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

Default constructor.

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

◆ RMergeableCount() [3/4]

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

◆ RMergeableCount() [4/4]

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

Member Function Documentation

◆ Merge()

void ROOT::Detail::RDF::RMergeableCount::Merge ( const RMergeableValue< ULong64_t > &  other)
inlinefinalprivatevirtual

Aggregate the information contained in another RMergeableValue into this.

Parameters
[in]otherAnother RMergeableValue object.
Exceptions
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.

Note
All the Merge methods in the RMergeableValue family are private. To merge multiple RMergeableValue objects please use [MergeValues] (namespaceROOT_1_1Detail_1_1RDF.html::af16fefbe2d120983123ddf8a1e137277).

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

Definition at line 210 of file RMergeableValue.hxx.

◆ operator=() [1/2]

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

◆ operator=() [2/2]

RMergeableCount & ROOT::Detail::RDF::RMergeableCount::operator= ( RMergeableCount &&  )
delete
Libraries for ROOT::Detail::RDF::RMergeableCount:

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