Shamrock 2025.10.0
Astrophysical Code
Loading...
Searching...
No Matches
shammodels::sph::modules::ISPHSetupNode_Dot Struct Reference

This struct is used to generate a dot graph of the setup tree. More...

#include <shammodels/sph/include/shammodels/sph/modules/setup/ISPHSetupNode.hpp>

Collaboration diagram for shammodels::sph::modules::ISPHSetupNode_Dot:

Public Member Functions

u32 add_node (u32 &counter, std::string &out)
 This function generate a dot graph for the setup tree.

Public Attributes

std::string name
u32 type
std::vector< ISPHSetupNode_Dotinputs

Detailed Description

This struct is used to generate a dot graph of the setup tree.

It is composed of a name, a type and a vector of inputs.

Definition at line 31 of file ISPHSetupNode.hpp.

Member Function Documentation

◆ add_node()

u32 shammodels::sph::modules::ISPHSetupNode_Dot::add_node ( u32 & counter,
std::string & out )
inline

This function generate a dot graph for the setup tree.

This function is used to generate a dot graph that describes the setup tree. It takes a counter and a string as input, and update the counter and the string to generate the dot graph.

Parameters
countera counter that is used to generate the node id in the dot graph
outthe string that will be updated to contain the dot graph
Returns
the new value of the counter

Definition at line 48 of file ISPHSetupNode.hpp.

Member Data Documentation

◆ inputs

std::vector<ISPHSetupNode_Dot> shammodels::sph::modules::ISPHSetupNode_Dot::inputs

Definition at line 34 of file ISPHSetupNode.hpp.

◆ name

std::string shammodels::sph::modules::ISPHSetupNode_Dot::name

Definition at line 32 of file ISPHSetupNode.hpp.

◆ type

u32 shammodels::sph::modules::ISPHSetupNode_Dot::type

Definition at line 33 of file ISPHSetupNode.hpp.


The documentation for this struct was generated from the following file: