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

Method Node

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

Source from the content-addressed store, hash-verified

56
57
58 Node(Node... inputs) {
59 _nid = CODE.getUID(); // allocate unique dense ID
60 _inputs = new Ary<>(Node.class);
61 Collections.addAll(_inputs,inputs);
62 _outputs = new Ary<>(Node.class);
63 for( Node n : _inputs )
64 if( n != null )
65 n.addUse( this );
66 }
67
68 // Make a Node using the existing arrays of nodes.
69 // Used by any pass rewriting all Node classes but not the edges.

Callers

nothing calls this directly

Calls 4

getUIDMethod · 0.45
addAllMethod · 0.45
addUseMethod · 0.45
asAryMethod · 0.45

Tested by

no test coverage detected