diff options
author | irfan <irfan@ae88bc3d-4319-0410-8dbf-d08b4c9d3795> | 1999-02-06 04:25:54 +0000 |
---|---|---|
committer | irfan <irfan@ae88bc3d-4319-0410-8dbf-d08b4c9d3795> | 1999-02-06 04:25:54 +0000 |
commit | 0d8ee7e4258f06f26d0a9dbb467ecf573dc5d689 (patch) | |
tree | a00a40326372f5fade152590802b12891788f2a3 /ace/Map_Manager.h | |
parent | 93735413191d08c245df27e593d79aba9482efc2 (diff) | |
download | ATCD-0d8ee7e4258f06f26d0a9dbb467ecf573dc5d689.tar.gz |
*** empty log message ***
Diffstat (limited to 'ace/Map_Manager.h')
-rw-r--r-- | ace/Map_Manager.h | 20 |
1 files changed, 18 insertions, 2 deletions
diff --git a/ace/Map_Manager.h b/ace/Map_Manager.h index 93b9adc5b08..d2d7d26e303 100644 --- a/ace/Map_Manager.h +++ b/ace/Map_Manager.h @@ -159,6 +159,16 @@ public: // and returns -1 if failures occur. int rebind (const EXT_ID &ext_id, + const INT_ID &int_id, + INT_ID &old_int_id); + // Reassociate <ext_id> with <int_id>. If <ext_id> is not in the + // map then behaves just like <bind>. Otherwise, store the old + // values of <int_id> into the "out" parameter and rebind the new + // parameters. Returns 0 if a new entry is bound successfully, + // returns 1 if an existing entry was rebound, and returns -1 if + // failures occur. + + int rebind (const EXT_ID &ext_id, const INT_ID &int_id); // Reassociate <ext_id> with <int_id>. Old values in the map are // ignored. @@ -247,6 +257,12 @@ protected: // values. Must be called with locks held. int rebind_i (const EXT_ID &ext_id, + const INT_ID &int_id, + INT_ID &old_int_id); + // Performs a rebinding of <ext_it> to <int_id>. Also, recovers old + // values. Must be called with locks held. + + int rebind_i (const EXT_ID &ext_id, const INT_ID &int_id); // Performs a rebinding of <ext_it> to <int_id>. Must be called // with locks held. @@ -375,14 +391,14 @@ public: // = Iteration methods. - int next (ACE_Map_Entry<EXT_ID, INT_ID> *&next_entry); + int next (ACE_Map_Entry<EXT_ID, INT_ID> *&next_entry) const; // Pass back the next <entry> that hasn't been seen in the Set. // Returns 0 when all items have been seen, else 1. int done (void) const; // Returns 1 when all items have been seen, else 0. - ACE_Map_Entry<EXT_ID, INT_ID>& operator* (void); + ACE_Map_Entry<EXT_ID, INT_ID>& operator* (void) const; // Returns a reference to the interal element <this> is pointing to. ACE_Map_Manager<EXT_ID, INT_ID, ACE_LOCK>& map (void); |