MCPcopy Create free account
hub / github.com/SeaOfNodes/Simple / Node

Method Node

chapter18/src/main/java/com/seaofnodes/simple/node/Node.java:59–67  ·  view source on GitHub ↗
(Node... inputs)

Source from the content-addressed store, hash-verified

57 public static int UID() { return UNIQUE_ID; }
58
59 protected Node(Node... inputs) {
60 _nid = UNIQUE_ID++; // allocate unique dense ID
61 _inputs = new Ary<>(Node.class);
62 Collections.addAll(_inputs,inputs);
63 _outputs = new Ary<>(Node.class);
64 for( Node n : _inputs )
65 if( n != null )
66 n.addUse( this );
67 }
68
69 // Easy reading label for debugger, e.g. "Add" or "Region" or "EQ"
70 public abstract String label();

Callers

nothing calls this directly

Calls 2

addAllMethod · 0.45
addUseMethod · 0.45

Tested by

no test coverage detected