summaryrefslogtreecommitdiff
path: root/ace/RB_Tree.h
diff options
context:
space:
mode:
authorcdgill <cdgill@ae88bc3d-4319-0410-8dbf-d08b4c9d3795>1999-06-11 01:35:15 +0000
committercdgill <cdgill@ae88bc3d-4319-0410-8dbf-d08b4c9d3795>1999-06-11 01:35:15 +0000
commitf66e6f75700668d9519d0ce80300ff6f17608b38 (patch)
tree40efc47ec4b9c57351fdaf99b1d4180f49eb69ab /ace/RB_Tree.h
parente3be45b777909ce7c7fbe70ea6f3d326dad81787 (diff)
downloadATCD-f66e6f75700668d9519d0ce80300ff6f17608b38.tar.gz
made iterator base ctors protected
Diffstat (limited to 'ace/RB_Tree.h')
-rw-r--r--ace/RB_Tree.h33
1 files changed, 17 insertions, 16 deletions
diff --git a/ace/RB_Tree.h b/ace/RB_Tree.h
index 2c54983e515..7b61793711a 100644
--- a/ace/RB_Tree.h
+++ b/ace/RB_Tree.h
@@ -465,26 +465,12 @@ class ACE_RB_Tree_Iterator_Base
{
// = TITLE
// Implements a common base class for iterators for a Red-Black Tree ADT.
-public:
-
- // = Initialization and termination methods.
-
- ACE_RB_Tree_Iterator_Base (const ACE_RB_Tree<EXT_ID, INT_ID, COMPARE_KEYS, ACE_LOCK> &tree,
- int set_first);
- // Constructor. Takes an ACE_RB_Tree over which to iterate, and
- // an integer indicating (if non-zero) to position the iterator
- // at the first element in the tree (if this integer is 0, the
- // iterator is positioned at the last element in the tree).
- ACE_RB_Tree_Iterator_Base (const ACE_RB_Tree_Iterator_Base<EXT_ID, INT_ID, COMPARE_KEYS, ACE_LOCK> &iter);
- // Copy constructor.
+public:
void operator= (const ACE_RB_Tree_Iterator_Base<EXT_ID, INT_ID, COMPARE_KEYS, ACE_LOCK> &iter);
// Assignment operator: copies both the tree reference and the position in the tree.
- ~ACE_RB_Tree_Iterator_Base (void);
- // Destructor.
-
// = Iteration methods.
int next (ACE_RB_Tree_Node<EXT_ID, INT_ID> *&next_entry) const;
@@ -512,7 +498,22 @@ public:
protected:
- // = protected methods
+ // = Initialization and termination methods.
+
+ ACE_RB_Tree_Iterator_Base (const ACE_RB_Tree<EXT_ID, INT_ID, COMPARE_KEYS, ACE_LOCK> &tree,
+ int set_first);
+ // Constructor. Takes an ACE_RB_Tree over which to iterate, and
+ // an integer indicating (if non-zero) to position the iterator
+ // at the first element in the tree (if this integer is 0, the
+ // iterator is positioned at the last element in the tree).
+
+ ACE_RB_Tree_Iterator_Base (const ACE_RB_Tree_Iterator_Base<EXT_ID, INT_ID, COMPARE_KEYS, ACE_LOCK> &iter);
+ // Copy constructor.
+
+ ~ACE_RB_Tree_Iterator_Base (void);
+ // Destructor.
+
+ // = Internal methods
int forward_i (void);
// Move forward by one element in the tree. Returns 0 when