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

Method Node

chapter09/src/main/java/com/seaofnodes/simple/node/Node.java:70–78  ·  view source on GitHub ↗
(Node... inputs)

Source from the content-addressed store, hash-verified

68 public static int UID() { return UNIQUE_ID; }
69
70 protected Node(Node... inputs) {
71 _nid = UNIQUE_ID++; // allocate unique dense ID
72 _inputs = new ArrayList<>();
73 Collections.addAll(_inputs,inputs);
74 _outputs = new ArrayList<>();
75 for( Node n : _inputs )
76 if( n != null )
77 n.addUse( this );
78 }
79
80 // Easy reading label for debugger, e.g. "Add" or "Region" or "EQ"
81 public abstract String label();

Callers

nothing calls this directly

Calls 2

addAllMethod · 0.45
addUseMethod · 0.45

Tested by

no test coverage detected