GNU g++  v5.2.1
GNU Standard C++
__gnu_pbds::detail::PB_DS_BIN_TREE_NAME< Key, Mapped, Cmp_Fn, Node_And_It_Traits, _Alloc > Class Template Reference

#include <bin_search_tree_.hpp>

Inheritance diagram for __gnu_pbds::detail::PB_DS_BIN_TREE_NAME< Key, Mapped, Cmp_Fn, Node_And_It_Traits, _Alloc >:
Collaboration diagram for __gnu_pbds::detail::PB_DS_BIN_TREE_NAME< Key, Mapped, Cmp_Fn, Node_And_It_Traits, _Alloc >:

Public Types

typedef _Alloc allocator_type
 
typedef Cmp_Fn cmp_fn
 
typedef std::pair< size_type, size_typecomp_hash
 
typedef point_const_iterator const_iterator
 
typedef traits_base::const_pointer const_pointer
 
typedef traits_base::const_reference const_reference
 
typedef traits_type::const_reverse_iterator const_reverse_iterator
 
typedef _Alloc::difference_type difference_type
 
typedef point_iterator iterator
 
typedef traits_base::key_const_pointer key_const_pointer
 
typedef traits_base::key_const_reference key_const_reference
 
typedef traits_base::key_pointer key_pointer
 
typedef traits_base::key_reference key_reference
 
typedef traits_base::key_type key_type
 
typedef __nothrowcopy::indicator no_throw_indicator
 
typedef traits_type::node_const_iterator node_const_iterator
 
typedef traits_type::node_iterator node_iterator
 
typedef traits_type::node_update node_update
 
typedef traits_type::point_const_iterator point_const_iterator
 
typedef traits_type::point_iterator point_iterator
 
typedef traits_base::pointer pointer
 
typedef traits_base::reference reference
 
typedef traits_type::reverse_iterator reverse_iterator
 
typedef _Alloc::size_type size_type
 
typedef integral_constant< int, Store_Hash > store_extra
 
typedef traits_base::value_type value_type
 

Public Member Functions

 PB_DS_BIN_TREE_NAME ()
 
 PB_DS_BIN_TREE_NAME (const Cmp_Fn &)
 
 PB_DS_BIN_TREE_NAME (const Cmp_Fn &, const node_update &)
 
 PB_DS_BIN_TREE_NAME (const PB_DS_BIN_TREE_NAME< Key, Mapped, Cmp_Fn, Node_And_It_Traits, _Alloc > &)
 
 ~PB_DS_BIN_TREE_NAME ()
 
iterator begin ()
 
const_iterator begin () const
 
void clear ()
 
bool empty () const
 
iterator end ()
 
const_iterator end () const
 
point_iterator find (key_const_reference)
 
point_const_iterator find (key_const_reference) const
 
Cmp_Fn & get_cmp_fn ()
 
const Cmp_Fn & get_cmp_fn () const
 
point_iterator lower_bound (key_const_reference)
 
point_const_iterator lower_bound (key_const_reference) const
 
size_type max_size () const
 
node_const_iterator node_begin () const
 Returns a const node_iterator corresponding to the node at the root of the tree. More...
 
node_iterator node_begin ()
 Returns a node_iterator corresponding to the node at the root of the tree. More...
 
node_const_iterator node_end () const
 Returns a const node_iterator corresponding to a node just after a leaf of the tree. More...
 
node_iterator node_end ()
 Returns a node_iterator corresponding to a node just after a leaf of the tree. More...
 
reverse_iterator rbegin ()
 
const_reverse_iterator rbegin () const
 
reverse_iterator rend ()
 
const_reverse_iterator rend () const
 
size_type size () const
 
void swap (PB_DS_BIN_TREE_NAME< Key, Mapped, Cmp_Fn, Node_And_It_Traits, _Alloc > &)
 
point_iterator upper_bound (key_const_reference)
 
point_const_iterator upper_bound (key_const_reference) const
 

Public Attributes

no_throw_indicator m_no_throw_copies_indicator
 
store_extra m_store_extra_indicator
 

Protected Types

typedef node_allocator::value_type node
 
typedef _Alloc::template rebind< typename traits_type::node >::other node_allocator
 
typedef node_allocator::pointer node_pointer
 
typedef traits_type::null_node_update_pointer null_node_update_pointer
 
typedef types_traits< Key, Mapped, _Alloc, false > traits_base
 

Protected Member Functions

void actual_erase_node (node_pointer)
 
void apply_update (node_pointer, null_node_update_pointer)
 
template<typename Node_Update_ >
void apply_update (node_pointer, Node_Update_ *)
 
std::pair< node_pointer, bool > erase (node_pointer)
 
node_pointer get_new_node_for_leaf_insert (const_reference, false_type)
 
node_pointer get_new_node_for_leaf_insert (const_reference, true_type)
 
void initialize_min_max ()
 
iterator insert_imp_empty (const_reference)
 
std::pair< point_iterator, bool > insert_leaf (const_reference)
 
iterator insert_leaf_new (const_reference, node_pointer, bool)
 
void join_finish (PB_DS_BIN_TREE_NAME< Key, Mapped, Cmp_Fn, Node_And_It_Traits, _Alloc > &)
 
bool join_prep (PB_DS_BIN_TREE_NAME< Key, Mapped, Cmp_Fn, Node_And_It_Traits, _Alloc > &)
 
size_type recursive_count (node_pointer) const
 
void rotate_left (node_pointer)
 
void rotate_parent (node_pointer)
 
void rotate_right (node_pointer)
 
void split_finish (PB_DS_BIN_TREE_NAME< Key, Mapped, Cmp_Fn, Node_And_It_Traits, _Alloc > &)
 
bool split_prep (key_const_reference, PB_DS_BIN_TREE_NAME< Key, Mapped, Cmp_Fn, Node_And_It_Traits, _Alloc > &)
 
void update_min_max_for_erased_node (node_pointer)
 
void update_to_top (node_pointer, null_node_update_pointer)
 
template<typename Node_Update_ >
void update_to_top (node_pointer, Node_Update_ *)
 
void value_swap (PB_DS_BIN_TREE_NAME< Key, Mapped, Cmp_Fn, Node_And_It_Traits, _Alloc > &)
 

Static Protected Member Functions

static void clear_imp (node_pointer)
 

Protected Attributes

node_pointer m_p_head
 
size_type m_size
 

Static Protected Attributes

static node_allocator s_node_allocator
 

Private Types

typedef cond_dealtor< node, _Alloc > cond_dealtor_t
 
typedef Node_And_It_Traits traits_type
 

Private Member Functions

void initialize ()
 
node_pointer recursive_copy_node (const node_pointer)
 

Member Typedef Documentation

template<typename Key , typename Mapped , typename Cmp_Fn , typename Node_And_It_Traits , typename _Alloc >
typedef _Alloc __gnu_pbds::detail::PB_DS_BIN_TREE_NAME< Key, Mapped, Cmp_Fn, Node_And_It_Traits, _Alloc >::allocator_type
template<typename Key , typename Mapped , typename Cmp_Fn , typename Node_And_It_Traits , typename _Alloc >
typedef Cmp_Fn __gnu_pbds::detail::PB_DS_BIN_TREE_NAME< Key, Mapped, Cmp_Fn, Node_And_It_Traits, _Alloc >::cmp_fn
typedef std::pair<size_type, size_type> __gnu_pbds::detail::types_traits< Key, Mapped, _Alloc, Store_Hash >::comp_hash
inherited
template<typename Key , typename Mapped , typename Cmp_Fn , typename Node_And_It_Traits , typename _Alloc >
typedef cond_dealtor<node, _Alloc> __gnu_pbds::detail::PB_DS_BIN_TREE_NAME< Key, Mapped, Cmp_Fn, Node_And_It_Traits, _Alloc >::cond_dealtor_t
private
template<typename Key , typename Mapped , typename Cmp_Fn , typename Node_And_It_Traits , typename _Alloc >
typedef point_const_iterator __gnu_pbds::detail::PB_DS_BIN_TREE_NAME< Key, Mapped, Cmp_Fn, Node_And_It_Traits, _Alloc >::const_iterator
template<typename Key , typename Mapped , typename Cmp_Fn , typename Node_And_It_Traits , typename _Alloc >
typedef traits_base::const_pointer __gnu_pbds::detail::PB_DS_BIN_TREE_NAME< Key, Mapped, Cmp_Fn, Node_And_It_Traits, _Alloc >::const_pointer
template<typename Key , typename Mapped , typename Cmp_Fn , typename Node_And_It_Traits , typename _Alloc >
typedef traits_base::const_reference __gnu_pbds::detail::PB_DS_BIN_TREE_NAME< Key, Mapped, Cmp_Fn, Node_And_It_Traits, _Alloc >::const_reference
template<typename Key , typename Mapped , typename Cmp_Fn , typename Node_And_It_Traits , typename _Alloc >
typedef traits_type::const_reverse_iterator __gnu_pbds::detail::PB_DS_BIN_TREE_NAME< Key, Mapped, Cmp_Fn, Node_And_It_Traits, _Alloc >::const_reverse_iterator
template<typename Key , typename Mapped , typename Cmp_Fn , typename Node_And_It_Traits , typename _Alloc >
typedef _Alloc::difference_type __gnu_pbds::detail::PB_DS_BIN_TREE_NAME< Key, Mapped, Cmp_Fn, Node_And_It_Traits, _Alloc >::difference_type
template<typename Key , typename Mapped , typename Cmp_Fn , typename Node_And_It_Traits , typename _Alloc >
typedef point_iterator __gnu_pbds::detail::PB_DS_BIN_TREE_NAME< Key, Mapped, Cmp_Fn, Node_And_It_Traits, _Alloc >::iterator
template<typename Key , typename Mapped , typename Cmp_Fn , typename Node_And_It_Traits , typename _Alloc >
typedef traits_base::key_const_pointer __gnu_pbds::detail::PB_DS_BIN_TREE_NAME< Key, Mapped, Cmp_Fn, Node_And_It_Traits, _Alloc >::key_const_pointer
template<typename Key , typename Mapped , typename Cmp_Fn , typename Node_And_It_Traits , typename _Alloc >
typedef traits_base::key_const_reference __gnu_pbds::detail::PB_DS_BIN_TREE_NAME< Key, Mapped, Cmp_Fn, Node_And_It_Traits, _Alloc >::key_const_reference
template<typename Key , typename Mapped , typename Cmp_Fn , typename Node_And_It_Traits , typename _Alloc >
typedef traits_base::key_pointer __gnu_pbds::detail::PB_DS_BIN_TREE_NAME< Key, Mapped, Cmp_Fn, Node_And_It_Traits, _Alloc >::key_pointer
template<typename Key , typename Mapped , typename Cmp_Fn , typename Node_And_It_Traits , typename _Alloc >
typedef traits_base::key_reference __gnu_pbds::detail::PB_DS_BIN_TREE_NAME< Key, Mapped, Cmp_Fn, Node_And_It_Traits, _Alloc >::key_reference
template<typename Key , typename Mapped , typename Cmp_Fn , typename Node_And_It_Traits , typename _Alloc >
typedef traits_base::key_type __gnu_pbds::detail::PB_DS_BIN_TREE_NAME< Key, Mapped, Cmp_Fn, Node_And_It_Traits, _Alloc >::key_type
typedef __nothrowcopy::indicator __gnu_pbds::detail::types_traits< Key, Mapped, _Alloc, Store_Hash >::no_throw_indicator
inherited
template<typename Key , typename Mapped , typename Cmp_Fn , typename Node_And_It_Traits , typename _Alloc >
typedef node_allocator::value_type __gnu_pbds::detail::PB_DS_BIN_TREE_NAME< Key, Mapped, Cmp_Fn, Node_And_It_Traits, _Alloc >::node
protected
template<typename Key , typename Mapped , typename Cmp_Fn , typename Node_And_It_Traits , typename _Alloc >
typedef _Alloc::template rebind<typename traits_type::node>::other __gnu_pbds::detail::PB_DS_BIN_TREE_NAME< Key, Mapped, Cmp_Fn, Node_And_It_Traits, _Alloc >::node_allocator
protected
template<typename Key , typename Mapped , typename Cmp_Fn , typename Node_And_It_Traits , typename _Alloc >
typedef traits_type::node_const_iterator __gnu_pbds::detail::PB_DS_BIN_TREE_NAME< Key, Mapped, Cmp_Fn, Node_And_It_Traits, _Alloc >::node_const_iterator
template<typename Key , typename Mapped , typename Cmp_Fn , typename Node_And_It_Traits , typename _Alloc >
typedef traits_type::node_iterator __gnu_pbds::detail::PB_DS_BIN_TREE_NAME< Key, Mapped, Cmp_Fn, Node_And_It_Traits, _Alloc >::node_iterator
template<typename Key , typename Mapped , typename Cmp_Fn , typename Node_And_It_Traits , typename _Alloc >
typedef node_allocator::pointer __gnu_pbds::detail::PB_DS_BIN_TREE_NAME< Key, Mapped, Cmp_Fn, Node_And_It_Traits, _Alloc >::node_pointer
protected
template<typename Key , typename Mapped , typename Cmp_Fn , typename Node_And_It_Traits , typename _Alloc >
typedef traits_type::node_update __gnu_pbds::detail::PB_DS_BIN_TREE_NAME< Key, Mapped, Cmp_Fn, Node_And_It_Traits, _Alloc >::node_update
template<typename Key , typename Mapped , typename Cmp_Fn , typename Node_And_It_Traits , typename _Alloc >
typedef traits_type::null_node_update_pointer __gnu_pbds::detail::PB_DS_BIN_TREE_NAME< Key, Mapped, Cmp_Fn, Node_And_It_Traits, _Alloc >::null_node_update_pointer
protected
template<typename Key , typename Mapped , typename Cmp_Fn , typename Node_And_It_Traits , typename _Alloc >
typedef traits_type::point_const_iterator __gnu_pbds::detail::PB_DS_BIN_TREE_NAME< Key, Mapped, Cmp_Fn, Node_And_It_Traits, _Alloc >::point_const_iterator
template<typename Key , typename Mapped , typename Cmp_Fn , typename Node_And_It_Traits , typename _Alloc >
typedef traits_type::point_iterator __gnu_pbds::detail::PB_DS_BIN_TREE_NAME< Key, Mapped, Cmp_Fn, Node_And_It_Traits, _Alloc >::point_iterator
template<typename Key , typename Mapped , typename Cmp_Fn , typename Node_And_It_Traits , typename _Alloc >
typedef traits_base::pointer __gnu_pbds::detail::PB_DS_BIN_TREE_NAME< Key, Mapped, Cmp_Fn, Node_And_It_Traits, _Alloc >::pointer
template<typename Key , typename Mapped , typename Cmp_Fn , typename Node_And_It_Traits , typename _Alloc >
typedef traits_base::reference __gnu_pbds::detail::PB_DS_BIN_TREE_NAME< Key, Mapped, Cmp_Fn, Node_And_It_Traits, _Alloc >::reference
template<typename Key , typename Mapped , typename Cmp_Fn , typename Node_And_It_Traits , typename _Alloc >
typedef traits_type::reverse_iterator __gnu_pbds::detail::PB_DS_BIN_TREE_NAME< Key, Mapped, Cmp_Fn, Node_And_It_Traits, _Alloc >::reverse_iterator
template<typename Key , typename Mapped , typename Cmp_Fn , typename Node_And_It_Traits , typename _Alloc >
typedef _Alloc::size_type __gnu_pbds::detail::PB_DS_BIN_TREE_NAME< Key, Mapped, Cmp_Fn, Node_And_It_Traits, _Alloc >::size_type
typedef integral_constant<int, Store_Hash> __gnu_pbds::detail::types_traits< Key, Mapped, _Alloc, Store_Hash >::store_extra
inherited
template<typename Key , typename Mapped , typename Cmp_Fn , typename Node_And_It_Traits , typename _Alloc >
typedef types_traits<Key, Mapped, _Alloc, false> __gnu_pbds::detail::PB_DS_BIN_TREE_NAME< Key, Mapped, Cmp_Fn, Node_And_It_Traits, _Alloc >::traits_base
protected
template<typename Key , typename Mapped , typename Cmp_Fn , typename Node_And_It_Traits , typename _Alloc >
typedef Node_And_It_Traits __gnu_pbds::detail::PB_DS_BIN_TREE_NAME< Key, Mapped, Cmp_Fn, Node_And_It_Traits, _Alloc >::traits_type
private
template<typename Key , typename Mapped , typename Cmp_Fn , typename Node_And_It_Traits , typename _Alloc >
typedef traits_base::value_type __gnu_pbds::detail::PB_DS_BIN_TREE_NAME< Key, Mapped, Cmp_Fn, Node_And_It_Traits, _Alloc >::value_type

Constructor & Destructor Documentation

template<typename Key , typename Mapped , typename Cmp_Fn , typename Node_And_It_Traits , typename _Alloc >
__gnu_pbds::detail::PB_DS_BIN_TREE_NAME< Key, Mapped, Cmp_Fn, Node_And_It_Traits, _Alloc >::PB_DS_BIN_TREE_NAME ( )
template<typename Key , typename Mapped , typename Cmp_Fn , typename Node_And_It_Traits , typename _Alloc >
__gnu_pbds::detail::PB_DS_BIN_TREE_NAME< Key, Mapped, Cmp_Fn, Node_And_It_Traits, _Alloc >::PB_DS_BIN_TREE_NAME ( const Cmp_Fn &  )
template<typename Key , typename Mapped , typename Cmp_Fn , typename Node_And_It_Traits , typename _Alloc >
__gnu_pbds::detail::PB_DS_BIN_TREE_NAME< Key, Mapped, Cmp_Fn, Node_And_It_Traits, _Alloc >::PB_DS_BIN_TREE_NAME ( const Cmp_Fn &  ,
const node_update  
)
template<typename Key , typename Mapped , typename Cmp_Fn , typename Node_And_It_Traits , typename _Alloc >
__gnu_pbds::detail::PB_DS_BIN_TREE_NAME< Key, Mapped, Cmp_Fn, Node_And_It_Traits, _Alloc >::PB_DS_BIN_TREE_NAME ( const PB_DS_BIN_TREE_NAME< Key, Mapped, Cmp_Fn, Node_And_It_Traits, _Alloc > &  )
template<typename Key , typename Mapped , typename Cmp_Fn , typename Node_And_It_Traits , typename _Alloc >
__gnu_pbds::detail::PB_DS_BIN_TREE_NAME< Key, Mapped, Cmp_Fn, Node_And_It_Traits, _Alloc >::~PB_DS_BIN_TREE_NAME ( )

Member Function Documentation

template<typename Key , typename Mapped , typename Cmp_Fn , typename Node_And_It_Traits , typename _Alloc >
void __gnu_pbds::detail::PB_DS_BIN_TREE_NAME< Key, Mapped, Cmp_Fn, Node_And_It_Traits, _Alloc >::actual_erase_node ( node_pointer  )
inlineprotected
template<typename Key , typename Mapped , typename Cmp_Fn , typename Node_And_It_Traits , typename _Alloc >
void __gnu_pbds::detail::PB_DS_BIN_TREE_NAME< Key, Mapped, Cmp_Fn, Node_And_It_Traits, _Alloc >::apply_update ( node_pointer  ,
null_node_update_pointer   
)
inlineprotected
template<typename Key , typename Mapped , typename Cmp_Fn , typename Node_And_It_Traits , typename _Alloc >
template<typename Node_Update_ >
void __gnu_pbds::detail::PB_DS_BIN_TREE_NAME< Key, Mapped, Cmp_Fn, Node_And_It_Traits, _Alloc >::apply_update ( node_pointer  ,
Node_Update_ *   
)
inlineprotected
template<typename Key , typename Mapped , typename Cmp_Fn , typename Node_And_It_Traits , typename _Alloc >
iterator __gnu_pbds::detail::PB_DS_BIN_TREE_NAME< Key, Mapped, Cmp_Fn, Node_And_It_Traits, _Alloc >::begin ( )
inline
template<typename Key , typename Mapped , typename Cmp_Fn , typename Node_And_It_Traits , typename _Alloc >
const_iterator __gnu_pbds::detail::PB_DS_BIN_TREE_NAME< Key, Mapped, Cmp_Fn, Node_And_It_Traits, _Alloc >::begin ( ) const
inline
template<typename Key , typename Mapped , typename Cmp_Fn , typename Node_And_It_Traits , typename _Alloc >
void __gnu_pbds::detail::PB_DS_BIN_TREE_NAME< Key, Mapped, Cmp_Fn, Node_And_It_Traits, _Alloc >::clear ( )
template<typename Key , typename Mapped , typename Cmp_Fn , typename Node_And_It_Traits , typename _Alloc >
static void __gnu_pbds::detail::PB_DS_BIN_TREE_NAME< Key, Mapped, Cmp_Fn, Node_And_It_Traits, _Alloc >::clear_imp ( node_pointer  )
staticprotected
template<typename Key , typename Mapped , typename Cmp_Fn , typename Node_And_It_Traits , typename _Alloc >
bool __gnu_pbds::detail::PB_DS_BIN_TREE_NAME< Key, Mapped, Cmp_Fn, Node_And_It_Traits, _Alloc >::empty ( ) const
inline
template<typename Key , typename Mapped , typename Cmp_Fn , typename Node_And_It_Traits , typename _Alloc >
iterator __gnu_pbds::detail::PB_DS_BIN_TREE_NAME< Key, Mapped, Cmp_Fn, Node_And_It_Traits, _Alloc >::end ( )
inline
template<typename Key , typename Mapped , typename Cmp_Fn , typename Node_And_It_Traits , typename _Alloc >
const_iterator __gnu_pbds::detail::PB_DS_BIN_TREE_NAME< Key, Mapped, Cmp_Fn, Node_And_It_Traits, _Alloc >::end ( ) const
inline
template<typename Key , typename Mapped , typename Cmp_Fn , typename Node_And_It_Traits , typename _Alloc >
std::pair<node_pointer, bool> __gnu_pbds::detail::PB_DS_BIN_TREE_NAME< Key, Mapped, Cmp_Fn, Node_And_It_Traits, _Alloc >::erase ( node_pointer  )
inlineprotected
template<typename Key , typename Mapped , typename Cmp_Fn , typename Node_And_It_Traits , typename _Alloc >
point_iterator __gnu_pbds::detail::PB_DS_BIN_TREE_NAME< Key, Mapped, Cmp_Fn, Node_And_It_Traits, _Alloc >::find ( key_const_reference  )
inline
template<typename Key , typename Mapped , typename Cmp_Fn , typename Node_And_It_Traits , typename _Alloc >
point_const_iterator __gnu_pbds::detail::PB_DS_BIN_TREE_NAME< Key, Mapped, Cmp_Fn, Node_And_It_Traits, _Alloc >::find ( key_const_reference  ) const
inline
template<typename Key , typename Mapped , typename Cmp_Fn , typename Node_And_It_Traits , typename _Alloc >
Cmp_Fn& __gnu_pbds::detail::PB_DS_BIN_TREE_NAME< Key, Mapped, Cmp_Fn, Node_And_It_Traits, _Alloc >::get_cmp_fn ( )
template<typename Key , typename Mapped , typename Cmp_Fn , typename Node_And_It_Traits , typename _Alloc >
const Cmp_Fn& __gnu_pbds::detail::PB_DS_BIN_TREE_NAME< Key, Mapped, Cmp_Fn, Node_And_It_Traits, _Alloc >::get_cmp_fn ( ) const
template<typename Key , typename Mapped , typename Cmp_Fn , typename Node_And_It_Traits , typename _Alloc >
node_pointer __gnu_pbds::detail::PB_DS_BIN_TREE_NAME< Key, Mapped, Cmp_Fn, Node_And_It_Traits, _Alloc >::get_new_node_for_leaf_insert ( const_reference  ,
false_type   
)
inlineprotected
template<typename Key , typename Mapped , typename Cmp_Fn , typename Node_And_It_Traits , typename _Alloc >
node_pointer __gnu_pbds::detail::PB_DS_BIN_TREE_NAME< Key, Mapped, Cmp_Fn, Node_And_It_Traits, _Alloc >::get_new_node_for_leaf_insert ( const_reference  ,
true_type   
)
inlineprotected
template<typename Key , typename Mapped , typename Cmp_Fn , typename Node_And_It_Traits , typename _Alloc >
void __gnu_pbds::detail::PB_DS_BIN_TREE_NAME< Key, Mapped, Cmp_Fn, Node_And_It_Traits, _Alloc >::initialize ( )
private
template<typename Key , typename Mapped , typename Cmp_Fn , typename Node_And_It_Traits , typename _Alloc >
void __gnu_pbds::detail::PB_DS_BIN_TREE_NAME< Key, Mapped, Cmp_Fn, Node_And_It_Traits, _Alloc >::initialize_min_max ( )
protected
template<typename Key , typename Mapped , typename Cmp_Fn , typename Node_And_It_Traits , typename _Alloc >
iterator __gnu_pbds::detail::PB_DS_BIN_TREE_NAME< Key, Mapped, Cmp_Fn, Node_And_It_Traits, _Alloc >::insert_imp_empty ( const_reference  )
inlineprotected
template<typename Key , typename Mapped , typename Cmp_Fn , typename Node_And_It_Traits , typename _Alloc >
std::pair<point_iterator, bool> __gnu_pbds::detail::PB_DS_BIN_TREE_NAME< Key, Mapped, Cmp_Fn, Node_And_It_Traits, _Alloc >::insert_leaf ( const_reference  )
inlineprotected
template<typename Key , typename Mapped , typename Cmp_Fn , typename Node_And_It_Traits , typename _Alloc >
iterator __gnu_pbds::detail::PB_DS_BIN_TREE_NAME< Key, Mapped, Cmp_Fn, Node_And_It_Traits, _Alloc >::insert_leaf_new ( const_reference  ,
node_pointer  ,
bool   
)
inlineprotected
template<typename Key , typename Mapped , typename Cmp_Fn , typename Node_And_It_Traits , typename _Alloc >
void __gnu_pbds::detail::PB_DS_BIN_TREE_NAME< Key, Mapped, Cmp_Fn, Node_And_It_Traits, _Alloc >::join_finish ( PB_DS_BIN_TREE_NAME< Key, Mapped, Cmp_Fn, Node_And_It_Traits, _Alloc > &  )
protected
template<typename Key , typename Mapped , typename Cmp_Fn , typename Node_And_It_Traits , typename _Alloc >
bool __gnu_pbds::detail::PB_DS_BIN_TREE_NAME< Key, Mapped, Cmp_Fn, Node_And_It_Traits, _Alloc >::join_prep ( PB_DS_BIN_TREE_NAME< Key, Mapped, Cmp_Fn, Node_And_It_Traits, _Alloc > &  )
protected
template<typename Key , typename Mapped , typename Cmp_Fn , typename Node_And_It_Traits , typename _Alloc >
point_iterator __gnu_pbds::detail::PB_DS_BIN_TREE_NAME< Key, Mapped, Cmp_Fn, Node_And_It_Traits, _Alloc >::lower_bound ( key_const_reference  )
inline
template<typename Key , typename Mapped , typename Cmp_Fn , typename Node_And_It_Traits , typename _Alloc >
point_const_iterator __gnu_pbds::detail::PB_DS_BIN_TREE_NAME< Key, Mapped, Cmp_Fn, Node_And_It_Traits, _Alloc >::lower_bound ( key_const_reference  ) const
inline
template<typename Key , typename Mapped , typename Cmp_Fn , typename Node_And_It_Traits , typename _Alloc >
size_type __gnu_pbds::detail::PB_DS_BIN_TREE_NAME< Key, Mapped, Cmp_Fn, Node_And_It_Traits, _Alloc >::max_size ( ) const
inline
template<typename Key , typename Mapped , typename Cmp_Fn , typename Node_And_It_Traits , typename _Alloc >
node_const_iterator __gnu_pbds::detail::PB_DS_BIN_TREE_NAME< Key, Mapped, Cmp_Fn, Node_And_It_Traits, _Alloc >::node_begin ( ) const
inline

Returns a const node_iterator corresponding to the node at the root of the tree.

template<typename Key , typename Mapped , typename Cmp_Fn , typename Node_And_It_Traits , typename _Alloc >
node_iterator __gnu_pbds::detail::PB_DS_BIN_TREE_NAME< Key, Mapped, Cmp_Fn, Node_And_It_Traits, _Alloc >::node_begin ( )
inline

Returns a node_iterator corresponding to the node at the root of the tree.

template<typename Key , typename Mapped , typename Cmp_Fn , typename Node_And_It_Traits , typename _Alloc >
node_const_iterator __gnu_pbds::detail::PB_DS_BIN_TREE_NAME< Key, Mapped, Cmp_Fn, Node_And_It_Traits, _Alloc >::node_end ( ) const
inline

Returns a const node_iterator corresponding to a node just after a leaf of the tree.

template<typename Key , typename Mapped , typename Cmp_Fn , typename Node_And_It_Traits , typename _Alloc >
node_iterator __gnu_pbds::detail::PB_DS_BIN_TREE_NAME< Key, Mapped, Cmp_Fn, Node_And_It_Traits, _Alloc >::node_end ( )
inline

Returns a node_iterator corresponding to a node just after a leaf of the tree.

template<typename Key , typename Mapped , typename Cmp_Fn , typename Node_And_It_Traits , typename _Alloc >
reverse_iterator __gnu_pbds::detail::PB_DS_BIN_TREE_NAME< Key, Mapped, Cmp_Fn, Node_And_It_Traits, _Alloc >::rbegin ( )
inline
template<typename Key , typename Mapped , typename Cmp_Fn , typename Node_And_It_Traits , typename _Alloc >
const_reverse_iterator __gnu_pbds::detail::PB_DS_BIN_TREE_NAME< Key, Mapped, Cmp_Fn, Node_And_It_Traits, _Alloc >::rbegin ( ) const
inline
template<typename Key , typename Mapped , typename Cmp_Fn , typename Node_And_It_Traits , typename _Alloc >
node_pointer __gnu_pbds::detail::PB_DS_BIN_TREE_NAME< Key, Mapped, Cmp_Fn, Node_And_It_Traits, _Alloc >::recursive_copy_node ( const node_pointer  )
private
template<typename Key , typename Mapped , typename Cmp_Fn , typename Node_And_It_Traits , typename _Alloc >
size_type __gnu_pbds::detail::PB_DS_BIN_TREE_NAME< Key, Mapped, Cmp_Fn, Node_And_It_Traits, _Alloc >::recursive_count ( node_pointer  ) const
protected
template<typename Key , typename Mapped , typename Cmp_Fn , typename Node_And_It_Traits , typename _Alloc >
reverse_iterator __gnu_pbds::detail::PB_DS_BIN_TREE_NAME< Key, Mapped, Cmp_Fn, Node_And_It_Traits, _Alloc >::rend ( )
inline
template<typename Key , typename Mapped , typename Cmp_Fn , typename Node_And_It_Traits , typename _Alloc >
const_reverse_iterator __gnu_pbds::detail::PB_DS_BIN_TREE_NAME< Key, Mapped, Cmp_Fn, Node_And_It_Traits, _Alloc >::rend ( ) const
inline
template<typename Key , typename Mapped , typename Cmp_Fn , typename Node_And_It_Traits , typename _Alloc >
void __gnu_pbds::detail::PB_DS_BIN_TREE_NAME< Key, Mapped, Cmp_Fn, Node_And_It_Traits, _Alloc >::rotate_left ( node_pointer  )
inlineprotected
template<typename Key , typename Mapped , typename Cmp_Fn , typename Node_And_It_Traits , typename _Alloc >
void __gnu_pbds::detail::PB_DS_BIN_TREE_NAME< Key, Mapped, Cmp_Fn, Node_And_It_Traits, _Alloc >::rotate_parent ( node_pointer  )
inlineprotected
template<typename Key , typename Mapped , typename Cmp_Fn , typename Node_And_It_Traits , typename _Alloc >
void __gnu_pbds::detail::PB_DS_BIN_TREE_NAME< Key, Mapped, Cmp_Fn, Node_And_It_Traits, _Alloc >::rotate_right ( node_pointer  )
inlineprotected
template<typename Key , typename Mapped , typename Cmp_Fn , typename Node_And_It_Traits , typename _Alloc >
size_type __gnu_pbds::detail::PB_DS_BIN_TREE_NAME< Key, Mapped, Cmp_Fn, Node_And_It_Traits, _Alloc >::size ( ) const
inline
template<typename Key , typename Mapped , typename Cmp_Fn , typename Node_And_It_Traits , typename _Alloc >
void __gnu_pbds::detail::PB_DS_BIN_TREE_NAME< Key, Mapped, Cmp_Fn, Node_And_It_Traits, _Alloc >::split_finish ( PB_DS_BIN_TREE_NAME< Key, Mapped, Cmp_Fn, Node_And_It_Traits, _Alloc > &  )
protected
template<typename Key , typename Mapped , typename Cmp_Fn , typename Node_And_It_Traits , typename _Alloc >
bool __gnu_pbds::detail::PB_DS_BIN_TREE_NAME< Key, Mapped, Cmp_Fn, Node_And_It_Traits, _Alloc >::split_prep ( key_const_reference  ,
PB_DS_BIN_TREE_NAME< Key, Mapped, Cmp_Fn, Node_And_It_Traits, _Alloc > &   
)
protected
template<typename Key , typename Mapped , typename Cmp_Fn , typename Node_And_It_Traits , typename _Alloc >
void __gnu_pbds::detail::PB_DS_BIN_TREE_NAME< Key, Mapped, Cmp_Fn, Node_And_It_Traits, _Alloc >::swap ( PB_DS_BIN_TREE_NAME< Key, Mapped, Cmp_Fn, Node_And_It_Traits, _Alloc > &  )
template<typename Key , typename Mapped , typename Cmp_Fn , typename Node_And_It_Traits , typename _Alloc >
void __gnu_pbds::detail::PB_DS_BIN_TREE_NAME< Key, Mapped, Cmp_Fn, Node_And_It_Traits, _Alloc >::update_min_max_for_erased_node ( node_pointer  )
inlineprotected
template<typename Key , typename Mapped , typename Cmp_Fn , typename Node_And_It_Traits , typename _Alloc >
void __gnu_pbds::detail::PB_DS_BIN_TREE_NAME< Key, Mapped, Cmp_Fn, Node_And_It_Traits, _Alloc >::update_to_top ( node_pointer  ,
null_node_update_pointer   
)
inlineprotected
template<typename Key , typename Mapped , typename Cmp_Fn , typename Node_And_It_Traits , typename _Alloc >
template<typename Node_Update_ >
void __gnu_pbds::detail::PB_DS_BIN_TREE_NAME< Key, Mapped, Cmp_Fn, Node_And_It_Traits, _Alloc >::update_to_top ( node_pointer  ,
Node_Update_ *   
)
inlineprotected
template<typename Key , typename Mapped , typename Cmp_Fn , typename Node_And_It_Traits , typename _Alloc >
point_iterator __gnu_pbds::detail::PB_DS_BIN_TREE_NAME< Key, Mapped, Cmp_Fn, Node_And_It_Traits, _Alloc >::upper_bound ( key_const_reference  )
inline
template<typename Key , typename Mapped , typename Cmp_Fn , typename Node_And_It_Traits , typename _Alloc >
point_const_iterator __gnu_pbds::detail::PB_DS_BIN_TREE_NAME< Key, Mapped, Cmp_Fn, Node_And_It_Traits, _Alloc >::upper_bound ( key_const_reference  ) const
inline
template<typename Key , typename Mapped , typename Cmp_Fn , typename Node_And_It_Traits , typename _Alloc >
void __gnu_pbds::detail::PB_DS_BIN_TREE_NAME< Key, Mapped, Cmp_Fn, Node_And_It_Traits, _Alloc >::value_swap ( PB_DS_BIN_TREE_NAME< Key, Mapped, Cmp_Fn, Node_And_It_Traits, _Alloc > &  )
protected

Member Data Documentation

no_throw_indicator __gnu_pbds::detail::types_traits< Key, Mapped, _Alloc, Store_Hash >::m_no_throw_copies_indicator
inherited
template<typename Key , typename Mapped , typename Cmp_Fn , typename Node_And_It_Traits , typename _Alloc >
node_pointer __gnu_pbds::detail::PB_DS_BIN_TREE_NAME< Key, Mapped, Cmp_Fn, Node_And_It_Traits, _Alloc >::m_p_head
protected
template<typename Key , typename Mapped , typename Cmp_Fn , typename Node_And_It_Traits , typename _Alloc >
size_type __gnu_pbds::detail::PB_DS_BIN_TREE_NAME< Key, Mapped, Cmp_Fn, Node_And_It_Traits, _Alloc >::m_size
protected
store_extra __gnu_pbds::detail::types_traits< Key, Mapped, _Alloc, Store_Hash >::m_store_extra_indicator
inherited
template<typename Key , typename Mapped , typename Cmp_Fn , typename Node_And_It_Traits , typename _Alloc >
node_allocator __gnu_pbds::detail::PB_DS_BIN_TREE_NAME< Key, Mapped, Cmp_Fn, Node_And_It_Traits, _Alloc >::s_node_allocator
staticprotected

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