#include <Map_T.h>
Inheritance diagram for ACE_Map:

Public Types | |
| typedef KEY | key_type |
| typedef VALUE | mapped_type |
| typedef ACE_Reference_Pair< const KEY, VALUE > | value_type |
| typedef ACE_Iterator< value_type > | iterator |
| typedef ACE_Reverse_Iterator< value_type > | reverse_iterator |
| typedef ACE_Iterator_Impl< value_type > | iterator_implementation |
| typedef ACE_Reverse_Iterator_Impl< value_type > | reverse_iterator_implementation |
Public Methods | |
| virtual | ~ACE_Map (void) |
| Close down and release dynamically allocated resources. More... | |
| virtual int | open (size_t length=ACE_DEFAULT_MAP_SIZE, ACE_Allocator *alloc=0)=0 |
| Initialize a <Map> with size <length>. More... | |
| virtual int | close (void)=0 |
| Close down a <Map> and release dynamically allocated resources. More... | |
| virtual int | bind (const KEY &key, const VALUE &value)=0 |
| virtual int | bind_modify_key (const VALUE &value, KEY &key)=0 |
| virtual int | create_key (KEY &key)=0 |
| virtual int | bind_create_key (const VALUE &value, KEY &key)=0 |
| virtual int | bind_create_key (const VALUE &value)=0 |
| virtual int | recover_key (const KEY &modified_key, KEY &original_key)=0 |
| Recovers the original key potentially modified by the map during <bind_modify_key>. More... | |
| virtual int | rebind (const KEY &key, const VALUE &value)=0 |
| virtual int | rebind (const KEY &key, const VALUE &value, VALUE &old_value)=0 |
| virtual int | rebind (const KEY &key, const VALUE &value, KEY &old_key, VALUE &old_value)=0 |
| virtual int | trybind (const KEY &key, VALUE &value)=0 |
| virtual int | find (const KEY &key, VALUE &value)=0 |
| Locate <value> associated with <key>. More... | |
| virtual int | find (const KEY &key)=0 |
| Is <key> in the map? More... | |
| virtual int | unbind (const KEY &key)=0 |
| Remove <key> from the map. More... | |
| virtual int | unbind (const KEY &key, VALUE &value)=0 |
| Remove <key> from the map, and return the <value> associated with <key>. More... | |
| virtual size_t | current_size (void) const=0 |
| Return the current size of the map. More... | |
| virtual size_t | total_size (void) const=0 |
| Return the total size of the map. More... | |
| virtual void | dump (void) const=0 |
| Dump the state of an object. More... | |
| iterator | begin (void) |
| Return forward iterator. More... | |
| iterator | end (void) |
| reverse_iterator | rbegin (void) |
| Return reverse iterator. More... | |
| reverse_iterator | rend (void) |
Protected Methods | |
| ACE_Map (void) | |
| virtual ACE_Iterator_Impl< ACE_Reference_Pair< const KEY, VALUE > > * | begin_impl (void)=0 |
| Return forward iterator. More... | |
| virtual ACE_Iterator_Impl< ACE_Reference_Pair< const KEY, VALUE > > * | end_impl (void)=0 |
| virtual ACE_Reverse_Iterator_Impl< ACE_Reference_Pair< const KEY, VALUE > > * | rbegin_impl (void)=0 |
| Return reverse iterator. More... | |
| virtual ACE_Reverse_Iterator_Impl< ACE_Reference_Pair< const KEY, VALUE > > * | rend_impl (void)=0 |
Private Methods | |
| void | operator= (const ACE_Map< KEY, VALUE > &) |
| ACE_Map (const ACE_Map< KEY, VALUE > &) | |
Implementation to be provided by subclasses.
Definition at line 255 of file Map_T.h.
|
|||||
|
|
|
|||||
|
|
|
|||||
|
|
|
|||||
|
|
|
|||||
|
|
|
|||||
|
|
|
|||||
|
|
|
||||||||||
|
Close down and release dynamically allocated resources.
Definition at line 204 of file Map_T.i.
00205 {
00206 }
|
|
||||||||||
|
Definition at line 199 of file Map_T.i.
00200 {
00201 }
|
|
||||||||||
|
|
|
||||||||||
|
Return forward iterator.
Definition at line 209 of file Map_T.i. References iterator.
00210 {
00211 return iterator (this->begin_impl ());
00212 }
|
|
||||||||||
|
Return forward iterator.
Implemented in ACE_Map_Impl. |
|
||||||||||||||||
|
Add <key>/<value> pair to the map. If <key> is already in the map then no changes are made and 1 is returned. Returns 0 on a successful addition. This function fails for maps that do not allow user specified keys. <key> is an "in" parameter. Implemented in ACE_Map_Impl. |
|
||||||||||
|
Add <value> to the map. The user does not care about the corresponding key produced by the Map. For maps that do not naturally produce keys, the map adapters will use the <KEY_GENERATOR> class to produce a key. However, the users are responsible for not jeopardizing this key production scheme by using user specified keys with keys produced by the key generator. Implemented in ACE_Map_Impl. |
|
||||||||||||||||
|
Add <value> to the map, and the corresponding key produced by the Map is returned through <key> which is an "out" parameter. For maps that do not naturally produce keys, the map adapters will use the <KEY_GENERATOR> class to produce a key. However, the users are responsible for not jeopardizing this key production scheme by using user specified keys with keys produced by the key generator. Implemented in ACE_Map_Impl. |
|
||||||||||||||||
|
Add <key>/<value> pair to the map. <key> is an "inout" parameter and maybe modified/extended by the map to add additional information. To recover original key, call the <recover_key> method. Implemented in ACE_Map_Impl. |
|
||||||||||
|
Close down a <Map> and release dynamically allocated resources.
Implemented in ACE_Map_Impl. |
|
||||||||||
|
Produce a key and return it through <key> which is an "out" parameter. For maps that do not naturally produce keys, the map adapters will use the <KEY_GENERATOR> class to produce a key. However, the users are responsible for not jeopardizing this key production scheme by using user specified keys with keys produced by the key generator. Implemented in ACE_Map_Impl. |
|
||||||||||
|
Return the current size of the map.
Implemented in ACE_Map_Impl. |
|
||||||||||
|
Dump the state of an object.
Implemented in ACE_Map_Impl. |
|
||||||||||
|
Definition at line 215 of file Map_T.i. References iterator.
00216 {
00217 return iterator (this->end_impl ());
00218 }
|
|
||||||||||
|
Implemented in ACE_Map_Impl. |
|
||||||||||
|
Is <key> in the map?
Implemented in ACE_Map_Impl. |
|
||||||||||||||||
|
Locate <value> associated with <key>.
Implemented in ACE_Map_Impl. |
|
||||||||||||||||
|
Initialize a <Map> with size <length>.
Implemented in ACE_Map_Impl. |
|
||||||||||
|
|
|
||||||||||
|
Return reverse iterator.
Definition at line 221 of file Map_T.i. References reverse_iterator.
00222 {
00223 return reverse_iterator (this->rbegin_impl ());
00224 }
|
|
||||||||||
|
Return reverse iterator.
Implemented in ACE_Map_Impl. |
|
||||||||||||||||||||||||
|
Reassociate <key> with <value>, storing the old key and value into the "out" parameters <old_key> and <old_value>. The function fails if <key> is not in the map for maps that do not allow user specified keys. However, for maps that allow user specified keys, if the key is not in the map, a new <key>/<value> association is created. Implemented in ACE_Map_Impl. |
|
||||||||||||||||||||
|
Reassociate <key> with <value>, storing the old value into the "out" parameter <old_value>. The function fails if <key> is not in the map for maps that do not allow user specified keys. However, for maps that allow user specified keys, if the key is not in the map, a new <key>/<value> association is created. Implemented in ACE_Map_Impl. |
|
||||||||||||||||
|
Reassociate <key> with <value>. The function fails if <key> is not in the map for maps that do not allow user specified keys. However, for maps that allow user specified keys, if the key is not in the map, a new <key>/<value> association is created. Implemented in ACE_Map_Impl. |
|
||||||||||||||||
|
Recovers the original key potentially modified by the map during <bind_modify_key>.
Implemented in ACE_Map_Impl. |
|
||||||||||
|
Definition at line 227 of file Map_T.i. References reverse_iterator.
00228 {
00229 return reverse_iterator (this->rend_impl ());
00230 }
|
|
||||||||||
|
Implemented in ACE_Map_Impl. |
|
||||||||||
|
Return the total size of the map.
Implemented in ACE_Map_Impl. |
|
||||||||||||||||
|
Associate <key> with <value> if and only if <key> is not in the map. If <key> is already in the map, then the <value> parameter is overwritten with the existing value in the map. Returns 0 if a new <key>/<value> association is created. Returns 1 if an attempt is made to bind an existing entry. This function fails for maps that do not allow user specified keys. Implemented in ACE_Map_Impl. |
|
||||||||||||||||
|
Remove <key> from the map, and return the <value> associated with <key>.
Implemented in ACE_Map_Impl. |
|
||||||||||
|
Remove <key> from the map.
Implemented in ACE_Map_Impl. |
1.2.14 written by Dimitri van Heesch,
© 1997-2002