00001 /* 00002 * AndFilter.hpp 00003 * 00004 * Copyright (c) 2000, 2010, 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_AND_FILTER_HPP 00017 #define COH_AND_FILTER_HPP 00018 00019 #include "coherence/lang.ns" 00020 00021 #include "coherence/util/Filter.hpp" 00022 #include "coherence/util/filter/AllFilter.hpp" 00023 00024 COH_OPEN_NAMESPACE3(coherence,util,filter) 00025 00026 using coherence::util::Filter; 00027 00028 00029 /** 00030 * Filter which returns the logical "and" of two other filters. 00031 * 00032 * @author djl 2008.03.23 00033 */ 00034 class COH_EXPORT AndFilter 00035 : public class_spec<AndFilter, 00036 extends<AllFilter> > 00037 { 00038 friend class factory<AndFilter>; 00039 00040 // ----- constructors --------------------------------------------------- 00041 00042 protected: 00043 /** 00044 * Default constructor (necessary for the PortableObject interface). 00045 */ 00046 AndFilter(); 00047 00048 /** 00049 * Construct an "and" filter. The result is defined as: 00050 * vFilterLeft && vFilterRight 00051 * 00052 * @param vFilterLeft the "left" filter 00053 * @param vFilterRight the "right" filter 00054 */ 00055 AndFilter(Filter::View vFilterLeft, Filter::View vFilterRight); 00056 }; 00057 00058 COH_CLOSE_NAMESPACE3 00059 00060 #endif // COH_AND_FILTER_HPP