C++ Client API Reference for Oracle Coherence
14c (14.1.2.0.0)

F79659-03

coherence/util/Filter.hpp

00001 /*
00002  * Copyright (c) 2000, 2020, Oracle and/or its affiliates.
00003  *
00004  * Licensed under the Universal Permissive License v 1.0 as shown at
00005  * http://oss.oracle.com/licenses/upl.
00006  */
00007 #ifndef COH_FILTER_HPP
00008 #define COH_FILTER_HPP
00009 
00010 #include "coherence/lang.ns"
00011 
00012 COH_OPEN_NAMESPACE2(coherence,util)
00013 
00014 
00015 /**
00016 * Provide for "pluggable" conditional behavior.
00017 *
00018 * @author jh  2008.02.26
00019 */
00020 class COH_EXPORT Filter
00021     : public interface_spec<Filter>
00022     {
00023     // ----- Filter interface -----------------------------------------------
00024 
00025     public:
00026         /**
00027         * Apply the test to the object.
00028         *
00029         * @param v  the object to test
00030         *
00031         * @return true if the test passes, false otherwise
00032         */
00033         virtual bool evaluate(Object::View v) const = 0;
00034     };
00035 
00036 COH_CLOSE_NAMESPACE2
00037 
00038 #endif // COH_FILTER_HPP
Copyright © 2000, 2025, Oracle and/or its affiliates. Licensed under the Universal Permissive License v 1.0 as shown at https://oss.oracle.com/licenses/upl.