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

Method FGraph

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

Source from the content-addressed store, hash-verified

488#undef PCGEX_FOREACH_EDGE_METADATA
489
490 FGraph::FGraph(const int32 InNumNodes, const int32 InNumEdgesReserve)
491 : NumEdgesReserve(InNumEdgesReserve)
492 {
493 PCGEX_LOG_CTR(FGraph)
494
495 PCGEx::InitArray(Nodes, InNumNodes);
496
497 for (int i = 0; i < InNumNodes; i++)
498 {
499 FNode& Node = Nodes[i];
500 Node.Index = Node.PointIndex = i;
501 Node.Links.Reserve(NumEdgesReserve);
502 }
503 }
504
505 void FGraph::ReserveForEdges(const int32 UpcomingAdditionCount)
506 {

Callers

nothing calls this directly

Calls 2

InitArrayFunction · 0.85
ReserveMethod · 0.45

Tested by

no test coverage detected