38 namespace fast_multipole_embedder {
109 if (a < 0)
return 64;
void restorePushBackChain(LinearQuadtree::NodeID curr)
used by restore chain
uint32_t numberOfPoints(NodeID nodeID) const
returns the number of points contained in the subtree of node nodeID
void prepareTree()
prepares the node and leaf layer for the complete tree from 0 to n (excluding n)
NodeID root() const
returns the index of the root
Definition of utility functions for FME layout.
LinearQuadtree::NodeID lastInner
void build()
the main build call
LinearQuadtree::NodeID restoreChainLastNode
PointID firstPoint(NodeID nodeID) const
LinearQuadtree::NodeID firstInner
NodeID child(NodeID nodeID, uint32_t i) const
returns the i th child index of node nodeID
LinearQuadtree::NodeID firstLeaf
void setNextNode(NodeID nodeID, NodeID next)
void prepareNodeAndLeaf(LinearQuadtree::PointID l, LinearQuadtree::PointID r)
prepares the node and leaf layer at position l where r is the next position
void setFirstPoint(NodeID nodeID, PointID firstPoint)
LinearQuadtree::NodeID lastLeaf
uint32_t CAL(LinearQuadtree::PointID a, LinearQuadtree::PointID b)
returns the level of the first common ancestor of a and b
Declaration of class LinearQuadtree.
uint32_t mostSignificantBit(T n)
returns the index of the most signficant bit set. 0 = most signif, bitlength-1 = least signif ...
uint32_t numberOfChilds(NodeID nodeID) const
returns the number of children of node nodeID. for an inner node this is 1..4 and can be accessed by ...
LinearQuadtreeBuilder(LinearQuadtree &treeRef)
constructor
void setNumberOfPoints(NodeID nodeID, uint32_t numPoints)
sets the number of nodes containted in node nodeID
void restoreChain(LinearQuadtree::NodeID curr)
LinearQuadtree::PointID n
bool isLeaf(NodeID nodeID) const
returns true if the given node index is a leaf
the builder for the LinearQuadtree
The namespace for all OGDF objects.
MortonNR mortonNr(PointID point) const
void mergeWithNext(LinearQuadtree::NodeID curr)
merges the node curr with curr's next node by appending the next nodes children to curr except the fi...
void buildHierarchy()
the main function for the new link-only recursive builder