Definition at line 38 of file GraphNode.hxx.
Public Member Functions | |
GraphNode (const std::string_view &name) | |
Creates a node with a name and a counter. | |
void | AddDefinedColumns (const std::vector< std::string > &columns) |
Adds the column defined up to the node. | |
std::vector< std::string > | GetDefinedColumns () |
Gets the column defined up to the node. | |
bool | GetIsNew () |
void | SetAction (bool hasRun) |
Gives a different shape based on the node type. | |
void | SetCounter (unsigned int counter) |
Manually sets the counter to a node. | |
void | SetDefine () |
Gives a different shape based on the node type. | |
void | SetFilter () |
Gives a different shape based on the node type. | |
void | SetIsExplored (bool isExplored) |
Allows to stop the graph traversal when an explored node is encountered. | |
void | SetIsNew (bool isNew) |
The node is considered just created. | |
void | SetPrevNode (const std::shared_ptr< GraphNode > &node) |
Appends a node on the head of the current node. | |
void | SetRange () |
Gives a different shape based on the node type. | |
void | SetRoot () |
Gives a different shape based on the node type. | |
Static Public Member Functions | |
static void | ClearCounter () |
Resets the counter. | |
Static Private Member Functions | |
static unsigned int & | GetStaticGlobalCounter () |
Returns a static variable to allow each node to retrieve its counter. | |
Private Attributes | |
std::string | fColor |
unsigned int | fCounter |
Nodes may share the same name (e.g. | |
std::vector< std::string > | fDefinedColumns |
Columns defined up to this node. | |
bool | fIsExplored = false |
When the graph is reconstructed, the first time this node has been explored this flag. | |
bool | fIsNew = true |
A just created node. | |
std::string | fName |
std::shared_ptr< GraphNode > | fPrevNode |
std::string | fShape |
Friends | |
class | GraphCreatorHelper |
#include <ROOT/RDF/GraphNode.hxx>
|
inline |
Creates a node with a name and a counter.
Definition at line 66 of file GraphNode.hxx.
|
inline |
Adds the column defined up to the node.
Definition at line 79 of file GraphNode.hxx.
|
inlinestatic |
Resets the counter.
This is not strictly needed but guarantees that two consecutive request to the graph return the same result.
Definition at line 71 of file GraphNode.hxx.
|
inline |
Gets the column defined up to the node.
Definition at line 83 of file GraphNode.hxx.
|
inline |
Definition at line 98 of file GraphNode.hxx.
|
inlinestaticprivate |
Returns a static variable to allow each node to retrieve its counter.
Definition at line 57 of file GraphNode.hxx.
Gives a different shape based on the node type.
Definition at line 134 of file GraphNode.hxx.
Manually sets the counter to a node.
It is used by the root node to set its counter to zero.
Definition at line 88 of file GraphNode.hxx.
|
inline |
Gives a different shape based on the node type.
Definition at line 118 of file GraphNode.hxx.
|
inline |
Gives a different shape based on the node type.
Definition at line 110 of file GraphNode.hxx.
Allows to stop the graph traversal when an explored node is encountered.
Definition at line 92 of file GraphNode.hxx.
The node is considered just created.
Definition at line 96 of file GraphNode.hxx.
|
inline |
Appends a node on the head of the current node.
Definition at line 75 of file GraphNode.hxx.
|
inline |
Gives a different shape based on the node type.
Definition at line 126 of file GraphNode.hxx.
|
inline |
Gives a different shape based on the node type.
Definition at line 102 of file GraphNode.hxx.
|
friend |
Definition at line 39 of file GraphNode.hxx.
|
private |
Definition at line 44 of file GraphNode.hxx.
|
private |
Nodes may share the same name (e.g.
Filter). To manage this situation in dot, each node is represented by an unique id.
Definition at line 42 of file GraphNode.hxx.
|
private |
Columns defined up to this node.
By checking the defined columns between two consecutive nodes, it is possible to know if there was some Define in between.
Definition at line 46 of file GraphNode.hxx.
|
private |
When the graph is reconstructed, the first time this node has been explored this flag.
is set and it won't be explored anymore
Definition at line 50 of file GraphNode.hxx.
|
private |
A just created node.
This means that in no other exploration the node was already created (this is needed because branches may share some common node).
Definition at line 52 of file GraphNode.hxx.
|
private |
Definition at line 44 of file GraphNode.hxx.
|
private |
Definition at line 48 of file GraphNode.hxx.
|
private |
Definition at line 44 of file GraphNode.hxx.