the templated subclass that holds data values, T, in a quadtree structure. More...
#include <brip_quadtree_node.h>
Public Member Functions | |
brip_quadtree_node () | |
brip_quadtree_node (unsigned iul, unsigned jul, unsigned ilr, unsigned jlr) | |
brip_quadtree_node (unsigned iul, unsigned jul, unsigned ilr, unsigned jlr, T data) | |
~brip_quadtree_node () | |
T | data () const |
bool | data_valid () const |
brip_quadtree_node_base_sptr | child (unsigned i, unsigned j) |
return the child, qij. | |
void | set_child (unsigned i, unsigned j, brip_quadtree_node_base_sptr const &child) |
set the child, qij. | |
unsigned | n_children () const |
the number of non-null child nodes. | |
brip_quadtree_node_base_sptr | parent () |
the parent node to *this node. | |
void | set_parent (brip_quadtree_node_base_sptr const &parent) |
set the parent. | |
void | region (unsigned &iul, unsigned &jul, unsigned &ilr, unsigned &jlr) const |
the region in the array represented by *this node. | |
void | set_region (unsigned iul, unsigned jul, unsigned ilr, unsigned jlr) |
set the region in the array represented by *this node. | |
void | ref () |
void | unref () |
int | get_references () const |
bool | is_referenced () const |
Protected Attributes | |
T | data_ |
unsigned | iul_ |
unsigned | jul_ |
unsigned | ilr_ |
unsigned | jlr_ |
bool | valid_ |
brip_quadtree_node_base_sptr | parent_ |
vcl_vector < brip_quadtree_node_base_sptr > | children_ |
the templated subclass that holds data values, T, in a quadtree structure.
Definition at line 80 of file brip_quadtree_node.h.
brip_quadtree_node< T >::brip_quadtree_node | ( | ) | [inline] |
Definition at line 87 of file brip_quadtree_node.h.
brip_quadtree_node< T >::brip_quadtree_node | ( | unsigned | iul, |
unsigned | jul, | ||
unsigned | ilr, | ||
unsigned | jlr | ||
) | [inline] |
Definition at line 90 of file brip_quadtree_node.h.
brip_quadtree_node< T >::brip_quadtree_node | ( | unsigned | iul, |
unsigned | jul, | ||
unsigned | ilr, | ||
unsigned | jlr, | ||
T | data | ||
) | [inline] |
Definition at line 93 of file brip_quadtree_node.h.
brip_quadtree_node< T >::~brip_quadtree_node | ( | ) | [inline] |
Definition at line 97 of file brip_quadtree_node.h.
brip_quadtree_node_base_sptr brip_quadtree_node_base::child | ( | unsigned | i, |
unsigned | j | ||
) | [inline, inherited] |
return the child, qij.
Definition at line 44 of file brip_quadtree_node.h.
T brip_quadtree_node< T >::data | ( | ) | const [inline] |
Definition at line 101 of file brip_quadtree_node.h.
bool brip_quadtree_node_base::data_valid | ( | ) | const [inline, inherited] |
Definition at line 41 of file brip_quadtree_node.h.
unsigned brip_quadtree_node_base::n_children | ( | ) | const [inline, inherited] |
the number of non-null child nodes.
Definition at line 53 of file brip_quadtree_node.h.
brip_quadtree_node_base_sptr brip_quadtree_node_base::parent | ( | ) | [inline, inherited] |
the parent node to *this node.
Definition at line 57 of file brip_quadtree_node.h.
void brip_quadtree_node_base::region | ( | unsigned & | iul, |
unsigned & | jul, | ||
unsigned & | ilr, | ||
unsigned & | jlr | ||
) | const [inline, inherited] |
the region in the array represented by *this node.
Definition at line 63 of file brip_quadtree_node.h.
void brip_quadtree_node_base::set_child | ( | unsigned | i, |
unsigned | j, | ||
brip_quadtree_node_base_sptr const & | child | ||
) | [inline, inherited] |
set the child, qij.
Definition at line 48 of file brip_quadtree_node.h.
void brip_quadtree_node_base::set_parent | ( | brip_quadtree_node_base_sptr const & | parent | ) | [inline, inherited] |
set the parent.
Definition at line 60 of file brip_quadtree_node.h.
void brip_quadtree_node_base::set_region | ( | unsigned | iul, |
unsigned | jul, | ||
unsigned | ilr, | ||
unsigned | jlr | ||
) | [inline, inherited] |
set the region in the array represented by *this node.
Definition at line 67 of file brip_quadtree_node.h.
vcl_vector<brip_quadtree_node_base_sptr> brip_quadtree_node_base::children_ [protected, inherited] |
Definition at line 75 of file brip_quadtree_node.h.
T brip_quadtree_node< T >::data_ [protected] |
Definition at line 106 of file brip_quadtree_node.h.
unsigned brip_quadtree_node_base::ilr_ [protected, inherited] |
Definition at line 72 of file brip_quadtree_node.h.
unsigned brip_quadtree_node_base::iul_ [protected, inherited] |
Definition at line 71 of file brip_quadtree_node.h.
unsigned brip_quadtree_node_base::jlr_ [protected, inherited] |
Definition at line 72 of file brip_quadtree_node.h.
unsigned brip_quadtree_node_base::jul_ [protected, inherited] |
Definition at line 71 of file brip_quadtree_node.h.
brip_quadtree_node_base_sptr brip_quadtree_node_base::parent_ [protected, inherited] |
Definition at line 74 of file brip_quadtree_node.h.
bool brip_quadtree_node_base::valid_ [protected, inherited] |
Definition at line 73 of file brip_quadtree_node.h.