Package org.ddogleg.graph
Class GraphDataManager<N,E>
java.lang.Object
org.ddogleg.graph.GraphDataManager<N,E>
Handles creating and recycling data in a graph.
-
Field Summary
Modifier and TypeFieldDescriptionprotected final ArrayDeque<Edge<N,
E>> protected final ArrayDeque<Node<N,
E>> -
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
recycleEdge
(Edge<N, E> e) void
recycleNode
(Node<N, E> n) void
reset()
Takes all the used nodes and makes them unused.void
Takes all the used nodes and makes them unused.
-
Field Details
-
usedEdges
-
unusedEdges
-
usedNodes
-
unusedNodes
-
-
Constructor Details
-
GraphDataManager
public GraphDataManager()
-
-
Method Details
-
reset
public void reset()Takes all the used nodes and makes them unused. -
resetHard
public void resetHard()Takes all the used nodes and makes them unused. Also dereferences any objects saved in 'data'. -
createEdge
-
recycleEdge
-
createNode
-
recycleNode
-