#include <coherence/util/filter/ArrayFilter.hpp>
Inherits Object, and Comparable.
Public Types |
|
| typedef spec::Handle | Handle |
| WeightedFilter Handle definition. |
|
| typedef spec::View | View |
| WeightedFilter View definition. |
|
| typedef spec::Holder | Holder |
| WeightedFilter Holder definition. |
|
Public Member Functions |
|
| int32_t | compareTo (Object::View v) const |
| Compares this WeightedFilter with the specified WeightedFilter for order. |
|
| Filter::View | getFilter () const |
| Get the wrapped filter. |
|
| int32_t | getEffectiveness () const |
| Get the effectiveness value of the wrapped filter. |
|
Protected Member Functions |
|
| WeightedFilter (Filter::View vFilter, int32_t nEffect) | |
| Construct the WeightedFilter. |
|
Protected Attributes |
|
| MemberView< Filter > | m_vFilter |
| The wrapped filter. |
|
| int32_t | m_nEffect |
| The effectiveness of the wrapped filter. |
|
| WeightedFilter | ( | Filter::View | vFilter, | |
| int32_t | nEffect | |||
| ) | [protected] |
Construct the WeightedFilter.
| vFilter | the wrapped filter | |
| nEffect | the filter's effectiveness |
| int32_t compareTo | ( | Object::View | v | ) | const |
Compares this WeightedFilter with the specified WeightedFilter for order.
Returns a negative integer, zero, or a positive integer as this WeightedFilter's effectiveness is less than, equal to, or greater than the effectiveness of the specified WeightedFilter object.
| v | the Object to be compared |
| ClassCastException | if the specified object's type prevents it from being compared to this WeightedFilter |
| Filter::View getFilter | ( | ) | const |
| int32_t getEffectiveness | ( | ) | const |