41 #ifndef PB_DS_TREE_POLICY_HPP
42 #define PB_DS_TREE_POLICY_HPP
44 #include <bits/c++config.h>
51 #define PB_DS_CLASS_T_DEC \
52 template<typename Node_CItr, typename Node_Itr, typename Cmp_Fn, \
55 #define PB_DS_CLASS_C_DEC \
56 tree_order_statistics_node_update<Node_CItr, Node_Itr, Cmp_Fn, _Alloc>
58 #define PB_DS_BRANCH_POLICY_BASE \
59 detail::branch_policy<Node_CItr, Node_Itr, _Alloc>
62 template<
typename Node_CItr,
typename Node_Itr,
63 typename Cmp_Fn,
typename _Alloc>
72 typedef typename allocator_type::size_type
size_type;
80 typedef typename node_iterator::value_type
iterator;
111 typedef typename _Alloc::template rebind<metadata_type>::other
__rebind_m;
151 #undef PB_DS_CLASS_T_DEC
152 #undef PB_DS_CLASS_C_DEC
153 #undef PB_DS_BRANCH_POLICY_BASE
size_type metadata_type
Definition: tree_policy.hpp:76
node_iterator::value_type iterator
Definition: tree_policy.hpp:80
_Alloc allocator_type
Definition: tree_policy.hpp:71
node_const_iterator::value_type const_iterator
Definition: tree_policy.hpp:79
Node_Itr node_iterator
Definition: tree_policy.hpp:78
base_type::const_pointer const_pointer
Const pointer to the container's value-type.
Definition: tree_policy.hpp:109
allocator_type::size_type size_type
Definition: tree_policy.hpp:72
virtual node_const_iterator node_begin() const =0
Returns the node_const_iterator associated with the tree's root node.
base_type::const_reference const_reference
Const reference to the container's value-type.
Definition: tree_policy.hpp:106
virtual node_const_iterator node_end() const =0
Returns the node_const_iterator associated with a just-after leaf node.
const_iterator find_by_order(size_type) const
Functor updating ranks of entrees.
Definition: tree_policy.hpp:64
Cmp_Fn cmp_fn
Definition: tree_policy.hpp:70
#define PB_DS_BRANCH_POLICY_BASE
Definition: tree_policy.hpp:58
PB_DS_BRANCH_POLICY_BASE base_type
Definition: tree_policy.hpp:67
size_type order_of_key(key_const_reference) const
virtual cmp_fn & get_cmp_fn()=0
Access to the cmp_fn object.
__rebind_m::const_reference metadata_const_reference
Const metadata reference.
Definition: tree_policy.hpp:114
virtual ~tree_order_statistics_node_update()
void operator()(node_iterator, node_const_iterator) const
base_type::key_const_reference key_const_reference
Definition: tree_policy.hpp:74
_Alloc::template rebind< metadata_type >::other __rebind_m
Definition: tree_policy.hpp:111
base_type::key_type key_type
Definition: tree_policy.hpp:73
__rebind_m::reference metadata_reference
Metadata reference.
Definition: tree_policy.hpp:117
Node_CItr node_const_iterator
Definition: tree_policy.hpp:77