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

Method Node

chapter07/src/main/java/com/seaofnodes/simple/node/Node.java:66–74  ·  view source on GitHub ↗
(Node... inputs)

Source from the content-addressed store, hash-verified

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

Callers

nothing calls this directly

Calls 2

addAllMethod · 0.45
addUseMethod · 0.45

Tested by

no test coverage detected