A common template base class for all RActions.
Avoids code repetition for specializations of RActions for different helpers, implementing all of the common logic.
Definition at line 102 of file RAction.hxx.
Public Types | |
using | TypeInd_t = std::make_index_sequence< ColumnTypes_t::list_size > |
Public Member Functions | |
RActionCRTP (const RActionCRTP &)=delete | |
RActionCRTP (Helper &&h, const ColumnNames_t &columns, std::shared_ptr< PrevDataFrame > pd, RBookedCustomColumns &&customColumns) | |
~RActionCRTP () | |
void | ClearValueReaders (unsigned int slot) |
void | Finalize () final |
void | FinalizeSlot (unsigned int slot) final |
std::shared_ptr< RDFGraphDrawing::GraphNode > | GetGraph () |
Helper & | GetHelper () |
void | Initialize () final |
void | InitSlot (TTreeReader *r, unsigned int slot) final |
RActionCRTP & | operator= (const RActionCRTP &)=delete |
void * | PartialUpdate (unsigned int slot) final |
This method is invoked to update a partial result during the event loop, right before passing the result to a user-defined callback registered via RResultPtr::RegisterCallback. More... | |
void | Run (unsigned int slot, Long64_t entry) final |
void | TriggerChildrenCount () final |
Public Member Functions inherited from ROOT::Internal::RDF::RActionBase | |
RActionBase (const RActionBase &)=delete | |
RActionBase (RLoopManager *lm, const ColumnNames_t &colNames, RBookedCustomColumns &&customColumns) | |
virtual | ~RActionBase () |
virtual void | ClearValueReaders (unsigned int slot)=0 |
virtual void | Finalize ()=0 |
virtual void | FinalizeSlot (unsigned int)=0 |
const ColumnNames_t & | GetColumnNames () const |
RBookedCustomColumns & | GetCustomColumns () |
virtual std::shared_ptr< ROOT::Internal::RDF::GraphDrawing::GraphNode > | GetGraph ()=0 |
RLoopManager * | GetLoopManager () |
unsigned int | GetNSlots () const |
virtual bool | HasRun () const |
virtual void | Initialize ()=0 |
virtual void | InitSlot (TTreeReader *r, unsigned int slot)=0 |
RActionBase & | operator= (const RActionBase &)=delete |
virtual void * | PartialUpdate (unsigned int slot)=0 |
This method is invoked to update a partial result during the event loop, right before passing the result to a user-defined callback registered via RResultPtr::RegisterCallback. More... | |
virtual void | Run (unsigned int slot, Long64_t entry)=0 |
virtual void | SetHasRun () |
virtual void | TriggerChildrenCount ()=0 |
Protected Attributes | |
std::array< bool, ColumnTypes_t::list_size > | fIsCustomColumn |
The nth flag signals whether the nth input column is a custom column or not. More... | |
Protected Attributes inherited from ROOT::Internal::RDF::RActionBase | |
RLoopManager * | fLoopManager |
A raw pointer to the RLoopManager at the root of this functional graph. More... | |
Private Types | |
using | Action_t = RAction< Helper, PrevDataFrame, ColumnTypes_t > |
Private Member Functions | |
void * | PartialUpdateImpl (...) |
template<typename H = Helper> | |
auto | PartialUpdateImpl (unsigned int slot) -> decltype(std::declval< H >().PartialUpdate(slot),(void *)(nullptr)) |
Private Attributes | |
Helper | fHelper |
PrevDataFrame & | fPrevData |
const std::shared_ptr< PrevDataFrame > | fPrevDataPtr |
#include <ROOT/RDF/RAction.hxx>
|
private |
Definition at line 103 of file RAction.hxx.
using ROOT::Internal::RDF::RActionCRTP< RAction< Helper, PrevDataFrame, ColumnTypes_t > >::TypeInd_t = std::make_index_sequence<ColumnTypes_t::list_size> |
Definition at line 114 of file RAction.hxx.
|
inline |
Definition at line 116 of file RAction.hxx.
|
delete |
|
inline |
Definition at line 131 of file RAction.hxx.
|
inlinevirtual |
Implements ROOT::Internal::RDF::RActionBase.
Definition at line 163 of file RAction.hxx.
|
inlinefinalvirtual |
Implements ROOT::Internal::RDF::RActionBase.
Definition at line 165 of file RAction.hxx.
|
inlinefinalvirtual |
Implements ROOT::Internal::RDF::RActionBase.
Definition at line 154 of file RAction.hxx.
|
inlinevirtual |
Implements ROOT::Internal::RDF::RActionBase.
Definition at line 171 of file RAction.hxx.
|
inline |
Definition at line 133 of file RAction.hxx.
|
inlinefinalvirtual |
Implements ROOT::Internal::RDF::RActionBase.
Definition at line 135 of file RAction.hxx.
|
inlinefinalvirtual |
Implements ROOT::Internal::RDF::RActionBase.
Definition at line 137 of file RAction.hxx.
|
delete |
|
inlinefinalvirtual |
This method is invoked to update a partial result during the event loop, right before passing the result to a user-defined callback registered via RResultPtr::RegisterCallback.
Implements ROOT::Internal::RDF::RActionBase.
Definition at line 200 of file RAction.hxx.
|
inlineprivate |
Definition at line 212 of file RAction.hxx.
|
inlineprivate |
Definition at line 206 of file RAction.hxx.
|
inlinefinalvirtual |
Implements ROOT::Internal::RDF::RActionBase.
Definition at line 145 of file RAction.hxx.
|
inlinefinalvirtual |
Implements ROOT::Internal::RDF::RActionBase.
Definition at line 152 of file RAction.hxx.
|
private |
Definition at line 105 of file RAction.hxx.
|
protected |
The nth flag signals whether the nth input column is a custom column or not.
Definition at line 111 of file RAction.hxx.
|
private |
Definition at line 107 of file RAction.hxx.
|
private |
Definition at line 106 of file RAction.hxx.