diff options
author | jtc <jtc@ae88bc3d-4319-0410-8dbf-d08b4c9d3795> | 2006-06-06 03:58:27 +0000 |
---|---|---|
committer | jtc <jtc@ae88bc3d-4319-0410-8dbf-d08b4c9d3795> | 2006-06-06 03:58:27 +0000 |
commit | 124f342bfc27f37a6bce8af4d586d8dc92665496 (patch) | |
tree | 67f86033c687087e58bbf13640aceef4a08492bf /ace/RB_Tree.inl | |
parent | c9c439eb181356ae0880e8110cac85e8cfc600c8 (diff) | |
download | ATCD-124f342bfc27f37a6bce8af4d586d8dc92665496.tar.gz |
ChangeLogTag: Tue Jun 6 03:57:08 UTC 2006 J.T. Conklin <jtc@acorntoolworks.com>
Diffstat (limited to 'ace/RB_Tree.inl')
-rw-r--r-- | ace/RB_Tree.inl | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/ace/RB_Tree.inl b/ace/RB_Tree.inl index ba41725319c..2e9b266ee92 100644 --- a/ace/RB_Tree.inl +++ b/ace/RB_Tree.inl @@ -760,6 +760,18 @@ ACE_RB_Tree_Iterator_Base<EXT_ID, INT_ID, COMPARE_KEYS, ACE_LOCK>::operator* (vo } +// STL-like iterator dereference operator: returns a reference +// to the node underneath the iterator. + +template <class EXT_ID, class INT_ID, class COMPARE_KEYS, class ACE_LOCK> +ACE_INLINE ACE_RB_Tree_Node<EXT_ID, INT_ID> * +ACE_RB_Tree_Iterator_Base<EXT_ID, INT_ID, COMPARE_KEYS, ACE_LOCK>::operator-> (void) const +{ + ACE_TRACE ("ACE_RB_Tree_Iterator_Base<EXT_ID, INT_ID, COMPARE_KEYS, ACE_LOCK>::operator->"); + return this->node_; +} + + // Returns a reference to the tree over which we're iterating. template <class EXT_ID, class INT_ID, class COMPARE_KEYS, class ACE_LOCK>ACE_INLINE const ACE_RB_Tree<EXT_ID, INT_ID, COMPARE_KEYS, ACE_LOCK> & |