BornAgain
1.19.0
Simulate and fit neutron and x-ray scattering at grazing incidence
|
Functions | |
std::string | nodePath (const INode *node, const INode *root=nullptr) |
Returns path composed of node's displayName, with respect to root node. More... | |
std::string | nodeToString (const INode *node) |
Returns multiline string representing tree structure starting from given node. More... | |
std::vector< std::tuple< const INode *, int, const INode * > > | progenyPlus (const INode *node, int level=0) |
Returns a vector of triples (descendant, depth, parent) More... | |
Returns path composed of node's displayName, with respect to root node.
Definition at line 89 of file NodeUtils.cpp.
References INode::displayName(), and INode::parent().
Referenced by INode::createParameterTree(), and ParticleDistribution::generateParticles().
std::string NodeUtils::nodeToString | ( | const INode * | node | ) |
Returns multiline string representing tree structure starting from given node.
Definition at line 81 of file NodeUtils.cpp.
References progenyPlus().
Referenced by INode::treeToString().
std::vector< std::tuple< const INode *, int, const INode * > > NodeUtils::progenyPlus | ( | const INode * | node, |
int | level = 0 |
||
) |
Returns a vector of triples (descendant, depth, parent)
Definition at line 69 of file NodeUtils.cpp.
References INode::getChildren().
Referenced by nodeToString(), and GUIDomainSampleVisitor::populateSampleModel().