AnyFilter Class Reference

#include <coherence/util/filter/AnyFilter.hpp>

Inherits ArrayFilter.

Inherited by OrFilter.

List of all members.


Detailed Description

Filter which returns the logical "or" of a filter array.

Author:
djl 2008.03.23

Public Types

typedef spec::Handle Handle
 AnyFilter Handle definition.
typedef spec::View View
 AnyFilter View definition.
typedef spec::Holder Holder
 AnyFilter Holder definition.

Public Member Functions

virtual bool evaluateEntry (Map::Entry::View vEntry) const
 Apply the test to a Map::Entry.

Parameters:
vEntry the Map::Entry to evaluate; never NULL
Returns:
true if the test passes, false otherwise

virtual bool evaluate (Object::View v) const
 Apply the test to the object.

Parameters:
v the object to test
Returns:
true if the test passes, false otherwise


Protected Member Functions

 AnyFilter ()
 Default constructor (necessary for the PortableObject interface).
 AnyFilter (ObjectArray::View vaFilter)
 Construct an "any" filter.

Constructor & Destructor Documentation

AnyFilter ( ObjectArray::View  vaFilter  )  [protected]

Construct an "any" filter.

The result is defined as: afilter[0] || afilter[1] ... || afilter[n]

Parameters:
vaFilter an array of filters


The documentation for this class was generated from the following file: Copyright (c) 2000-2008 Oracle. All rights reserved.