Logo ROOT  
Reference Guide
ROOT::Internal::RDF::GraphDrawing::GraphCreatorHelper Class Reference

Definition at line 56 of file GraphUtils.hxx.

Public Member Functions

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

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

Static Private Member Functions

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

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. More...
 
std::shared_ptr< GraphNodeCreateFilterNode (const ROOT::Detail::RDF::RFilterBase *filterPtr)
 Invoked by the RNodes to create a Filter graph node. More...
 
std::shared_ptr< GraphNodeCreateRangeNode (const ROOT::Detail::RDF::RRangeBase *rangePtr)
 Invoked by the RNodes to create a Range graph node. More...
 

#include <ROOT/RDF/GraphUtils.hxx>

Member Typedef Documentation

◆ DefinesNodesMap_t

Definition at line 58 of file GraphUtils.hxx.

◆ FiltersNodesMap_t

Definition at line 59 of file GraphUtils.hxx.

◆ RangesNodesMap_t

Definition at line 60 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 28 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 8 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 64 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 72 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 80 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 150 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 129 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 118 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 60 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 51 of file RDFGraphUtils.cxx.

Friends And Related Function 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 74 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 92 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 110 of file RDFGraphUtils.cxx.


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