logo
Free, unlimited AI code reviews that run on commit
git-lrc git-lrc GitHub Install Now We'd appreciate a star git-lrc - Free, unlimited AI code reviews that run on commit | Product Hunt git-lrc - Free, unlimited AI code reviews that run on commit | Product Hunt

__gnu_pbds::detail::binomial_heap_base.3cxx

Author

       Generated automatically by Doxygen for libstdc++ from the source code.

                                                    libst__gnu_pbds::detail::bin..._Type,Cmp_Fn,_Alloc>(3cxx)

Detailed Description

template<typenameValue_Type,typenameCmp_Fn,typename_Alloc>
       class __gnu_pbds::detail::binomial_heap_base< Value_Type, Cmp_Fn, _Alloc >"Base class for binomial heap.

Name

       __gnu_pbds::detail::binomial_heap_base< Value_Type, Cmp_Fn, _Alloc > - Base class for binomial heap.

Synopsis

       #include <binomial_heap_base_.hpp>

       Inherits __gnu_pbds::detail::left_child_next_sibling_heap<Value_Type,Cmp_Fn,_Alloc::size_type,_Alloc>.

       Inherited by __gnu_pbds::detail::binomial_heap<Value_Type,Cmp_Fn,_Alloc>, and
       __gnu_pbds::detail::rc_binomial_heap<Value_Type,Cmp_Fn,_Alloc>.

   PublicTypes
       typedef _Alloc allocator_type
       typedef Cmp_Fn cmp_fn
       typedef base_type::const_iteratorconst_iterator
       typedef __rebind_v::const_pointer const_pointer
       typedef __rebind_v::const_reference const_reference
       typedef _Alloc::difference_type difference_type
       typedef base_type::iteratoriterator
       typedef base_type::point_const_iteratorpoint_const_iterator
       typedef base_type::point_iteratorpoint_iterator
       typedef __rebind_v::pointer pointer
       typedef __rebind_v::reference reference
       typedef _Alloc::size_type size_type
       typedef Value_Type value_typePublicMemberFunctionsiteratorbegin ()
       const_iteratorbegin () const
       void clear ()
       bool empty () const
       iteratorend ()
       const_iteratorend () const
       void erase (point_iterator)
       template<typename Pred > size_type erase_if (Pred)
       Cmp_Fn & get_cmp_fn ()
       const Cmp_Fn & get_cmp_fn () const
       void join (binomial_heap_base< Value_Type, Cmp_Fn, _Alloc > &)
       size_type max_size () const
       void modify (point_iterator, const_reference)
       void pop ()
       point_iteratorpush (const_reference)
       size_type size () const
       template<typename Pred > void split (Pred, binomial_heap_base< Value_Type, Cmp_Fn, _Alloc > &)
       void swap (left_child_next_sibling_heap< Value_Type, Cmp_Fn, _Alloc::size_type, _Alloc > &)
       const_reference top () const

   ProtectedTypes
       typedef base_type::nodenode
       typedef alloc_traits::allocator_type node_allocator
       typedef base_type::node_const_pointer node_const_pointer
       typedef _Alloc::size_type node_metadata
       typedef base_type::node_pointer node_pointer
       typedef std::pair< node_pointer, node_pointer > node_pointer_pairProtectedMemberFunctionsbinomial_heap_base (const binomial_heap_base< Value_Type, Cmp_Fn, _Alloc > &)
       binomial_heap_base (const Cmp_Fn &)
       void actual_erase_node (node_pointer)
       void bubble_to_top (node_pointer)
       void clear_imp (node_pointer)
       template<typename It > void copy_from_range (It, It)
       void find_max ()
       node_pointer get_new_node_for_insert (const_reference)
       node_pointer prune (Pred)
       void swap (binomial_heap_base< Value_Type, Cmp_Fn, _Alloc > &)
       void swap_with_parent (node_pointer, node_pointer)
       void to_linked_list ()
       void value_swap (left_child_next_sibling_heap &)

   StaticProtectedMemberFunctions
       static void make_child_of (node_pointer, node_pointer)
       static node_pointer parent (node_pointer)

   ProtectedAttributes
       node_pointer m_p_max
       node_pointer m_p_root
       size_type m_size

See Also