Copiste  0.1
 All Classes Functions Variables Enumerations Friends Pages
Public Member Functions | Public Attributes
QuadNode Class Reference

A node for the quadtree. More...

#include <quadtree.h>

List of all members.

Public Member Functions

 QuadNode (int e=-1)
 Constructs a leaf.
 QuadNode (QuadNode *a, QuadNode *b, QuadNode *c, QuadNode *d)
 Construct an internal node.
 ~QuadNode ()
 Destructs the node and its children (if any)
bool isLeaf ()
 Provided for convenience.

Public Attributes

int elem
 If it's a leaf : the index of the element (else, -1)
QuadNodehl
 Else, it's an internal node : the pointer to the children (else, 0)
QuadNodehr
QuadNodell
QuadNodelr

Detailed Description

A node for the quadtree.


The documentation for this class was generated from the following files: