diff options
author | schmidt <douglascraigschmidt@users.noreply.github.com> | 1998-10-16 21:21:40 +0000 |
---|---|---|
committer | schmidt <douglascraigschmidt@users.noreply.github.com> | 1998-10-16 21:21:40 +0000 |
commit | dc79734a3d3b63f3c94ab876a0ed3c740abcc8f8 (patch) | |
tree | 83b8bb0b0c943f735ec479aa130d5111dc696459 /ace/Hash_Map_Manager.h | |
parent | d65e46fc8eeebd20415074bf055d76e768343404 (diff) | |
download | ATCD-dc79734a3d3b63f3c94ab876a0ed3c740abcc8f8.tar.gz |
.
Diffstat (limited to 'ace/Hash_Map_Manager.h')
-rw-r--r-- | ace/Hash_Map_Manager.h | 31 |
1 files changed, 22 insertions, 9 deletions
diff --git a/ace/Hash_Map_Manager.h b/ace/Hash_Map_Manager.h index ff382618459..8c3a627ec6d 100644 --- a/ace/Hash_Map_Manager.h +++ b/ace/Hash_Map_Manager.h @@ -343,7 +343,11 @@ template <class EXT_ID, class INT_ID, class ACE_LOCK> class ACE_Hash_Map_Iterator_Base { // = TITLE - // Iterator for the ACE_Hash_Map_Manager. + // Base iterator for the <ACE_Hash_Map_Manager> + // + // = DESCRIPTION + // This class factors out common code from its templatized + // subclasses. public: // = Initialization method. ACE_Hash_Map_Iterator_Base (ACE_Hash_Map_Manager <EXT_ID, INT_ID, ACE_LOCK> &mm, @@ -361,8 +365,7 @@ 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 @@ -399,13 +402,18 @@ protected: }; template <class EXT_ID, class INT_ID, class ACE_LOCK> -class ACE_Hash_Map_Iterator - : public ACE_Hash_Map_Iterator_Base<EXT_ID, INT_ID, ACE_LOCK> +class ACE_Hash_Map_Iterator : public ACE_Hash_Map_Iterator_Base<EXT_ID, INT_ID, ACE_LOCK> { // = TITLE - // Iterator for the ACE_Hash_Map_Manager. + // Forward iterator for the <ACE_Hash_Map_Manager>. // // = DESCRIPTION + // This class does not perform any internal locking of the + // <ACE_Hash_Map_Manager> it is iterating upon since locking is + // inherently inefficient and/or error-prone within an STL-style + // iterator. If you require locking, you can explicitly use an + // <ACE_Guard> or <ACE_Read_Guard> on the <ACE_Hash_Map_Manager>'s + // internal lock, which is accessible via its <mutex> method. public: // = Initialization method. ACE_Hash_Map_Iterator (ACE_Hash_Map_Manager<EXT_ID, INT_ID, ACE_LOCK> &mm, @@ -439,13 +447,18 @@ public: }; template <class EXT_ID, class INT_ID, class ACE_LOCK> -class ACE_Hash_Map_Reverse_Iterator - : public ACE_Hash_Map_Iterator_Base<EXT_ID, INT_ID, ACE_LOCK> +class ACE_Hash_Map_Reverse_Iterator : public ACE_Hash_Map_Iterator_Base<EXT_ID, INT_ID, ACE_LOCK> { // = TITLE - // Iterator for the ACE_Hash_Map_Manager. + // Reverse iterator for the <ACE_Hash_Map_Manager>. // // = DESCRIPTION + // This class does not perform any internal locking of the + // <ACE_Hash_Map_Manager> it is iterating upon since locking is + // inherently inefficient and/or error-prone within an STL-style + // iterator. If you require locking, you can explicitly use an + // <ACE_Guard> or <ACE_Read_Guard> on the <ACE_Hash_Map_Manager>'s + // internal lock, which is accessible via its <mutex> method. public: // = Initialization method. ACE_Hash_Map_Reverse_Iterator (ACE_Hash_Map_Manager<EXT_ID, INT_ID, ACE_LOCK> &mm, |