#include <coherence/util/processor/ConditionalPutAll.hpp>
Inherits AbstractProcessor.
Public Types | |
| typedef spec::Handle | Handle |
| ConditionalPutAll Handle definition. | |
| typedef spec::View | View |
| ConditionalPutAll View definition. | |
| typedef spec::Holder | Holder |
| ConditionalPutAll Holder definition. | |
Public Member Functions | |
| virtual Object::Holder | process (InvocableMap::Entry::Handle hEntry) const |
| virtual Map::View | processAll (Set::View vsetEntries) const |
| virtual void | readExternal (PofReader::Handle hIn) |
| virtual void | writeExternal (PofWriter::Handle hOut) const |
| virtual bool | equals (Object::View v) const |
| virtual size32_t | hashCode () const |
Protected Member Functions | |
| ConditionalPutAll () | |
| Construct a ConditionalPutAll. | |
| ConditionalPutAll (Filter::View vFilter, Map::View vMap) | |
| Construct a ConditionalPutAll processor that updates an entry with a new value if and only if the filter applied to the entry evaluates to true. | |
Protected Attributes | |
| FinalView< Filter > | f_vFilter |
| The underlying filter. | |
| FinalView< Map > | f_vMap |
| Specifies the map of new values. | |
| ConditionalPutAll | ( | Filter::View | vFilter, | |
| Map::View | vMap | |||
| ) | [protected] |
Construct a ConditionalPutAll processor that updates an entry with a new value if and only if the filter applied to the entry evaluates to true.
The new value is extracted from the specified map based on the entry's key.
| vFilter | the filter to evaluate all supplied entries | |
| vMap | a map of values to update entries with |