Public Types
Public Functions
mdds::point_quad_tree::point_quad_tree()¶mdds::point_quad_tree::point_quad_tree(const point_quad_tree &r)¶mdds::point_quad_tree::~point_quad_tree()¶mdds::point_quad_tree::insert(key_type x, key_type y, value_type data)¶Insert a new data at specified coordinates. It overwrites existing data in case one exists at the specified coordinates.
x - x coordinate of new data position
y - y coordinate of new data position
data - data being inserted at the specified coordinates.
mdds::point_quad_tree::search_region(key_type x1, key_type y1, key_type x2, key_type y2, data_array_type &result)¶Perform region search (aka window search), that is, find all points that fall within specified rectangular region. The boundaries are inclusive.
x1 - left coordinate of the search region
y1 - top coordinate of the search region
x2 - right coordinate of the search region
y2 - bottom coordinate of the search region
result - this array will contain all data found without specified region.
mdds::point_quad_tree::search_region(key_type x1, key_type y1, key_type x2, key_type y2)¶Perform region search (aka window search), that is, find all points that fall within specified rectangular region. The boundaries are inclusive.
x1 - left coordinate of the search region
y1 - top coordinate of the search region
x2 - right coordinate of the search region
y2 - bottom coordinate of the search region
mdds::point_quad_tree::find(key_type x, key_type y)¶Find data at specified coordinates. If no data exists at the specified coordinates, this method throws a point_quad_tree::data_not_found exception.
x - x coordinate
y - y coordinate
mdds::point_quad_tree::remove(key_type x, key_type y)¶Remove data from specified coordinates. This method does nothing if no data exists at the specified coordinates.
x - x coordinate
y - y coordinate
mdds::point_quad_tree::swap(point_quad_tree &r)¶Swap the internal state with another instance.
r - another instance to swap internals with.
mdds::point_quad_tree::clear()¶Remove all stored data.
mdds::point_quad_tree::empty()¶Check whether or not the container is empty.
mdds::point_quad_tree::size()¶Get the number of stored data.
mdds::point_quad_tree::get_node_access()¶Get read-only access to the internal quad node tree.
mdds::point_quad_tree::operator=(const point_quad_tree &r)¶mdds::point_quad_tree::operator==(const point_quad_tree &r)¶mdds::point_quad_tree::operator!=(const point_quad_tree &r)¶Node wrapper to allow read-only access to the internal quad node structure.
Public Functions
mdds::point_quad_tree<_Key, _Value>::node_access::northeast()¶mdds::point_quad_tree<_Key, _Value>::node_access::northwest()¶mdds::point_quad_tree<_Key, _Value>::node_access::southeast()¶mdds::point_quad_tree<_Key, _Value>::node_access::southwest()¶mdds::point_quad_tree<_Key, _Value>::node_access::data()¶mdds::point_quad_tree<_Key, _Value>::node_access::x()¶mdds::point_quad_tree<_Key, _Value>::node_access::y()¶mdds::point_quad_tree<_Key, _Value>::node_access::operator bool()¶mdds::point_quad_tree<_Key, _Value>::node_access::operator==(const node_access &r)¶mdds::point_quad_tree<_Key, _Value>::node_access::operator=(const node_access &r)¶mdds::point_quad_tree<_Key, _Value>::node_access::node_access()¶mdds::point_quad_tree<_Key, _Value>::node_access::node_access(const node_access &r)¶mdds::point_quad_tree<_Key, _Value>::node_access::~node_access()¶Public Functions
mdds::point_quad_tree<_Key, _Value>::search_results::search_results()¶mdds::point_quad_tree<_Key, _Value>::search_results::search_results(const search_results &r)¶mdds::point_quad_tree<_Key, _Value>::search_results::begin()¶mdds::point_quad_tree<_Key, _Value>::search_results::end()¶Public Types
mdds::point_quad_tree<_Key, _Value>::search_results::const_iterator::value_type¶mdds::point_quad_tree<_Key, _Value>::search_results::const_iterator::pointer¶mdds::point_quad_tree<_Key, _Value>::search_results::const_iterator::reference¶mdds::point_quad_tree<_Key, _Value>::search_results::const_iterator::difference_type¶mdds::point_quad_tree<_Key, _Value>::search_results::const_iterator::iterator_category¶Public Functions
mdds::point_quad_tree<_Key, _Value>::search_results::const_iterator::const_iterator(res_nodes_ptr &ptr)¶mdds::point_quad_tree<_Key, _Value>::search_results::const_iterator::const_iterator(const const_iterator &r)¶mdds::point_quad_tree<_Key, _Value>::search_results::const_iterator::operator=(const const_iterator &r)¶mdds::point_quad_tree<_Key, _Value>::search_results::const_iterator::operator==(const const_iterator &r)¶mdds::point_quad_tree<_Key, _Value>::search_results::const_iterator::operator!=(const const_iterator &r)¶mdds::point_quad_tree<_Key, _Value>::search_results::const_iterator::operator*()¶mdds::point_quad_tree<_Key, _Value>::search_results::const_iterator::operator->()¶mdds::point_quad_tree<_Key, _Value>::search_results::const_iterator::operator++()¶mdds::point_quad_tree<_Key, _Value>::search_results::const_iterator::operator--()¶Friends
mdds::point_quad_tree::point_quad_tree< _Key, _Value >::search_results