Oracle Fusion Middleware C++ API Reference for Oracle Coherence
12c (12.1.2)

E26041-01

coherence/util/filter/OrFilter.hpp

00001 /*
00002 * OrFilter.hpp
00003 *
00004 * Copyright (c) 2000, 2013, Oracle and/or its affiliates. All rights reserved.
00005 *
00006 * Oracle is a registered trademarks of Oracle Corporation and/or its
00007 * affiliates.
00008 *
00009 * This software is the confidential and proprietary information of Oracle
00010 * Corporation. You shall not disclose such confidential and proprietary
00011 * information and shall use it only in accordance with the terms of the
00012 * license agreement you entered into with Oracle.
00013 *
00014 * This notice may not be removed or altered.
00015 */
00016 #ifndef COH_OR_FILTER_HPP
00017 #define COH_OR_FILTER_HPP
00018 
00019 #include "coherence/lang.ns"
00020 
00021 #include "coherence/util/Filter.hpp"
00022 #include "coherence/util/filter/AnyFilter.hpp"
00023 
00024 COH_OPEN_NAMESPACE3(coherence,util,filter)
00025 
00026 
00027 /**
00028 * Filter which returns the logical "and" of two other filters.
00029 *
00030 * @author djl  2008.03.23
00031 */
00032 class COH_EXPORT OrFilter
00033     : public class_spec<OrFilter,
00034         extends<AnyFilter> >
00035     {
00036     friend class factory<OrFilter>;
00037 
00038     // ----- constructors ---------------------------------------------------
00039 
00040     protected:
00041         /**
00042         * Default constructor (necessary for the PortableObject interface).
00043         */
00044         OrFilter();
00045 
00046         /**
00047         * Construct an OrFilter. The result is defined as:
00048         *   filterLeft || filterRight
00049         *
00050         * @param vFilterLeft   the "left" filter
00051         * @param vFilterRight  the "right" filter
00052         */
00053         OrFilter(Filter::View vFilterLeft, Filter::View vFilterRight);
00054 
00055     private:
00056         /**
00057         * Blocked copy constructor.
00058         */
00059         OrFilter(const OrFilter&);
00060     };
00061 
00062 COH_CLOSE_NAMESPACE3
00063 
00064 #endif // COH_OR_FILTER_HPP
Copyright © 2000, 2013, Oracle and/or its affiliates. All rights reserved.