Aleph-w 3.0
A C++ Library for Data Structures and Algorithms
Loading...
Searching...
No Matches
K2Tree< T >::Node Struct Reference

Internal node structure for the k-d tree. More...

Collaboration diagram for K2Tree< T >::Node:
[legend]

Public Member Functions

 Node (const Point &__point) noexcept
 Construct a node with a given point.
 
void set_rect (const Geom_Number &xmin, const Geom_Number &ymin, const Geom_Number &xmax, const Geom_Number &ymax) noexcept
 Set the rectangular region for this node.
 
void set_rect (const Point &pmin, const Point &pmax) noexcept
 Set the rectangular region using corner points.
 
const Geom_Numberxmin () const noexcept
 
const Geom_Numberymin () const noexcept
 
const Geom_Numberxmax () const noexcept
 
const Geom_Numberymax () const noexcept
 
const Geom_Numberx () const noexcept
 
const Geom_Numbery () const noexcept
 

Public Attributes

Point point
 The point stored at this node.
 
Rectangle rect
 The axis-aligned rectangle for this node's region.
 
Nodelb
 Left/bottom subtree.
 
Nodert
 Right/top subtree.
 

Detailed Description

template<typename T = Empty_Class>
struct K2Tree< T >::Node

Internal node structure for the k-d tree.

Definition at line 134 of file tpl_2dtree.H.

Constructor & Destructor Documentation

◆ Node()

template<typename T = Empty_Class>
K2Tree< T >::Node::Node ( const Point __point)
inlinenoexcept

Construct a node with a given point.

Definition at line 142 of file tpl_2dtree.H.

Member Function Documentation

◆ set_rect() [1/2]

template<typename T = Empty_Class>
void K2Tree< T >::Node::set_rect ( const Geom_Number xmin,
const Geom_Number ymin,
const Geom_Number xmax,
const Geom_Number ymax 
)
inlinenoexcept

◆ set_rect() [2/2]

template<typename T = Empty_Class>
void K2Tree< T >::Node::set_rect ( const Point pmin,
const Point pmax 
)
inlinenoexcept

Set the rectangular region using corner points.

Definition at line 156 of file tpl_2dtree.H.

References K2Tree< T >::pmax, K2Tree< T >::pmin, K2Tree< T >::Node::rect, and Rectangle::set_rect().

◆ x()

template<typename T = Empty_Class>
const Geom_Number & K2Tree< T >::Node::x ( ) const
inlinenoexcept

◆ xmax()

template<typename T = Empty_Class>
const Geom_Number & K2Tree< T >::Node::xmax ( ) const
inlinenoexcept

◆ xmin()

template<typename T = Empty_Class>
const Geom_Number & K2Tree< T >::Node::xmin ( ) const
inlinenoexcept

◆ y()

template<typename T = Empty_Class>
const Geom_Number & K2Tree< T >::Node::y ( ) const
inlinenoexcept

◆ ymax()

template<typename T = Empty_Class>
const Geom_Number & K2Tree< T >::Node::ymax ( ) const
inlinenoexcept

◆ ymin()

template<typename T = Empty_Class>
const Geom_Number & K2Tree< T >::Node::ymin ( ) const
inlinenoexcept

Member Data Documentation

◆ lb

◆ point

template<typename T = Empty_Class>
Point K2Tree< T >::Node::point

◆ rect

◆ rt


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