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

Method Node

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

Source from the content-addressed store, hash-verified

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

Callers

nothing calls this directly

Calls 2

addAllMethod · 0.45
addUseMethod · 0.45

Tested by

no test coverage detected