#include <coherence/util/ConverterCollections.hpp>
Inherits ConverterCollections::ConverterMap, and ObservableMap.
Inherited by ConverterCollections::ConverterCacheMap.
Public Types | ||||||||||
typedef spec::Handle | Handle | |||||||||
ConverterObservableMap Handle definition. | ||||||||||
typedef spec::View | View | |||||||||
ConverterObservableMap View definition. | ||||||||||
typedef spec::Holder | Holder | |||||||||
ConverterObservableMap Holder definition. | ||||||||||
Public Member Functions | ||||||||||
virtual void | addKeyListener (MapListener::Handle hListener, Object::View vKey, bool fLite) | |||||||||
Add a map listener for a specific key. The listeners will receive MapEvent objects, but if fLite is passed as true, they might not contain the OldValue and NewValue properties. To unregister the MapListener, use the removeKeyListener(MapListener, Object) method.
| ||||||||||
virtual void | removeKeyListener (MapListener::Handle hListener, Object::View vKey) | |||||||||
Remove a map listener that previously signed up for events about a specific key.
| ||||||||||
virtual void | addMapListener (MapListener::Handle hListener) | |||||||||
Add a standard map listener that will receive all events (inserts, updates, deletes) that occur against the map, with the key, old-value and new-value included. This has the same result as the following call: addFilterListener(hListener, (Filter::View) NULL, false);
| ||||||||||
virtual void | removeMapListener (MapListener::Handle hListener) | |||||||||
Remove a standard map listener that previously signed up for all events. This has the same result as the following call: removeFilterListener(hListener, (Filter::View) NULL);
| ||||||||||
virtual void | addFilterListener (MapListener::Handle hListener, Filter::View vFilter, bool fLite) | |||||||||
Add a map listener that receives events based on a filter evaluation. The listeners will receive MapEvent objects, but if fLite is passed as true, they might not contain the OldValue and NewValue properties. To unregister the MapListener, use the removeFilterListener(MapListener, Filter) method.
| ||||||||||
virtual void | removeFilterListener (MapListener::Handle hListener, Filter::View vFilter) | |||||||||
Remove a map listener that previously signed up for events based on a filter evaluation.
| ||||||||||
virtual ObservableMap::Handle | getObservableMap () | |||||||||
Return the underlying ObservableMap. | ||||||||||
virtual ObservableMap::View | getObservableMap () const | |||||||||
Return the underlying ObservableMap. | ||||||||||
Protected Member Functions | ||||||||||
ConverterObservableMap (ObservableMap::Handle hMap, EntryConverter::View vConvUp, EntryConverter::View vConvDown) | ||||||||||
Create a ConverterObservableMap which delegates to the specified ObservableMap. | ||||||||||
ConverterObservableMap (ObservableMap::View vMap, EntryConverter::View vConvUp, EntryConverter::View vConvDown) | ||||||||||
Create a ConverterObservableMap which delegates to the specified ObservableMap. | ||||||||||
virtual MapListener::Handle | getConverterListener (MapListener::Handle hListener) | |||||||||
Create a converter listener for the specified listener. |
ConverterObservableMap | ( | ObservableMap::Handle | hMap, | |
EntryConverter::View | vConvUp, | |||
EntryConverter::View | vConvDown | |||
) | [protected] |
Create a ConverterObservableMap which delegates to the specified ObservableMap.
hMap | underlying ObservableMap | |
vConvUp | EntryConverter from the underlying Map | |
vConvDown | EntryConverter to the underlying Map |
ConverterObservableMap | ( | ObservableMap::View | vMap, | |
EntryConverter::View | vConvUp, | |||
EntryConverter::View | vConvDown | |||
) | [protected] |
Create a ConverterObservableMap which delegates to the specified ObservableMap.
vMap | underlying ObservableMap | |
vConvUp | EntryConverter from the underlying Map | |
vConvDown | EntryConverter to the underlying Map |
virtual MapListener::Handle getConverterListener | ( | MapListener::Handle | hListener | ) | [protected, virtual] |
Create a converter listener for the specified listener.
hListener | the underlying listener |
virtual ObservableMap::Handle getObservableMap | ( | ) | [virtual] |
virtual ObservableMap::View getObservableMap | ( | ) | const [virtual] |