Public Member Functions | Protected Attributes
brip_quadtree_node_base Class Reference

the base class representing the quadtree datastructure - holds no data. More...

#include <brip_quadtree_node.h>

Inheritance diagram for brip_quadtree_node_base:
Inheritance graph
[legend]

List of all members.

Public Member Functions

 brip_quadtree_node_base ()
 brip_quadtree_node_base (unsigned iul, unsigned jul, unsigned ilr, unsigned jlr, bool valid=false)
 ~brip_quadtree_node_base ()
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

unsigned iul_
unsigned jul_
unsigned ilr_
unsigned jlr_
bool valid_
brip_quadtree_node_base_sptr parent_
vcl_vector
< brip_quadtree_node_base_sptr
children_

Detailed Description

the base class representing the quadtree datastructure - holds no data.

Definition at line 27 of file brip_quadtree_node.h.


Constructor & Destructor Documentation

brip_quadtree_node_base::brip_quadtree_node_base ( ) [inline]

Definition at line 30 of file brip_quadtree_node.h.

brip_quadtree_node_base::brip_quadtree_node_base ( unsigned  iul,
unsigned  jul,
unsigned  ilr,
unsigned  jlr,
bool  valid = false 
) [inline]

Definition at line 34 of file brip_quadtree_node.h.

brip_quadtree_node_base::~brip_quadtree_node_base ( ) [inline]

Definition at line 39 of file brip_quadtree_node.h.


Member Function Documentation

brip_quadtree_node_base_sptr brip_quadtree_node_base::child ( unsigned  i,
unsigned  j 
) [inline]

return the child, qij.

Definition at line 44 of file brip_quadtree_node.h.

bool brip_quadtree_node_base::data_valid ( ) const [inline]

Definition at line 41 of file brip_quadtree_node.h.

unsigned brip_quadtree_node_base::n_children ( ) const [inline]

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]

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]

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]

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]

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]

set the region in the array represented by *this node.

Definition at line 67 of file brip_quadtree_node.h.


Member Data Documentation

Definition at line 75 of file brip_quadtree_node.h.

unsigned brip_quadtree_node_base::ilr_ [protected]

Definition at line 72 of file brip_quadtree_node.h.

unsigned brip_quadtree_node_base::iul_ [protected]

Definition at line 71 of file brip_quadtree_node.h.

unsigned brip_quadtree_node_base::jlr_ [protected]

Definition at line 72 of file brip_quadtree_node.h.

unsigned brip_quadtree_node_base::jul_ [protected]

Definition at line 71 of file brip_quadtree_node.h.

Definition at line 74 of file brip_quadtree_node.h.

Definition at line 73 of file brip_quadtree_node.h.


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