Logo ROOT  
Reference Guide
 
Loading...
Searching...
No Matches
ROOT::Internal::RDF::RActionSnapshot< Helper, PrevNode > Class Template Referencefinal

template<typename Helper, typename PrevNode>
class ROOT::Internal::RDF::RActionSnapshot< Helper, PrevNode >

Definition at line 33 of file RActionSnapshot.hxx.

Public Member Functions

 RActionSnapshot (const RActionSnapshot &)=delete
 
 RActionSnapshot (Helper &&h, const std::vector< std::string > &columns, const std::vector< const std::type_info * > &colTypeIDs, std::shared_ptr< PrevNode > pd, const RColumnRegister &colRegister)
 
 RActionSnapshot (RActionSnapshot &&)=delete
 
 ~RActionSnapshot () final
 
void CallExec (unsigned int slot, Long64_t entry)
 
std::unique_ptr< RActionBaseCloneAction (void *newResult) final
 Returns a new action with a cloned helper.
 
void Finalize () final
 Clean-up and finalize the action result (e.g.
 
void FinalizeSlot (unsigned int slot) final
 Clean-up operations to be performed at the end of a task.
 
std::shared_ptr< GraphDrawing::GraphNodeGetGraph (std::unordered_map< void *, std::shared_ptr< GraphDrawing::GraphNode > > &visitedMap) final
 
std::unique_ptr< ROOT::Detail::RDF::RMergeableValueBaseGetMergeableValue () const final
 Retrieve a wrapper to the result of the action that knows how to merge with others of the same type.
 
void * GetValue (unsigned int slot, std::size_t readerIdx, Long64_t entry)
 
void Initialize () final
 
void InitSlot (TTreeReader *r, unsigned int slot) final
 
std::unique_ptr< RActionBaseMakeVariedAction (std::vector< void * > &&) final
 
RActionSnapshotoperator= (const RActionSnapshot &)=delete
 
RActionSnapshotoperator= (RActionSnapshot &&)=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.
 
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, const RColumnRegister &colRegister, const std::vector< std::string > &prevVariations)
 
virtual ~RActionBase ()
 
RColumnRegisterGetColRegister ()
 
const ColumnNames_tGetColumnNames () const
 
RLoopManagerGetLoopManager ()
 
unsigned int GetNSlots () const
 
const std::vector< std::string > & GetVariations () const
 
virtual bool HasRun () const
 
RActionBaseoperator= (const RActionBase &)=delete
 
virtual void SetHasRun ()
 

Private Member Functions

ROOT::RDF::SampleCallback_t GetSampleCallback () final
 

Private Attributes

std::vector< const std::type_info * > fColTypeIDs
 Types of the columns to Snapshot.
 
Helper fHelper
 
std::vector< boolfIsDefine
 The nth flag signals whether the nth input column is a custom column or not.
 
std::vector< std::shared_ptr< PrevNode > > fPrevNodes
 Pointer to the previous node in this branch of the computation graph.
 
std::vector< std::vector< RColumnReaderBase * > > fValues
 Column readers per slot and per input column.
 

Additional Inherited Members

- Protected Attributes inherited from ROOT::Internal::RDF::RActionBase
const ColumnNames_t fColumnNames
 
RLoopManagerfLoopManager
 A raw pointer to the RLoopManager at the root of this functional graph.
 

#include <ROOT/RDF/RActionSnapshot.hxx>

Inheritance diagram for ROOT::Internal::RDF::RActionSnapshot< Helper, PrevNode >:
[legend]

Constructor & Destructor Documentation

◆ RActionSnapshot() [1/3]

template<typename Helper , typename PrevNode >
ROOT::Internal::RDF::RActionSnapshot< Helper, PrevNode >::RActionSnapshot ( Helper && h,
const std::vector< std::string > & columns,
const std::vector< const std::type_info * > & colTypeIDs,
std::shared_ptr< PrevNode > pd,
const RColumnRegister & colRegister )
inline

Definition at line 53 of file RActionSnapshot.hxx.

◆ RActionSnapshot() [2/3]

template<typename Helper , typename PrevNode >
ROOT::Internal::RDF::RActionSnapshot< Helper, PrevNode >::RActionSnapshot ( const RActionSnapshot< Helper, PrevNode > & )
delete

◆ RActionSnapshot() [3/3]

template<typename Helper , typename PrevNode >
ROOT::Internal::RDF::RActionSnapshot< Helper, PrevNode >::RActionSnapshot ( RActionSnapshot< Helper, PrevNode > && )
delete

◆ ~RActionSnapshot()

template<typename Helper , typename PrevNode >
ROOT::Internal::RDF::RActionSnapshot< Helper, PrevNode >::~RActionSnapshot ( )
inlinefinal

Definition at line 75 of file RActionSnapshot.hxx.

Member Function Documentation

◆ CallExec()

template<typename Helper , typename PrevNode >
void ROOT::Internal::RDF::RActionSnapshot< Helper, PrevNode >::CallExec ( unsigned int slot,
Long64_t entry )
inline

Definition at line 109 of file RActionSnapshot.hxx.

◆ CloneAction()

template<typename Helper , typename PrevNode >
std::unique_ptr< RActionBase > ROOT::Internal::RDF::RActionSnapshot< Helper, PrevNode >::CloneAction ( void * newResult)
inlinefinalvirtual

Returns a new action with a cloned helper.

Parameters
[in]newResultThe result to be filled by the new action (needed to clone the helper).
Returns
A unique pointer to the new action.

Implements ROOT::Internal::RDF::RActionBase.

Definition at line 183 of file RActionSnapshot.hxx.

◆ Finalize()

template<typename Helper , typename PrevNode >
void ROOT::Internal::RDF::RActionSnapshot< Helper, PrevNode >::Finalize ( )
inlinefinalvirtual

Clean-up and finalize the action result (e.g.

merging slot-local results). It invokes the helper's Finalize method.

Implements ROOT::Internal::RDF::RActionBase.

Definition at line 142 of file RActionSnapshot.hxx.

◆ FinalizeSlot()

template<typename Helper , typename PrevNode >
void ROOT::Internal::RDF::RActionSnapshot< Helper, PrevNode >::FinalizeSlot ( unsigned int slot)
inlinefinalvirtual

Clean-up operations to be performed at the end of a task.

Implements ROOT::Internal::RDF::RActionBase.

Definition at line 134 of file RActionSnapshot.hxx.

◆ GetGraph()

template<typename Helper , typename PrevNode >
std::shared_ptr< GraphDrawing::GraphNode > ROOT::Internal::RDF::RActionSnapshot< Helper, PrevNode >::GetGraph ( std::unordered_map< void *, std::shared_ptr< GraphDrawing::GraphNode > > & visitedMap)
inlinefinalvirtual

Implements ROOT::Internal::RDF::RActionBase.

Definition at line 149 of file RActionSnapshot.hxx.

◆ GetMergeableValue()

template<typename Helper , typename PrevNode >
std::unique_ptr< ROOT::Detail::RDF::RMergeableValueBase > ROOT::Internal::RDF::RActionSnapshot< Helper, PrevNode >::GetMergeableValue ( ) const
inlinefinalvirtual

Retrieve a wrapper to the result of the action that knows how to merge with others of the same type.

Implements ROOT::Internal::RDF::RActionBase.

Definition at line 81 of file RActionSnapshot.hxx.

◆ GetSampleCallback()

template<typename Helper , typename PrevNode >
ROOT::RDF::SampleCallback_t ROOT::Internal::RDF::RActionSnapshot< Helper, PrevNode >::GetSampleCallback ( )
inlinefinalprivatevirtual

Implements ROOT::Internal::RDF::RActionBase.

Definition at line 50 of file RActionSnapshot.hxx.

◆ GetValue()

template<typename Helper , typename PrevNode >
void * ROOT::Internal::RDF::RActionSnapshot< Helper, PrevNode >::GetValue ( unsigned int slot,
std::size_t readerIdx,
Long64_t entry )
inline

Definition at line 95 of file RActionSnapshot.hxx.

◆ Initialize()

template<typename Helper , typename PrevNode >
void ROOT::Internal::RDF::RActionSnapshot< Helper, PrevNode >::Initialize ( )
inlinefinalvirtual

Implements ROOT::Internal::RDF::RActionBase.

Definition at line 86 of file RActionSnapshot.hxx.

◆ InitSlot()

template<typename Helper , typename PrevNode >
void ROOT::Internal::RDF::RActionSnapshot< Helper, PrevNode >::InitSlot ( TTreeReader * r,
unsigned int slot )
inlinefinalvirtual

Implements ROOT::Internal::RDF::RActionBase.

Definition at line 88 of file RActionSnapshot.hxx.

◆ MakeVariedAction()

template<typename Helper , typename PrevNode >
std::unique_ptr< RActionBase > ROOT::Internal::RDF::RActionSnapshot< Helper, PrevNode >::MakeVariedAction ( std::vector< void * > && )
inlinefinalvirtual

Implements ROOT::Internal::RDF::RActionBase.

Definition at line 171 of file RActionSnapshot.hxx.

◆ operator=() [1/2]

◆ operator=() [2/2]

◆ PartialUpdate()

template<typename Helper , typename PrevNode >
void * ROOT::Internal::RDF::RActionSnapshot< Helper, PrevNode >::PartialUpdate ( unsigned int slot)
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 169 of file RActionSnapshot.hxx.

◆ Run()

template<typename Helper , typename PrevNode >
void ROOT::Internal::RDF::RActionSnapshot< Helper, PrevNode >::Run ( unsigned int slot,
Long64_t entry )
inlinefinalvirtual

Implements ROOT::Internal::RDF::RActionBase.

Definition at line 120 of file RActionSnapshot.hxx.

◆ TriggerChildrenCount()

template<typename Helper , typename PrevNode >
void ROOT::Internal::RDF::RActionSnapshot< Helper, PrevNode >::TriggerChildrenCount ( )
inlinefinalvirtual

Implements ROOT::Internal::RDF::RActionBase.

Definition at line 127 of file RActionSnapshot.hxx.

Member Data Documentation

◆ fColTypeIDs

template<typename Helper , typename PrevNode >
std::vector<const std::type_info *> ROOT::Internal::RDF::RActionSnapshot< Helper, PrevNode >::fColTypeIDs
private

Types of the columns to Snapshot.

Definition at line 48 of file RActionSnapshot.hxx.

◆ fHelper

template<typename Helper , typename PrevNode >
Helper ROOT::Internal::RDF::RActionSnapshot< Helper, PrevNode >::fHelper
private

Definition at line 36 of file RActionSnapshot.hxx.

◆ fIsDefine

template<typename Helper , typename PrevNode >
std::vector<bool> ROOT::Internal::RDF::RActionSnapshot< Helper, PrevNode >::fIsDefine
private

The nth flag signals whether the nth input column is a custom column or not.

Definition at line 45 of file RActionSnapshot.hxx.

◆ fPrevNodes

template<typename Helper , typename PrevNode >
std::vector<std::shared_ptr<PrevNode> > ROOT::Internal::RDF::RActionSnapshot< Helper, PrevNode >::fPrevNodes
private

Pointer to the previous node in this branch of the computation graph.

Definition at line 39 of file RActionSnapshot.hxx.

◆ fValues

template<typename Helper , typename PrevNode >
std::vector<std::vector<RColumnReaderBase *> > ROOT::Internal::RDF::RActionSnapshot< Helper, PrevNode >::fValues
private

Column readers per slot and per input column.

Definition at line 42 of file RActionSnapshot.hxx.

  • tree/dataframe/inc/ROOT/RDF/RActionSnapshot.hxx