41#ifdef PB_DS_CLASS_C_DEC
46typename PB_DS_CLASS_C_DEC::size_type
48assert_node_consistent(
const node_pointer p_nd,
const char* __file,
54 const size_type l_height =
55 assert_node_consistent(p_nd->m_p_left, __file, __line);
56 const size_type r_height =
57 assert_node_consistent(p_nd->m_p_right, __file, __line);
60 PB_DS_DEBUG_VERIFY(is_effectively_black(p_nd->m_p_left));
61 PB_DS_DEBUG_VERIFY(is_effectively_black(p_nd->m_p_right));
63 PB_DS_DEBUG_VERIFY(l_height == r_height);
64 return (p_nd->m_red ? 0 : 1) + l_height;
70assert_valid(
const char* __file,
int __line)
const
72 base_type::assert_valid(__file, __line);
73 const node_pointer p_head = base_type::m_p_head;
74 PB_DS_DEBUG_VERIFY(p_head->m_red);
75 if (p_head->m_p_parent != 0)
77 PB_DS_DEBUG_VERIFY(!p_head->m_p_parent->m_red);
78 assert_node_consistent(p_head->m_p_parent, __file, __line);