|
| const_iterator | begin () const |
| |
| void | check_tree () |
| |
| void | clear () |
| |
| size_type | count_within_range (_Region_ const &__REGION) const |
| |
| size_type | count_within_range (const_reference __V, subvalue_type const __R) const |
| |
| void | efficient_replace_and_optimise (std::vector< value_type > &writable_vector) |
| |
| bool | empty () const |
| |
| const_iterator | end () const |
| |
| void | erase (const_iterator const &__IT) |
| |
| void | erase (const_reference __V) |
| |
| void | erase_exact (const_reference __V) |
| |
| template<class SearchVal > |
| const_iterator | find (SearchVal const &__V) const |
| |
| template<class SearchVal > |
| const_iterator | find_exact (SearchVal const &__V) const |
| |
| template<class SearchVal > |
| std::pair< const_iterator, distance_type > | find_nearest (SearchVal const &__val) const |
| |
| template<class SearchVal > |
| std::pair< const_iterator, distance_type > | find_nearest (SearchVal const &__val, distance_type __max) const |
| |
| template<class SearchVal , class _Predicate > |
| std::pair< const_iterator, distance_type > | find_nearest_if (SearchVal const &__val, distance_type __max, _Predicate __p) const |
| |
| template<typename _OutputIterator > |
| _OutputIterator | find_within_range (_Region_ const ®ion, _OutputIterator out) const |
| |
| template<typename SearchVal , typename _OutputIterator > |
| _OutputIterator | find_within_range (SearchVal const &val, subvalue_type const range, _OutputIterator out) const |
| |
| const_iterator | find_within_range_iterative (const_reference, const_reference) |
| |
| allocator_type | get_allocator () const |
| |
| template<class _InputIterator > |
| void | insert (_InputIterator __first, _InputIterator __last) |
| |
| iterator | insert (const_reference __V) |
| |
| template<typename _InputIterator > |
| void | insert (iterator __pos, _InputIterator __first, _InputIterator __last) |
| |
| void | insert (iterator __pos, size_type __n, const value_type &__x) |
| |
| iterator | insert (iterator, const_reference __V) |
| |
| | KDTree (_Acc const &__acc=_Acc(), _Dist const &__dist=_Dist(), _Cmp const &__cmp=_Cmp(), const allocator_type &__a=allocator_type()) |
| |
| template<typename _InputIterator > |
| | KDTree (_InputIterator __first, _InputIterator __last, _Acc const &acc=_Acc(), _Dist const &__dist=_Dist(), _Cmp const &__cmp=_Cmp(), const allocator_type &__a=allocator_type()) |
| |
| | KDTree (const KDTree &__x) |
| |
| size_type | max_size () const |
| |
| KDTree & | operator= (const KDTree &__x) |
| |
| void | optimise () |
| |
| void | optimize () |
| |
| const_reverse_iterator | rbegin () const |
| |
| const_reverse_iterator | rend () const |
| |
| size_type | size () const |
| |
| _Acc | value_acc () const |
| | Accessor to the value's elements. More...
|
| |
| _Cmp | value_comp () const |
| | Comparator for the values in the KDTree. More...
|
| |
| _Dist & | value_distance () |
| |
| const _Dist & | value_distance () const |
| | Distance calculator between 2 value's element. More...
|
| |
| template<class Visitor > |
| Visitor | visit_within_range (_Region_ const ®ION, Visitor visitor) const |
| |
| template<typename SearchVal , class Visitor > |
| Visitor | visit_within_range (SearchVal const &V, subvalue_type const R, Visitor visitor) const |
| |
| | ~KDTree () |
| |
template<size_t const __K, typename _Val , typename _Acc = _Bracket_accessor<_Val>, typename _Dist = squared_difference<typename _Acc::result_type, typename _Acc::result_type>, typename _Cmp = std::less<typename _Acc::result_type>, typename _Alloc = std::allocator<_Node<_Val> >>
| typedef _Base::allocator_type KDTree::KDTree< __K, _Val, _Acc, _Dist, _Cmp, _Alloc >::allocator_type |
|
protected |
template<size_t const __K, typename _Val , typename _Acc = _Bracket_accessor<_Val>, typename _Dist = squared_difference<typename _Acc::result_type, typename _Acc::result_type>, typename _Cmp = std::less<typename _Acc::result_type>, typename _Alloc = std::allocator<_Node<_Val> >>
| typedef ptrdiff_t KDTree::KDTree< __K, _Val, _Acc, _Dist, _Cmp, _Alloc >::difference_type |
template<size_t const __K, typename _Val , typename _Acc = _Bracket_accessor<_Val>, typename _Dist = squared_difference<typename _Acc::result_type, typename _Acc::result_type>, typename _Cmp = std::less<typename _Acc::result_type>, typename _Alloc = std::allocator<_Node<_Val> >>
| typedef _Dist::distance_type KDTree::KDTree< __K, _Val, _Acc, _Dist, _Cmp, _Alloc >::distance_type |
template<size_t const __K, typename _Val , typename _Acc = _Bracket_accessor<_Val>, typename _Dist = squared_difference<typename _Acc::result_type, typename _Acc::result_type>, typename _Cmp = std::less<typename _Acc::result_type>, typename _Alloc = std::allocator<_Node<_Val> >>
| typedef _Acc::result_type KDTree::KDTree< __K, _Val, _Acc, _Dist, _Cmp, _Alloc >::subvalue_type |
template<size_t const __K, typename _Val , typename _Acc = _Bracket_accessor<_Val>, typename _Dist = squared_difference<typename _Acc::result_type, typename _Acc::result_type>, typename _Cmp = std::less<typename _Acc::result_type>, typename _Alloc = std::allocator<_Node<_Val> >>
template<typename _InputIterator >
| KDTree::KDTree< __K, _Val, _Acc, _Dist, _Cmp, _Alloc >::KDTree |
( |
_InputIterator |
__first, |
|
|
_InputIterator |
__last, |
|
|
_Acc const & |
acc = _Acc(), |
|
|
_Dist const & |
__dist = _Dist(), |
|
|
_Cmp const & |
__cmp = _Cmp(), |
|
|
const allocator_type & |
__a = allocator_type() |
|
) |
| |
template<size_t const __K, typename _Val , typename _Acc = _Bracket_accessor<_Val>, typename _Dist = squared_difference<typename _Acc::result_type, typename _Acc::result_type>, typename _Cmp = std::less<typename _Acc::result_type>, typename _Alloc = std::allocator<_Node<_Val> >>
| void KDTree::KDTree< __K, _Val, _Acc, _Dist, _Cmp, _Alloc >::clear |
( |
| ) |
|
template<size_t const __K, typename _Val , typename _Acc = _Bracket_accessor<_Val>, typename _Dist = squared_difference<typename _Acc::result_type, typename _Acc::result_type>, typename _Cmp = std::less<typename _Acc::result_type>, typename _Alloc = std::allocator<_Node<_Val> >>
template<size_t const __K, typename _Val , typename _Acc = _Bracket_accessor<_Val>, typename _Dist = squared_difference<typename _Acc::result_type, typename _Acc::result_type>, typename _Cmp = std::less<typename _Acc::result_type>, typename _Alloc = std::allocator<_Node<_Val> >>
template<size_t const __K, typename _Val , typename _Acc = _Bracket_accessor<_Val>, typename _Dist = squared_difference<typename _Acc::result_type, typename _Acc::result_type>, typename _Cmp = std::less<typename _Acc::result_type>, typename _Alloc = std::allocator<_Node<_Val> >>
template<class SearchVal >
template<size_t const __K, typename _Val , typename _Acc = _Bracket_accessor<_Val>, typename _Dist = squared_difference<typename _Acc::result_type, typename _Acc::result_type>, typename _Cmp = std::less<typename _Acc::result_type>, typename _Alloc = std::allocator<_Node<_Val> >>
template<class SearchVal >
template<size_t const __K, typename _Val , typename _Acc = _Bracket_accessor<_Val>, typename _Dist = squared_difference<typename _Acc::result_type, typename _Acc::result_type>, typename _Cmp = std::less<typename _Acc::result_type>, typename _Alloc = std::allocator<_Node<_Val> >>
template<class SearchVal >
template<size_t const __K, typename _Val , typename _Acc = _Bracket_accessor<_Val>, typename _Dist = squared_difference<typename _Acc::result_type, typename _Acc::result_type>, typename _Cmp = std::less<typename _Acc::result_type>, typename _Alloc = std::allocator<_Node<_Val> >>
template<class SearchVal >
template<size_t const __K, typename _Val , typename _Acc = _Bracket_accessor<_Val>, typename _Dist = squared_difference<typename _Acc::result_type, typename _Acc::result_type>, typename _Cmp = std::less<typename _Acc::result_type>, typename _Alloc = std::allocator<_Node<_Val> >>
template<class SearchVal , class _Predicate >
template<size_t const __K, typename _Val , typename _Acc = _Bracket_accessor<_Val>, typename _Dist = squared_difference<typename _Acc::result_type, typename _Acc::result_type>, typename _Cmp = std::less<typename _Acc::result_type>, typename _Alloc = std::allocator<_Node<_Val> >>
template<typename _OutputIterator >
| _OutputIterator KDTree::KDTree< __K, _Val, _Acc, _Dist, _Cmp, _Alloc >::find_within_range |
( |
_Region_ const & |
region, |
|
|
_OutputIterator |
out |
|
) |
| const |
template<size_t const __K, typename _Val , typename _Acc = _Bracket_accessor<_Val>, typename _Dist = squared_difference<typename _Acc::result_type, typename _Acc::result_type>, typename _Cmp = std::less<typename _Acc::result_type>, typename _Alloc = std::allocator<_Node<_Val> >>
template<typename SearchVal , typename _OutputIterator >
| _OutputIterator KDTree::KDTree< __K, _Val, _Acc, _Dist, _Cmp, _Alloc >::find_within_range |
( |
SearchVal const & |
val, |
|
|
subvalue_type const |
range, |
|
|
_OutputIterator |
out |
|
) |
| const |
template<size_t const __K, typename _Val , typename _Acc = _Bracket_accessor<_Val>, typename _Dist = squared_difference<typename _Acc::result_type, typename _Acc::result_type>, typename _Cmp = std::less<typename _Acc::result_type>, typename _Alloc = std::allocator<_Node<_Val> >>
template<class _InputIterator >
| void KDTree::KDTree< __K, _Val, _Acc, _Dist, _Cmp, _Alloc >::insert |
( |
_InputIterator |
__first, |
|
|
_InputIterator |
__last |
|
) |
| |
template<size_t const __K, typename _Val , typename _Acc = _Bracket_accessor<_Val>, typename _Dist = squared_difference<typename _Acc::result_type, typename _Acc::result_type>, typename _Cmp = std::less<typename _Acc::result_type>, typename _Alloc = std::allocator<_Node<_Val> >>
template<typename _InputIterator >
| void KDTree::KDTree< __K, _Val, _Acc, _Dist, _Cmp, _Alloc >::insert |
( |
iterator |
__pos, |
|
|
_InputIterator |
__first, |
|
|
_InputIterator |
__last |
|
) |
| |
template<size_t const __K, typename _Val , typename _Acc = _Bracket_accessor<_Val>, typename _Dist = squared_difference<typename _Acc::result_type, typename _Acc::result_type>, typename _Cmp = std::less<typename _Acc::result_type>, typename _Alloc = std::allocator<_Node<_Val> >>
| void KDTree::KDTree< __K, _Val, _Acc, _Dist, _Cmp, _Alloc >::optimize |
( |
| ) |
|
template<size_t const __K, typename _Val , typename _Acc = _Bracket_accessor<_Val>, typename _Dist = squared_difference<typename _Acc::result_type, typename _Acc::result_type>, typename _Cmp = std::less<typename _Acc::result_type>, typename _Alloc = std::allocator<_Node<_Val> >>
| _Acc KDTree::KDTree< __K, _Val, _Acc, _Dist, _Cmp, _Alloc >::value_acc |
( |
| ) |
const |
Accessor to the value's elements.
This accessor shall not be modified, it could invalidate the tree.
- Returns
- a copy of the accessor used by the KDTree.
template<size_t const __K, typename _Val , typename _Acc = _Bracket_accessor<_Val>, typename _Dist = squared_difference<typename _Acc::result_type, typename _Acc::result_type>, typename _Cmp = std::less<typename _Acc::result_type>, typename _Alloc = std::allocator<_Node<_Val> >>
| _Cmp KDTree::KDTree< __K, _Val, _Acc, _Dist, _Cmp, _Alloc >::value_comp |
( |
| ) |
const |
Comparator for the values in the KDTree.
The comparator shall not be modified, it could invalidate the tree.
- Returns
- a copy of the comparator used by the KDTree.
template<size_t const __K, typename _Val , typename _Acc = _Bracket_accessor<_Val>, typename _Dist = squared_difference<typename _Acc::result_type, typename _Acc::result_type>, typename _Cmp = std::less<typename _Acc::result_type>, typename _Alloc = std::allocator<_Node<_Val> >>
| const _Dist & KDTree::KDTree< __K, _Val, _Acc, _Dist, _Cmp, _Alloc >::value_distance |
( |
| ) |
const |
Distance calculator between 2 value's element.
This functor can be modified. It's modification will only affect the behavior of the find and find_nearest functions.
- Returns
- a reference to the distance calculator used by the KDTree.
template<size_t const __K, typename _Val , typename _Acc = _Bracket_accessor<_Val>, typename _Dist = squared_difference<typename _Acc::result_type, typename _Acc::result_type>, typename _Cmp = std::less<typename _Acc::result_type>, typename _Alloc = std::allocator<_Node<_Val> >>
template<class Visitor >
| Visitor KDTree::KDTree< __K, _Val, _Acc, _Dist, _Cmp, _Alloc >::visit_within_range |
( |
_Region_ const & |
REGION, |
|
|
Visitor |
visitor |
|
) |
| const |
template<size_t const __K, typename _Val , typename _Acc = _Bracket_accessor<_Val>, typename _Dist = squared_difference<typename _Acc::result_type, typename _Acc::result_type>, typename _Cmp = std::less<typename _Acc::result_type>, typename _Alloc = std::allocator<_Node<_Val> >>
template<typename SearchVal , class Visitor >
| Visitor KDTree::KDTree< __K, _Val, _Acc, _Dist, _Cmp, _Alloc >::visit_within_range |
( |
SearchVal const & |
V, |
|
|
subvalue_type const |
R, |
|
|
Visitor |
visitor |
|
) |
| const |