MCPcopy Create free account
hub / github.com/PCGEx/PCGExtendedToolkit / AddNodes

Method AddNodes

Source/PCGExtendedToolkit/Private/Graph/PCGExGraph.cpp:752–764  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

750 }
751
752 TArrayView<FNode> FGraph::AddNodes(const int32 NumNewNodes)
753 {
754 const int32 StartIndex = Nodes.Num();
755 Nodes.SetNum(StartIndex + NumNewNodes);
756 for (int i = 0; i < NumNewNodes; i++)
757 {
758 FNode& Node = Nodes[StartIndex + i];
759 Node.Index = Node.PointIndex = StartIndex + i;
760 Node.Links.Reserve(NumEdgesReserve);
761 }
762
763 return MakeArrayView(Nodes.GetData() + StartIndex, NumNewNodes);
764 }
765
766
767 void FGraph::BuildSubGraphs(const FPCGExGraphBuilderDetails& Limits)

Callers 1

InsertNodesMethod · 0.80

Calls 3

NumMethod · 0.80
SetNumMethod · 0.80
ReserveMethod · 0.45

Tested by

no test coverage detected