STLdoc
STLdocumentation
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
Public Types | Public Member Functions | Public Attributes | List of all members
__gnu_pbds::detail::rb_tree_node_< Value_Type, Metadata, _Alloc > Struct Template Reference

Node for Red-Black trees. More...

#include <ext/pb_ds/detail/rb_tree_map_/node.hpp>

Public Types

typedef Value_Type value_type
 
typedef Metadata metadata_type
 
typedef _Alloc::template
rebind< rb_tree_node_
< Value_Type, Metadata, _Alloc >
>::other::pointer 
node_pointer
 
typedef _Alloc::template
rebind< metadata_type >
::other::reference 
metadata_reference
 
typedef _Alloc::template
rebind< metadata_type >
::other::const_reference 
metadata_const_reference
 

Public Member Functions

bool special () const
 
metadata_const_reference get_metadata () const
 
metadata_reference get_metadata ()
 

Public Attributes

node_pointer m_p_left
 
node_pointer m_p_right
 
node_pointer m_p_parent
 
value_type m_value
 
bool m_red
 
metadata_type m_metadata
 

Detailed Description

template<typename Value_Type, class Metadata, typename _Alloc>
struct __gnu_pbds::detail::rb_tree_node_< Value_Type, Metadata, _Alloc >

Node for Red-Black trees.

Member Typedef Documentation

template<typename Value_Type , class Metadata , typename _Alloc >
typedef _Alloc::template rebind< metadata_type>::other::const_reference __gnu_pbds::detail::rb_tree_node_< Value_Type, Metadata, _Alloc >::metadata_const_reference
template<typename Value_Type , class Metadata , typename _Alloc >
typedef _Alloc::template rebind< metadata_type>::other::reference __gnu_pbds::detail::rb_tree_node_< Value_Type, Metadata, _Alloc >::metadata_reference
template<typename Value_Type , class Metadata , typename _Alloc >
typedef Metadata __gnu_pbds::detail::rb_tree_node_< Value_Type, Metadata, _Alloc >::metadata_type
template<typename Value_Type , class Metadata , typename _Alloc >
typedef _Alloc::template rebind< rb_tree_node_< Value_Type, Metadata, _Alloc> >::other::pointer __gnu_pbds::detail::rb_tree_node_< Value_Type, Metadata, _Alloc >::node_pointer
template<typename Value_Type , class Metadata , typename _Alloc >
typedef Value_Type __gnu_pbds::detail::rb_tree_node_< Value_Type, Metadata, _Alloc >::value_type

Member Function Documentation

template<typename Value_Type , class Metadata , typename _Alloc >
metadata_const_reference __gnu_pbds::detail::rb_tree_node_< Value_Type, Metadata, _Alloc >::get_metadata ( ) const
inline
82  { return m_metadata; }
metadata_type m_metadata
Definition: node.hpp:102
template<typename Value_Type , class Metadata , typename _Alloc >
metadata_reference __gnu_pbds::detail::rb_tree_node_< Value_Type, Metadata, _Alloc >::get_metadata ( )
inline
86  { return m_metadata; }
metadata_type m_metadata
Definition: node.hpp:102
template<typename Value_Type , class Metadata , typename _Alloc >
bool __gnu_pbds::detail::rb_tree_node_< Value_Type, Metadata, _Alloc >::special ( ) const
inline
78  { return m_red; }
bool m_red
Definition: node.hpp:101

Member Data Documentation

template<typename Value_Type , class Metadata , typename _Alloc >
metadata_type __gnu_pbds::detail::rb_tree_node_< Value_Type, Metadata, _Alloc >::m_metadata
template<typename Value_Type , class Metadata , typename _Alloc >
node_pointer __gnu_pbds::detail::rb_tree_node_< Value_Type, Metadata, _Alloc >::m_p_left
template<typename Value_Type , class Metadata , typename _Alloc >
node_pointer __gnu_pbds::detail::rb_tree_node_< Value_Type, Metadata, _Alloc >::m_p_parent
template<typename Value_Type , class Metadata , typename _Alloc >
node_pointer __gnu_pbds::detail::rb_tree_node_< Value_Type, Metadata, _Alloc >::m_p_right
template<typename Value_Type , class Metadata , typename _Alloc >
bool __gnu_pbds::detail::rb_tree_node_< Value_Type, Metadata, _Alloc >::m_red
template<typename Value_Type , class Metadata , typename _Alloc >
value_type __gnu_pbds::detail::rb_tree_node_< Value_Type, Metadata, _Alloc >::m_value

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