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

Method Node

chapter19/src/main/java/com/seaofnodes/simple/node/Node.java:53–61  ·  view source on GitHub ↗
(Node... inputs)

Source from the content-addressed store, hash-verified

51
52
53 Node(Node... inputs) {
54 _nid = CODE.getUID(); // allocate unique dense ID
55 _inputs = new Ary<>(Node.class);
56 Collections.addAll(_inputs,inputs);
57 _outputs = new Ary<>(Node.class);
58 for( Node n : _inputs )
59 if( n != null )
60 n.addUse( this );
61 }
62
63 // Make a Node using the existing arrays of nodes.
64 // 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