#include <coherence/util/processor/NumberIncrementor.hpp>
Inherits PropertyProcessor.
Public Types | |
| typedef spec::Handle | Handle |
| NumberIncrementor Handle definition. | |
| typedef spec::View | View |
| NumberIncrementor View definition. | |
| typedef spec::Holder | Holder |
| NumberIncrementor Holder definition. | |
Public Member Functions | |
| virtual Object::Holder | process (InvocableMap::Entry::Handle hEntry) const |
| virtual void | readExternal (PofReader::Handle hIn) |
| virtual void | writeExternal (PofWriter::Handle hOut) const |
| virtual String::View | getDescription () const |
Static Public Member Functions | |
| static Number::View | getInteger16Zero () |
| The Integer16 value of 0. | |
| static Number::View | getInteger32Zero () |
| The Integer32 value of 0. | |
| static Number::View | getInteger64Zero () |
| The Integer64 value of 0. | |
| static Number::View | getFloat32Zero () |
| The Float32 value of 0. | |
| static Number::View | getFloat64Zero () |
| The Float64 value of 0. | |
Protected Member Functions | |
| NumberIncrementor () | |
| Construct an NumberIncrementor processor. | |
| NumberIncrementor (ValueManipulator::View vManipulator, Number::View vNumInc, bool fPostIncrement) | |
| Construct an NumberIncrementor processor that will increment a property value by a specified amount, returning either the old or the new value as specified. | |
Protected Attributes | |
| FinalView< Number > | f_vNumInc |
| The number to increment by. | |
| bool | m_fPostInc |
| Whether to return the value before it was incremented ("post-increment") or after it is incremented ("pre-increment"). | |
| NumberIncrementor | ( | ValueManipulator::View | vManipulator, | |
| Number::View | vNumInc, | |||
| bool | fPostIncrement | |||
| ) | [protected] |
Construct an NumberIncrementor processor that will increment a property value by a specified amount, returning either the old or the new value as specified.
The type of the numInc parameter will dictate the type of the original and the new value.
| vManipulator | the ValueManipulator; could be NULL | |
| vNumInc | the Number representing the magnitude and sign of the increment | |
| fPostIncrement | pass true to return the value as it was before it was incremented, or pass false to return the value as it is after it is incremented |