SPH
Classes | Enumerations | Functions
Node.h File Reference
#include "io/Output.h"
#include "objects/containers/CallbackSet.h"
#include "objects/containers/UnorderedMap.h"
#include "objects/wrappers/Any.h"
#include "quantities/Storage.h"
#include "run/IRun.h"
#include "run/Job.h"
#include "run/VirtualSettings.h"
#include "system/Statistics.h"
#include <set>

Go to the source code of this file.

Classes

class  IJobCallbacks
 Interface used during job evaluation. More...
 
class  NullJobCallbacks
 
class  INode
 Provides an interface for running a simulation. More...
 
struct  SlotData
 
class  JobNode
 Building block of a simulation hierarchy. More...
 

Enumerations

enum  JobNotificationType {
  ENTRY_CHANGED , PROVIDER_CONNECTED , PROVIDER_DISCONNECTED , DEPENDENT_CONNECTED ,
  DEPENDENT_DISCONNECTED
}
 

Functions

template<typename TJob , typename... TArgs>
SharedPtr< JobNodemakeNode (TArgs &&... args)
 Helper function for creating job nodes. More...
 
AutoPtr< JobNodecloneNode (const JobNode &node, const std::string &name="")
 Clones a single node. More...
 
SharedPtr< JobNodecloneHierarchy (JobNode &node, const Optional< std::string > &prefix=NOTHING)
 Clones all nodes in the hierarchy. More...
 

Enumeration Type Documentation

◆ JobNotificationType

Enumerator
ENTRY_CHANGED 
PROVIDER_CONNECTED 
PROVIDER_DISCONNECTED 
DEPENDENT_CONNECTED 
DEPENDENT_DISCONNECTED 

Definition at line 77 of file Node.h.

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.

◆ makeNode()

template<typename TJob , typename... TArgs>
SharedPtr<JobNode> makeNode ( TArgs &&...  args)

Helper function for creating job nodes.

Definition at line 191 of file Node.h.