#include <RB_Tree.h>
Inheritance diagram for ACE_RB_Tree_Iterator:


Public Methods | |
| ACE_RB_Tree_Iterator (void) | |
| ACE_RB_Tree_Iterator (const ACE_RB_Tree< EXT_ID, INT_ID, COMPARE_KEYS, ACE_LOCK > &tree, int set_first=1) | |
| ACE_RB_Tree_Iterator (const ACE_RB_Tree< EXT_ID, INT_ID, COMPARE_KEYS, ACE_LOCK > &tree, ACE_RB_Tree_Node< EXT_ID, INT_ID > *entry) | |
| ACE_RB_Tree_Iterator (const EXT_ID &key, ACE_RB_Tree< EXT_ID, INT_ID, COMPARE_KEYS, ACE_LOCK > &tree) | |
| ~ACE_RB_Tree_Iterator (void) | |
| Destructor. More... | |
| int | advance (void) |
| Move forward by one element in the tree. Returns 0 when all elements have been seen, else 1. More... | |
| void | dump (void) const |
| Dump the state of an object. More... | |
| ACE_RB_Tree_Iterator< EXT_ID, INT_ID, COMPARE_KEYS, ACE_LOCK > & | operator++ (void) |
| Prefix advance. More... | |
| ACE_RB_Tree_Iterator< EXT_ID, INT_ID, COMPARE_KEYS, ACE_LOCK > | operator++ (int) |
| Postfix advance. More... | |
| ACE_RB_Tree_Iterator< EXT_ID, INT_ID, COMPARE_KEYS, ACE_LOCK > & | operator-- (void) |
| Prefix reverse. More... | |
| ACE_RB_Tree_Iterator< EXT_ID, INT_ID, COMPARE_KEYS, ACE_LOCK > | operator-- (int) |
| Postfix reverse. More... | |
| int | next (ACE_RB_Tree_Node< EXT_ID, INT_ID > *&next_entry) const |
| EXT_ID * | key (void) |
| |
| INT_ID * | item (void) |
| |
| int | first (void) |
| |
| int | last (void) |
| |
| int | next (void) |
| |
| int | previous (void) |
| |
| int | is_done (void) |
Public Attributes | |
| ACE_ALLOC_HOOK_DECLARE | |
| Declare the dynamic allocation hooks. More... | |
Definition at line 652 of file RB_Tree.h.
|
||||||||||
|
Create the singular iterator. It is illegal to deference the iterator, no valid iterator is equal to a singular iterator, etc. etc. Definition at line 841 of file RB_Tree.i. References ACE_TRACE.
00842 : ACE_RB_Tree_Iterator_Base<EXT_ID,INT_ID,COMPARE_KEYS,ACE_LOCK> () 00843 { 00844 ACE_TRACE ("ACE_RB_Tree_Iterator<EXT_ID, INT_ID, COMPARE_KEYS, ACE_LOCK>::ACE_RB_Tree_Iterator (void)"); 00845 } |
|
||||||||||||||||
|
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). Definition at line 1062 of file RB_Tree.cpp. References ACE_TRACE.
01064 : ACE_RB_Tree_Iterator_Base<EXT_ID, INT_ID, COMPARE_KEYS, ACE_LOCK> (tree, set_first) 01065 { 01066 ACE_TRACE ("ACE_RB_Tree_Iterator<EXT_ID, INT_ID, COMPARE_KEYS, ACE_LOCK>::ACE_RB_Tree_Iterator"); 01067 } |
|
||||||||||||||||
|
Constructor. Takes an ACE_RB_Tree over which to iterate and a pointer to a node in the tree. Definition at line 1070 of file RB_Tree.cpp. References ACE_TRACE.
01072 : ACE_RB_Tree_Iterator_Base<EXT_ID, INT_ID, COMPARE_KEYS, ACE_LOCK> (tree,entry) 01073 { 01074 ACE_TRACE ("ACE_RB_Tree_Iterator<EXT_ID, INT_ID, COMPARE_KEYS, ACE_LOCK>::ACE_RB_Tree_Iterator"); 01075 } |
|
||||||||||||||||
|
Constructor. Takes an ACE_RB_Tree over which to iterate, and a key; the key comes first in order to distinguish the case of EXT_ID == int. Definition at line 1078 of file RB_Tree.cpp. References ACE_TRACE.
01079 : ACE_RB_Tree_Iterator_Base<EXT_ID, INT_ID, COMPARE_KEYS, ACE_LOCK>(key,tree) 01080 { 01081 ACE_TRACE ("ACE_RB_Tree_Iterator<EXT_ID, INT_ID, COMPARE_KEYS, ACE_LOCK>::ACE_RB_Tree_Iterator"); 01082 } |
|
||||||||||
|
Destructor.
Definition at line 1087 of file RB_Tree.cpp. References ACE_TRACE.
01088 {
01089 ACE_TRACE ("ACE_RB_Tree_Iterator<EXT_ID, INT_ID, COMPARE_KEYS, ACE_LOCK>::~ACE_RB_Tree_Iterator");
01090 }
|
|
||||||||||
|
Move forward by one element in the tree. Returns 0 when all elements have been seen, else 1.
Definition at line 852 of file RB_Tree.i. References ACE_TRACE, and ACE_RB_Tree_Iterator_Base::forward_i.
|
|
||||||||||
|
Dump the state of an object.
Definition at line 864 of file RB_Tree.i. References ACE_TRACE, and ACE_RB_Tree_Iterator_Base::dump_i.
|
|
||||||||||
|
Definition at line 978 of file RB_Tree.i. References ACE_TRACE, ACE_RB_Tree_Iterator_Base::node_, and ACE_RB_Tree_Iterator_Base::tree_. Referenced by ACE_RB_Tree::ACE_RB_Tree, and ACE_RB_Tree::operator=.
|
|
||||||||||
|
@deprecated: use the base class <done> method instead. Returns 0 if the iterator is positioned over a valid ACE_RB_Tree node, returns 1 if not. Definition at line 1029 of file RB_Tree.i. References ACE_TRACE, and ACE_RB_Tree_Iterator_Base::node_. Referenced by ACE_RB_Tree::ACE_RB_Tree, and ACE_RB_Tree::operator=.
|
|
||||||||||
|
Definition at line 967 of file RB_Tree.i. References ACE_TRACE, and ACE_RB_Tree_Iterator_Base::node_. Referenced by ACE_RB_Tree::ACE_RB_Tree, and ACE_RB_Tree::operator=.
|
|
||||||||||
|
Definition at line 956 of file RB_Tree.i. References ACE_TRACE, and ACE_RB_Tree_Iterator_Base::node_. Referenced by ACE_RB_Tree::ACE_RB_Tree, and ACE_RB_Tree::operator=.
|
|
||||||||||
|
Definition at line 990 of file RB_Tree.i. References ACE_TRACE, ACE_RB_Tree_Iterator_Base::node_, and ACE_RB_Tree_Iterator_Base::tree_.
|
|
||||||||||
|
Definition at line 1003 of file RB_Tree.i. References ACE_TRACE, ACE_RB_Tree_Iterator_Base::node_, and ACE_RB_Tree_Iterator_Base::tree_.
|
|
||||||||||
|
Passes back the <entry> under the iterator. Returns 0 if the iteration has completed, otherwise 1. This method must be declared and defined in both the derived forward and reverse iterator classes rather than in the base iterator class because of a method signature resolution problem caused by the existence of the deprecated next (void) method in the derived forward iterator class. When that deprecated method is removed, this method should be removed from the derived classes and placed in the base class. Definition at line 938 of file RB_Tree.i. References ACE_TRACE, and ACE_RB_Tree_Iterator_Base::node_. Referenced by ACE_RB_Tree::ACE_RB_Tree, and ACE_RB_Tree::operator=.
|
|
||||||||||
|
Postfix advance.
Definition at line 889 of file RB_Tree.i. References ACE_TRACE, and ACE_RB_Tree_Iterator_Base::forward_i.
00890 {
00891 ACE_TRACE ("ACE_RB_Tree_Iterator<EXT_ID, INT_ID, COMPARE_KEYS, ACE_LOCK> operator++ (int)");
00892
00893 ACE_RB_Tree_Iterator<EXT_ID, INT_ID, COMPARE_KEYS, ACE_LOCK> retv (*this);
00894 this->forward_i ();
00895 return retv;
00896 }
|
|
||||||||||
|
Prefix advance.
Definition at line 876 of file RB_Tree.i. References ACE_TRACE, and ACE_RB_Tree_Iterator_Base::forward_i.
|
|
||||||||||
|
Postfix reverse.
Definition at line 916 of file RB_Tree.i. References ACE_TRACE, and ACE_RB_Tree_Iterator_Base::reverse_i.
00917 {
00918 ACE_TRACE ("ACE_RB_Tree_Iterator<EXT_ID, INT_ID, COMPARE_KEYS, ACE_LOCK> operator-- (int)");
00919
00920 ACE_RB_Tree_Iterator<EXT_ID, INT_ID, COMPARE_KEYS, ACE_LOCK> retv (*this);
00921 this->reverse_i ();
00922 return retv;
00923 }
|
|
||||||||||
|
Prefix reverse.
Definition at line 903 of file RB_Tree.i. References ACE_TRACE, and ACE_RB_Tree_Iterator_Base::reverse_i.
|
|
||||||||||
|
Definition at line 1016 of file RB_Tree.i. References ACE_TRACE, ACE_RB_Tree_Iterator_Base::node_, and ACE_RB_Tree_Iterator_Base::tree_.
|
|
|||||
|
Declare the dynamic allocation hooks.
Reimplemented from ACE_RB_Tree_Iterator_Base. |
1.2.14 written by Dimitri van Heesch,
© 1997-2002