#include <Map_T.h>
Inheritance diagram for ACE_Map_Impl< KEY, VALUE, IMPLEMENTATION, ITERATOR, REVERSE_ITERATOR, ENTRY >:
Public Types | |
typedef ACE_Map_Impl_Iterator_Adapter< ACE_TYPENAME ACE_Map< KEY, VALUE >::value_type, ITERATOR, ENTRY > | iterator_impl |
typedef ACE_Map_Impl_Reverse_Iterator_Adapter< ACE_TYPENAME ACE_Map< KEY, VALUE >::value_type, REVERSE_ITERATOR, ENTRY > | reverse_iterator_impl |
typedef IMPLEMENTATION | implementation |
Public Member Functions | |
ACE_Map_Impl (ACE_Allocator *alloc=0) | |
Initialize with the . | |
ACE_Map_Impl (size_t size, ACE_Allocator *alloc=0) | |
virtual | ~ACE_Map_Impl (void) |
Close down and release dynamically allocated resources. | |
virtual int | open (size_t length=ACE_DEFAULT_MAP_SIZE, ACE_Allocator *alloc=0) |
Initialize a with size . | |
virtual int | close (void) |
Close down a and release dynamically allocated resources. | |
virtual int | bind (const KEY &key, const VALUE &value) |
virtual int | bind_modify_key (const VALUE &value, KEY &key) |
virtual int | create_key (KEY &key) |
virtual int | bind_create_key (const VALUE &value, KEY &key) |
virtual int | bind_create_key (const VALUE &value) |
virtual int | recover_key (const KEY &modified_key, KEY &original_key) |
virtual int | rebind (const KEY &key, const VALUE &value) |
virtual int | rebind (const KEY &key, const VALUE &value, VALUE &old_value) |
virtual int | rebind (const KEY &key, const VALUE &value, KEY &old_key, VALUE &old_value) |
virtual int | trybind (const KEY &key, VALUE &value) |
virtual int | find (const KEY &key, VALUE &value) |
Locate associated with . | |
virtual int | find (const KEY &key) |
Is in the map? | |
virtual int | unbind (const KEY &key) |
Remove from the map. | |
virtual int | unbind (const KEY &key, VALUE &value) |
virtual size_t | current_size (void) const |
Return the current size of the map. | |
virtual size_t | total_size (void) const |
Return the total size of the map. | |
virtual void | dump (void) const |
Dump the state of an object. | |
IMPLEMENTATION & | impl (void) |
Accessor to implementation object. | |
Protected Member Functions | |
virtual ACE_Iterator_Impl< ACE_Reference_Pair< const KEY, VALUE > > * | begin_impl (void) |
Return forward iterator. | |
virtual ACE_Iterator_Impl< ACE_Reference_Pair< const KEY, VALUE > > * | end_impl (void) |
virtual ACE_Reverse_Iterator_Impl< ACE_Reference_Pair< const KEY, VALUE > > * | rbegin_impl (void) |
Return reverse iterator. | |
virtual ACE_Reverse_Iterator_Impl< ACE_Reference_Pair< const KEY, VALUE > > * | rend_impl (void) |
Protected Attributes | |
IMPLEMENTATION | implementation_ |
All implementation details are forwarded to this class. | |
Private Member Functions | |
void | operator= (const ACE_Map_Impl< KEY, VALUE, IMPLEMENTATION, ITERATOR, REVERSE_ITERATOR, ENTRY > &) |
ACE_Map_Impl (const ACE_Map_Impl< KEY, VALUE, IMPLEMENTATION, ITERATOR, REVERSE_ITERATOR, ENTRY > &) |
Implementation to be provided by .
Definition at line 547 of file Map_T.h.
|
|
|
Definition at line 553 of file Map_T.h. Referenced by ACE_Map_Impl< KEY, VALUE, IMPLEMENTATION, ITERATOR, REVERSE_ITERATOR, ENTRY >::begin_impl(), and ACE_Map_Impl< KEY, VALUE, IMPLEMENTATION, ITERATOR, REVERSE_ITERATOR, ENTRY >::end_impl(). |
|
Definition at line 555 of file Map_T.h. Referenced by ACE_Map_Impl< KEY, VALUE, IMPLEMENTATION, ITERATOR, REVERSE_ITERATOR, ENTRY >::rbegin_impl(), and ACE_Map_Impl< KEY, VALUE, IMPLEMENTATION, ITERATOR, REVERSE_ITERATOR, ENTRY >::rend_impl(). |
|
Initialize with the .
Definition at line 246 of file Map_T.inl.
00247 : implementation_ (alloc) 00248 { 00249 } |
|
Initialize with entries. The parameter is ignored by maps for which an initialize size does not make sense. Definition at line 252 of file Map_T.inl.
00254 : implementation_ (size, 00255 alloc) 00256 { 00257 } |
|
Close down and release dynamically allocated resources.
Definition at line 125 of file Map_T.cpp.
00126 { 00127 } |
|
|
|
Return forward iterator.
Implements ACE_Map< KEY, VALUE >. Definition at line 274 of file Map_T.cpp. References ACE_NEW_RETURN, and ACE_Map_Impl< KEY, VALUE, IMPLEMENTATION, ITERATOR, REVERSE_ITERATOR, ENTRY >::iterator_impl.
00275 { 00276 ACE_Iterator_Impl<ACE_Reference_Pair<const KEY, VALUE> > *temp = 0; 00277 ACE_NEW_RETURN (temp, 00278 iterator_impl (this->implementation_.begin ()), 00279 0); 00280 return temp; 00281 } |
|
Add / pair to the map. If 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. is an "in" parameter. Implements ACE_Map< KEY, VALUE >. Definition at line 144 of file Map_T.cpp.
00146 { 00147 return this->implementation_.bind (key, 00148 value); 00149 } |
|
Add 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 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. Implements ACE_Map< KEY, VALUE >. Definition at line 174 of file Map_T.cpp.
00175 { 00176 return this->implementation_.bind_create_key (value); 00177 } |
|
Add to the map, and the corresponding key produced by the Map is returned through which is an "out" parameter. For maps that do not naturally produce keys, the map adapters will use the 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. Implements ACE_Map< KEY, VALUE >. Definition at line 166 of file Map_T.cpp.
00168 { 00169 return this->implementation_.bind_create_key (value, 00170 key); 00171 } |
|
Add / pair to the map. is an "inout" parameter and maybe modified/extended by the map to add additional information. To recover original key, call the method. Implements ACE_Map< KEY, VALUE >. Definition at line 152 of file Map_T.cpp.
00154 { 00155 return this->implementation_.bind_modify_key (value, 00156 key); 00157 } |
|
Close down a and release dynamically allocated resources.
Implements ACE_Map< KEY, VALUE >. Definition at line 138 of file Map_T.cpp.
00139 { 00140 return this->implementation_.close (); 00141 } |
|
Produce a key and return it through which is an "out" parameter. For maps that do not naturally produce keys, the map adapters will use the 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. Implements ACE_Map< KEY, VALUE >. Definition at line 160 of file Map_T.cpp.
00161 { 00162 return this->implementation_.create_key (key); 00163 } |
|
Return the current size of the map.
Implements ACE_Map< KEY, VALUE >. Definition at line 254 of file Map_T.cpp.
00255 { 00256 return this->implementation_.current_size (); 00257 } |
|
Dump the state of an object.
Implements ACE_Map< KEY, VALUE >. Definition at line 266 of file Map_T.cpp.
00267 { 00268 #if defined (ACE_HAS_DUMP) 00269 this->implementation_.dump (); 00270 #endif /* ACE_HAS_DUMP */ 00271 } |
|
Implements ACE_Map< KEY, VALUE >. Definition at line 284 of file Map_T.cpp. References ACE_NEW_RETURN, and ACE_Map_Impl< KEY, VALUE, IMPLEMENTATION, ITERATOR, REVERSE_ITERATOR, ENTRY >::iterator_impl.
00285 { 00286 ACE_Iterator_Impl<ACE_Reference_Pair<const KEY, VALUE> > *temp = 0; 00287 ACE_NEW_RETURN (temp, 00288 iterator_impl (this->implementation_.end ()), 00289 0); 00290 return temp; 00291 } |
|
Is in the map?
Implements ACE_Map< KEY, VALUE >. Definition at line 234 of file Map_T.cpp.
00235 { 00236 return this->implementation_.find (key); 00237 } |
|
Locate associated with .
Implements ACE_Map< KEY, VALUE >. Definition at line 226 of file Map_T.cpp.
00228 { 00229 return this->implementation_.find (key, 00230 value); 00231 } |
|
Accessor to implementation object.
Definition at line 260 of file Map_T.inl.
00261 { 00262 return this->implementation_; 00263 } |
|
Initialize a with size .
Implements ACE_Map< KEY, VALUE >. Definition at line 130 of file Map_T.cpp.
00132 { 00133 return this->implementation_.open (length, 00134 alloc); 00135 } |
|
|
|
Return reverse iterator.
Implements ACE_Map< KEY, VALUE >. Definition at line 294 of file Map_T.cpp. References ACE_NEW_RETURN, and ACE_Map_Impl< KEY, VALUE, IMPLEMENTATION, ITERATOR, REVERSE_ITERATOR, ENTRY >::reverse_iterator_impl.
00295 { 00296 ACE_Reverse_Iterator_Impl<ACE_Reference_Pair<const KEY, VALUE> > *temp = 0; 00297 ACE_NEW_RETURN (temp, 00298 reverse_iterator_impl (this->implementation_.rbegin ()), 00299 0); 00300 return temp; 00301 } |
|
Reassociate with , storing the old key and value into the "out" parameters and . The function fails if 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 / association is created. Implements ACE_Map< KEY, VALUE >. Definition at line 206 of file Map_T.cpp.
00210 { 00211 return this->implementation_.rebind (key, 00212 value, 00213 old_key, 00214 old_value); 00215 } |
|
Reassociate with , storing the old value into the "out" parameter . The function fails if 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 / association is created. Implements ACE_Map< KEY, VALUE >. Definition at line 196 of file Map_T.cpp.
00199 { 00200 return this->implementation_.rebind (key, 00201 value, 00202 old_value); 00203 } |
|
Reassociate with . The function fails if 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 / association is created. Implements ACE_Map< KEY, VALUE >. Definition at line 188 of file Map_T.cpp.
00190 { 00191 return this->implementation_.rebind (key, 00192 value); 00193 } |
|
Recovers the original key potentially modified by the map during . Implements ACE_Map< KEY, VALUE >. Definition at line 180 of file Map_T.cpp.
00182 { 00183 return this->implementation_.recover_key (modified_key, 00184 original_key); 00185 } |
|
Implements ACE_Map< KEY, VALUE >. Definition at line 304 of file Map_T.cpp. References ACE_NEW_RETURN, and ACE_Map_Impl< KEY, VALUE, IMPLEMENTATION, ITERATOR, REVERSE_ITERATOR, ENTRY >::reverse_iterator_impl.
00305 { 00306 ACE_Reverse_Iterator_Impl<ACE_Reference_Pair<const KEY, VALUE> > *temp = 0; 00307 ACE_NEW_RETURN (temp, 00308 reverse_iterator_impl (this->implementation_.rend ()), 00309 0); 00310 return temp; 00311 } |
|
Return the total size of the map.
Implements ACE_Map< KEY, VALUE >. Definition at line 260 of file Map_T.cpp.
00261 { 00262 return this->implementation_.total_size (); 00263 } |
|
Associate with if and only if is not in the map. If is already in the map, then the parameter is overwritten with the existing value in the map. Returns 0 if a new / 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. Implements ACE_Map< KEY, VALUE >. Definition at line 218 of file Map_T.cpp.
00220 { 00221 return this->implementation_.trybind (key, 00222 value); 00223 } |
|
Remove from the map, and return the associated with . Implements ACE_Map< KEY, VALUE >. Definition at line 246 of file Map_T.cpp.
00248 { 00249 return this->implementation_.unbind (key, 00250 value); 00251 } |
|
Remove from the map.
Implements ACE_Map< KEY, VALUE >. Definition at line 240 of file Map_T.cpp.
00241 { 00242 return this->implementation_.unbind (key); 00243 } |
|
All implementation details are forwarded to this class.
|