00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016 #ifndef COH_IN_FILTER_HPP
00017 #define COH_IN_FILTER_HPP
00018
00019 #include "coherence/lang.ns"
00020
00021 #include "coherence/util/Set.hpp"
00022 #include "coherence/util/ValueExtractor.hpp"
00023 #include "coherence/util/filter/ComparisonFilter.hpp"
00024 #include "coherence/util/filter/IndexAwareFilter.hpp"
00025
00026 COH_OPEN_NAMESPACE3(coherence,util,filter)
00027
00028
00029
00030
00031
00032
00033
00034
00035 class COH_EXPORT InFilter
00036 : public class_spec<InFilter,
00037 extends<ComparisonFilter>,
00038 implements<IndexAwareFilter> >
00039 {
00040 friend class factory<InFilter>;
00041
00042
00043
00044 protected:
00045
00046
00047
00048 InFilter();
00049
00050
00051
00052
00053
00054
00055
00056 InFilter(ValueExtractor::View vExtractor, Set::View vSetValues);
00057
00058 private:
00059
00060
00061
00062 InFilter(const InFilter&);
00063
00064
00065
00066
00067 protected:
00068
00069
00070
00071 virtual bool evaluateExtracted(Object::View vExtracted) const;
00072
00073
00074
00075
00076 public:
00077
00078
00079
00080 virtual size32_t calculateEffectiveness(Map::View vMapIndexes,
00081 Set::View vSetKeys) const;
00082
00083
00084
00085
00086 virtual Filter::View applyIndex(Map::View vMapIndexes,
00087 Set::Handle hSetKeys) const;
00088 };
00089
00090 COH_CLOSE_NAMESPACE3
00091
00092 #endif // COH_IN_FILTER_HPP