SPH
Classes | Functions
Node.cpp File Reference
#include "run/Node.h"
#include "quantities/Quantity.h"
#include "system/Statistics.h"

Go to the source code of this file.

Classes

class  SetAccessorsProc
 
class  CopyEntriesProc
 

Functions

AutoPtr< JobNodecloneNode (const JobNode &node, const std::string &name)
 Clones a single node. More...
 
SharedPtr< JobNodecloneHierarchy (JobNode &node, const Optional< std::string > &prefix)
 Clones all nodes in the hierarchy. More...
 

Function Documentation

◆ cloneHierarchy()

SharedPtr<JobNode> cloneHierarchy ( JobNode node,
const Optional< std::string > &  prefix = NOTHING 
)

Clones all nodes in the hierarchy.

Returned node is already connected to the other cloned nodes.

Parameters
nodeRoot node of the cloned hierarchy
prefixPrefix added to all names of cloned nodes. NOTHING means the cloned names are autogenerated.

Definition at line 282 of file Node.cpp.

◆ cloneNode()

AutoPtr<JobNode> cloneNode ( const JobNode node,
const std::string &  name = "" 
)

Clones a single node.

No slots of the returned node are connected.

Parameters
nodeNode to clone.
nameInstance name of the returned clone. Empty means the name is autogenerated.

Definition at line 269 of file Node.cpp.