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

Method Node

chapter04/src/main/java/com/seaofnodes/simple/node/Node.java:56–64  ·  view source on GitHub ↗
(Node... inputs)

Source from the content-addressed store, hash-verified

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

Callers

nothing calls this directly

Calls 2

addAllMethod · 0.45
addUseMethod · 0.45

Tested by

no test coverage detected