Logo ROOT  
Reference Guide
 
Loading...
Searching...
No Matches
ROOT::Internal::RDF::GraphDrawing::GraphCreatorHelper Class Reference

Definition at line 65 of file GraphUtils.hxx.

Public Member Functions

template<typename NodeType >
std::string operator() (NodeType &node)
 Functor.
 

Private Types

using DefinesNodesMap_t = std::map< const ROOT::Detail::RDF::RDefineBase *, std::weak_ptr< GraphNode > >
 
using FiltersNodesMap_t = std::map< const ROOT::Detail::RDF::RFilterBase *, std::weak_ptr< GraphNode > >
 
using RangesNodesMap_t = std::map< const ROOT::Detail::RDF::RRangeBase *, std::weak_ptr< GraphNode > >
 

Private Member Functions

std::string FromGraphActionsToDot (std::vector< std::shared_ptr< GraphNode > > leaves)
 Starting by an array of leaves, it draws the entire graph.
 
std::string FromGraphLeafToDot (std::shared_ptr< GraphNode > leaf)
 Starting from any leaf (Action, Filter, Range) it draws the dot representation of the branch.
 
template<typename T >
std::string RepresentGraph (const RResultPtr< T > &resultPtr)
 Starting from an action, prints the branch it belongs to.
 
template<typename Proxied , typename DataSource >
std::string RepresentGraph (RInterface< Proxied, DataSource > &rInterface)
 Starting from a Filter or Range, prints the branch it belongs to.
 
std::string RepresentGraph (RLoopManager *rLoopManager)
 Starting from the root node, prints the entire graph.
 
std::string RepresentGraph (ROOT::RDataFrame &rDataFrame)
 Starting from the root node, prints the entire graph.
 

Static Private Member Functions

static DefinesNodesMap_tGetStaticColumnsMap ()
 Stores the columns defined and which node in the graph defined them.
 
static FiltersNodesMap_tGetStaticFiltersMap ()
 Stores the filters defined and which node in the graph defined them.
 
static RangesNodesMap_tGetStaticRangesMap ()
 Stores the ranges defined and which node in the graph defined them.
 

Friends

std::shared_ptr< GraphNodeCreateDefineNode (const std::string &columnName, const ROOT::Detail::RDF::RDefineBase *columnPtr)
 Invoked by the RNodes to create a define graph node.
 
std::shared_ptr< GraphNodeCreateFilterNode (const ROOT::Detail::RDF::RFilterBase *filterPtr)
 Invoked by the RNodes to create a Filter graph node.
 
std::shared_ptr< GraphNodeCreateRangeNode (const ROOT::Detail::RDF::RRangeBase *rangePtr)
 Invoked by the RNodes to create a Range graph node.
 

#include <ROOT/RDF/GraphUtils.hxx>

Member Typedef Documentation

◆ DefinesNodesMap_t

Definition at line 67 of file GraphUtils.hxx.

◆ FiltersNodesMap_t

Definition at line 68 of file GraphUtils.hxx.

◆ RangesNodesMap_t

Definition at line 69 of file GraphUtils.hxx.

Member Function Documentation

◆ FromGraphActionsToDot()

std::string ROOT::Internal::RDF::GraphDrawing::GraphCreatorHelper::FromGraphActionsToDot ( std::vector< std::shared_ptr< GraphNode > >  leaves)
private

Starting by an array of leaves, it draws the entire graph.

Definition at line 41 of file RDFGraphUtils.cxx.

◆ FromGraphLeafToDot()

std::string ROOT::Internal::RDF::GraphDrawing::GraphCreatorHelper::FromGraphLeafToDot ( std::shared_ptr< GraphNode leaf)
private

Starting from any leaf (Action, Filter, Range) it draws the dot representation of the branch.

Definition at line 21 of file RDFGraphUtils.cxx.

◆ GetStaticColumnsMap()

static DefinesNodesMap_t & ROOT::Internal::RDF::GraphDrawing::GraphCreatorHelper::GetStaticColumnsMap ( )
inlinestaticprivate

Stores the columns defined and which node in the graph defined them.

Definition at line 73 of file GraphUtils.hxx.

◆ GetStaticFiltersMap()

static FiltersNodesMap_t & ROOT::Internal::RDF::GraphDrawing::GraphCreatorHelper::GetStaticFiltersMap ( )
inlinestaticprivate

Stores the filters defined and which node in the graph defined them.

Definition at line 81 of file GraphUtils.hxx.

◆ GetStaticRangesMap()

static RangesNodesMap_t & ROOT::Internal::RDF::GraphDrawing::GraphCreatorHelper::GetStaticRangesMap ( )
inlinestaticprivate

Stores the ranges defined and which node in the graph defined them.

Definition at line 89 of file GraphUtils.hxx.

◆ operator()()

template<typename NodeType >
std::string ROOT::Internal::RDF::GraphDrawing::GraphCreatorHelper::operator() ( NodeType &  node)
inline

Functor.

Initializes the static members and delegates the work to the right override.

Template Parameters
NodeTypethe RNode from which the graph has to be drawn

Definition at line 159 of file GraphUtils.hxx.

◆ RepresentGraph() [1/4]

template<typename T >
std::string ROOT::Internal::RDF::GraphDrawing::GraphCreatorHelper::RepresentGraph ( const RResultPtr< T > &  resultPtr)
inlineprivate

Starting from an action, prints the branch it belongs to.

Definition at line 138 of file GraphUtils.hxx.

◆ RepresentGraph() [2/4]

template<typename Proxied , typename DataSource >
std::string ROOT::Internal::RDF::GraphDrawing::GraphCreatorHelper::RepresentGraph ( RInterface< Proxied, DataSource > &  rInterface)
inlineprivate

Starting from a Filter or Range, prints the branch it belongs to.

Definition at line 127 of file GraphUtils.hxx.

◆ RepresentGraph() [3/4]

std::string ROOT::Internal::RDF::GraphDrawing::GraphCreatorHelper::RepresentGraph ( RLoopManager rLoopManager)
private

Starting from the root node, prints the entire graph.

Definition at line 73 of file RDFGraphUtils.cxx.

◆ RepresentGraph() [4/4]

std::string ROOT::Internal::RDF::GraphDrawing::GraphCreatorHelper::RepresentGraph ( ROOT::RDataFrame rDataFrame)
private

Starting from the root node, prints the entire graph.

Definition at line 64 of file RDFGraphUtils.cxx.

Friends And Related Symbol Documentation

◆ CreateDefineNode

std::shared_ptr< GraphNode > CreateDefineNode ( const std::string &  columnName,
const ROOT::Detail::RDF::RDefineBase columnPtr 
)
friend

Invoked by the RNodes to create a define graph node.

Definition at line 90 of file RDFGraphUtils.cxx.

◆ CreateFilterNode

std::shared_ptr< GraphNode > CreateFilterNode ( const ROOT::Detail::RDF::RFilterBase filterPtr)
friend

Invoked by the RNodes to create a Filter graph node.

Definition at line 108 of file RDFGraphUtils.cxx.

◆ CreateRangeNode

std::shared_ptr< GraphNode > CreateRangeNode ( const ROOT::Detail::RDF::RRangeBase rangePtr)
friend

Invoked by the RNodes to create a Range graph node.

Definition at line 126 of file RDFGraphUtils.cxx.


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