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

Method Node

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

Source from the content-addressed store, hash-verified

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

Callers

nothing calls this directly

Calls 2

addAllMethod · 0.45
addUseMethod · 0.45

Tested by

no test coverage detected