41 #ifdef PB_DS_LC_NS_HEAP_TRACE_
48 std::cerr << std::endl;
49 trace_node(m_p_root, 0);
50 std::cerr << std::endl;
56 trace_node(node_const_pointer p_nd, size_type level)
60 for (size_type i = 0; i < level; ++i)
64 " prev = " << p_nd->m_p_prev_or_parent <<
65 " next " << p_nd->m_p_next_sibling <<
66 " left = " << p_nd->m_p_l_child <<
" ";
68 trace_node_metadata(p_nd, type_to_type<node_metadata>());
69 std::cerr << p_nd->m_value << std::endl;
70 trace_node(p_nd->m_p_l_child, level + 1);
71 p_nd = p_nd->m_p_next_sibling;
76 template<
typename Metadata_>
79 trace_node_metadata(node_const_pointer p_nd, type_to_type<Metadata_>)
81 std::cerr <<
"(" << p_nd->m_metadata <<
") ";
87 trace_node_metadata(node_const_pointer, type_to_type<null_type>)
90 #endif // #ifdef PB_DS_LC_NS_HEAP_TRACE_