41 #ifdef PB_DS_CLASS_C_DEC
44 inline typename PB_DS_CLASS_C_DEC::point_iterator
46 push(const_reference r_val)
48 PB_DS_ASSERT_VALID((*
this))
49 node_pointer p_new_nd = base_type::get_new_node_for_insert(r_val);
51 PB_DS_ASSERT_VALID((*this))
52 return point_iterator(p_new_nd);
58 push_imp(node_pointer p_nd)
60 p_nd->m_p_l_child = 0;
61 if (base_type::m_p_root == 0)
63 p_nd->m_p_next_sibling = p_nd->m_p_prev_or_parent = 0;
64 base_type::m_p_root = p_nd;
66 else if (Cmp_Fn::operator()(base_type::m_p_root->m_value, p_nd->m_value))
68 p_nd->m_p_next_sibling = p_nd->m_p_prev_or_parent = 0;
69 base_type::make_child_of(base_type::m_p_root, p_nd);
70 PB_DS_ASSERT_NODE_CONSISTENT(p_nd,
false)
71 base_type::m_p_root = p_nd;
75 base_type::make_child_of(p_nd, base_type::m_p_root);
76 PB_DS_ASSERT_NODE_CONSISTENT(base_type::m_p_root,
false)
83 modify(point_iterator it, const_reference r_new_val)
85 PB_DS_ASSERT_VALID((*
this))
86 remove_node(it.m_p_nd);
87 it.m_p_nd->m_value = r_new_val;
89 PB_DS_ASSERT_VALID((*this))