Subgraph.insert

Allocates and initializes a new node.

The new node's address is stable as long as this subgraph isn't merged.

  1. AllNodes[kind]* insert(InitParams!(AllNodes[kind]) args)
    struct Subgraph
    @nogc nothrow
    AllNodes[kind]*
    insert
    (
    NodeKind kind
    )
    (
    auto ref InitParams!(AllNodes[kind]) args
    )
  2. JoinNode* insert(uint argc)
  3. InstantiationNode* insert()
  4. ConditionalNode* insert()
  5. MultiplexerNode* insert()

Return Value

Type: AllNodes[kind]*

A pointer to the new node, which is null in case something went wrong (OOM or the provided arguments were rejected by the node's initializer).