__gnu_pbds::tree_order_statistics_node_update.3cxx
Contents
Detailed Description
template<typenameNode_CItr,typenameNode_Itr,typenameCmp_Fn,typename_Alloc>
class __gnu_pbds::tree_order_statistics_node_update< Node_CItr, Node_Itr, Cmp_Fn, _Alloc >"Functor
updating ranks of entrees.
Member Function Documentation
template<typenameNode_CItr,typenameNode_Itr,typenameCmp_Fn,typename_Alloc>iterator__gnu_pbds::tree_order_statistics_node_update<Node_CItr,Node_Itr,Cmp_Fn,_Alloc>::find_by_order(size_type)[inline]
Finds an entry by __order. Returns an iterator to the entry with the __order order, or an iterator to the
container object's end if order is at least the size of the container object.
template<typenameNode_CItr,typenameNode_Itr,typenameCmp_Fn,typename_Alloc>const_iterator__gnu_pbds::tree_order_statistics_node_update<Node_CItr,Node_Itr,Cmp_Fn,_Alloc>::find_by_order(size_type)const[inline]
Finds an entry by __order. Returns a const_iterator to the entry with the __order order, or a
const_iterator to the container object's end if order is at least the size of the container object.
template<typenameNode_CItr,typenameNode_Itr,typenameCmp_Fn,typename_Alloc>void__gnu_pbds::tree_order_statistics_node_update<Node_CItr,Node_Itr,Cmp_Fn,_Alloc>::operator()(node_iterator,node_const_iterator)const[inline],[protected]
Updates the rank of a node through a node_iterator node_it; end_nd_it is the end node iterator.
template<typenameNode_CItr,typenameNode_Itr,typenameCmp_Fn,typename_Alloc>size_type__gnu_pbds::tree_order_statistics_node_update<Node_CItr,Node_Itr,Cmp_Fn,_Alloc>::order_of_key(key_const_reference)const[inline]
Returns the order of a key within a sequence. For exapmle, if r_key is the smallest key, this method will
return 0; if r_key is a key between the smallest and next key, this method will return 1; if r_key is a
key larger than the largest key, this method will return the size of r_c.
Name
__gnu_pbds::tree_order_statistics_node_update< Node_CItr, Node_Itr, Cmp_Fn, _Alloc > - Functor updating
ranks of entrees.
Synopsis
#include <tree_policy.hpp>
Inherits __gnu_pbds::detail::branch_policy<Node_CItr,Node_Itr,_Alloc>.
PublicTypes
typedef _Alloc allocator_type
typedef Cmp_Fn cmp_fn
typedef node_const_iterator::value_type const_iterator
typedef node_iterator::value_type iterator
typedef base_type::key_const_reference key_const_reference
typedef base_type::key_type key_type
typedef size_type metadata_type
typedef Node_CItr node_const_iterator
typedef Node_Itr node_iterator
typedef allocator_type::size_type size_typePublicMemberFunctions
iterator find_by_order (size_type)
Finds an entry by __order. Returns an iterator to the entry with the __order order, or an iterator to
the container object's end if order is at least the size of the container object.
const_iterator find_by_order (size_type) const
Finds an entry by __order. Returns a const_iterator to the entry with the __order order, or a
const_iterator to the container object's end if order is at least the size of the container object.
size_type order_of_key (key_const_reference) const
Returns the order of a key within a sequence. For exapmle, if r_key is the smallest key, this method
will return 0; if r_key is a key between the smallest and next key, this method will return 1; if
r_key is a key larger than the largest key, this method will return the size of r_c.
ProtectedMemberFunctions
void operator() (node_iterator, node_const_iterator) const
Updates the rank of a node through a node_iterator node_it; end_nd_it is the end node iterator.
