diff options
author | alex <alex@ae88bc3d-4319-0410-8dbf-d08b4c9d3795> | 1998-03-18 16:59:55 +0000 |
---|---|---|
committer | alex <alex@ae88bc3d-4319-0410-8dbf-d08b4c9d3795> | 1998-03-18 16:59:55 +0000 |
commit | 8ea97f9e48f626311eb20dbbaf57797e8f7a1b6f (patch) | |
tree | 7d114ffee253bc2bc728ab4038a4ec21cbdbf2df | |
parent | 80780d61b4f73abd7d865d5f9ed695c1fbfc463c (diff) | |
download | ATCD-8ea97f9e48f626311eb20dbbaf57797e8f7a1b6f.tar.gz |
*** empty log message ***
-rw-r--r-- | ace/Hash_Map_Manager.cpp | 10 | ||||
-rw-r--r-- | ace/Hash_Map_Manager.h | 7 |
2 files changed, 16 insertions, 1 deletions
diff --git a/ace/Hash_Map_Manager.cpp b/ace/Hash_Map_Manager.cpp index 8260d1aaad8..47475036f12 100644 --- a/ace/Hash_Map_Manager.cpp +++ b/ace/Hash_Map_Manager.cpp @@ -711,6 +711,16 @@ ACE_Hash_Map_Iterator_Base<EXT_ID, INT_ID, ACE_LOCK>::operator* (void) return *retv; } +// Returns the reference to the hash_map_manager that is being +// iterated over. +template <class EXT_ID, class INT_ID, class ACE_LOCK> +ACE_Hash_Map_Manager<EXT_ID, INT_ID, ACE_LOCK>& +ACE_Hash_Map_Iterator_Base<EXT_ID, INT_ID, ACE_LOCK>::map (void) +{ + ACE_TRACE ("ACE_Hash_Map_Iterator_Base<EXT_ID, INT_ID, ACE_LOCK>::map"); + return *this->map_man_; +} + template <class EXT_ID, class INT_ID, class ACE_LOCK> int ACE_Hash_Map_Iterator_Base<EXT_ID, INT_ID, ACE_LOCK>::operator== (const ACE_Hash_Map_Iterator_Base<EXT_ID, INT_ID, ACE_LOCK> &rhs) const { diff --git a/ace/Hash_Map_Manager.h b/ace/Hash_Map_Manager.h index 7016884b7ae..7e19ee6cbe0 100644 --- a/ace/Hash_Map_Manager.h +++ b/ace/Hash_Map_Manager.h @@ -335,7 +335,12 @@ public: // Returns 1 when all items have been seen, else 0. ACE_Hash_Map_Entry<EXT_ID, INT_ID>& operator* (void); - // Returns a reference to the interal element <this> is pointing to. + // Returns a reference to the interal element <this> is pointing + // to. + + ACE_Hash_Map_Manager<EXT_ID, INT_ID, ACE_LOCK>& map (void); + // Returns reference the Hash_Map_Manager that is being iterated + // over. int operator== (const ACE_Hash_Map_Iterator_Base<EXT_ID, INT_ID, ACE_LOCK> &) const; int operator!= (const ACE_Hash_Map_Iterator_Base<EXT_ID, INT_ID, ACE_LOCK> &) const; |