diff options
author | dhinton <dhinton@ae88bc3d-4319-0410-8dbf-d08b4c9d3795> | 2003-07-27 20:48:28 +0000 |
---|---|---|
committer | dhinton <dhinton@ae88bc3d-4319-0410-8dbf-d08b4c9d3795> | 2003-07-27 20:48:28 +0000 |
commit | 1f91ef90072d1703e75e519eb40678c55f71f2e4 (patch) | |
tree | 41ca1b5df67921f46f3cb4b73434c76c82006d06 /ace/RB_Tree.cpp | |
parent | 3a7046470e4995d08cff64176cb6b97adaf30155 (diff) | |
download | ATCD-1f91ef90072d1703e75e519eb40678c55f71f2e4.tar.gz |
ChangeLogTag:Sun Jul 27 20:19:48 UTC 2003 Don Hinton <dhinton@dresystems.com>
Diffstat (limited to 'ace/RB_Tree.cpp')
-rw-r--r-- | ace/RB_Tree.cpp | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/ace/RB_Tree.cpp b/ace/RB_Tree.cpp index 9d9bc2d9b94..4a83edfdb4e 100644 --- a/ace/RB_Tree.cpp +++ b/ace/RB_Tree.cpp @@ -811,6 +811,7 @@ template <class EXT_ID, class INT_ID, class COMPARE_KEYS, class ACE_LOCK> void ACE_RB_Tree<EXT_ID, INT_ID, COMPARE_KEYS, ACE_LOCK>:: dump_i (ACE_RB_Tree_Node<EXT_ID, INT_ID> *node) const { +#if defined (ACE_HAS_DUMP) if (node) { dump_node_i (*node); @@ -827,6 +828,7 @@ dump_i (ACE_RB_Tree_Node<EXT_ID, INT_ID> *node) const { ACE_DEBUG ((LM_DEBUG, ACE_LIB_TEXT ("\nNULL POINTER (BLACK)\n"))); } +#endif /* ACE_HAS_DUMP */ } @@ -838,10 +840,12 @@ template <class EXT_ID, class INT_ID, class COMPARE_KEYS, class ACE_LOCK> void ACE_RB_Tree<EXT_ID, INT_ID, COMPARE_KEYS, ACE_LOCK>:: dump_node_i (ACE_RB_Tree_Node<EXT_ID, INT_ID> &node) const { +#if defined (ACE_HAS_DUMP) const char * color_str = (node.color () == ACE_RB_Tree_Node_Base::RED) ? "RED" : "BLACK"; ACE_DEBUG ((LM_DEBUG, ACE_LIB_TEXT (" color=[%s]\n"), color_str)); +#endif /* ACE_HAS_DUMP */ } /// Tests the red-black invariant(s) throughout the whole tree. |