44 typename PB_DS_CLASS_C_DEC::size_type
46 assert_node_consistent(
const node_pointer p_nd,
const char* __file,
52 const size_type l_height =
53 assert_node_consistent(p_nd->m_p_left, __file, __line);
54 const size_type r_height =
55 assert_node_consistent(p_nd->m_p_right, __file, __line);
58 PB_DS_DEBUG_VERIFY(is_effectively_black(p_nd->m_p_left));
59 PB_DS_DEBUG_VERIFY(is_effectively_black(p_nd->m_p_right));
61 PB_DS_DEBUG_VERIFY(l_height == r_height);
62 return (p_nd->m_red ? 0 : 1) + l_height;
68 assert_valid(
const char* __file,
int __line)
const
70 base_type::assert_valid(__file, __line);
71 const node_pointer p_head = base_type::m_p_head;
72 PB_DS_DEBUG_VERIFY(p_head->m_red);
73 if (p_head->m_p_parent != 0)
75 PB_DS_DEBUG_VERIFY(!p_head->m_p_parent->m_red);
76 assert_node_consistent(p_head->m_p_parent, __file, __line);