00001
00002
00003
00004
00005
00006
00007 #ifndef COH_INVERSE_COMPARATOR_HPP
00008 #define COH_INVERSE_COMPARATOR_HPP
00009
00010 #include "coherence/lang.ns"
00011
00012 #include "coherence/io/pof/PofReader.hpp"
00013 #include "coherence/io/pof/PofWriter.hpp"
00014 #include "coherence/io/pof/PortableObject.hpp"
00015 #include "coherence/util/Comparator.hpp"
00016 #include "coherence/util/comparator/SafeComparator.hpp"
00017 #include "coherence/util/QueryMap.hpp"
00018 #include "coherence/util/comparator/QueryMapComparator.hpp"
00019
00020 COH_OPEN_NAMESPACE3(coherence,util,comparator)
00021
00022 using coherence::io::pof::PofReader;
00023 using coherence::io::pof::PofWriter;
00024 using coherence::io::pof::PortableObject;
00025 using coherence::util::comparator::SafeComparator;
00026
00027
00028
00029
00030
00031
00032 class COH_EXPORT InverseComparator
00033 : public class_spec<InverseComparator,
00034 extends<SafeComparator>,
00035 implements<QueryMapComparator> >
00036 {
00037 friend class factory<InverseComparator>;
00038
00039
00040
00041 protected:
00042
00043
00044
00045 InverseComparator();
00046
00047
00048
00049
00050
00051
00052
00053 InverseComparator(Comparator::View vComparator);
00054
00055 private:
00056
00057
00058
00059 InverseComparator(const InverseComparator&);
00060
00061
00062
00063
00064 public:
00065
00066
00067
00068
00069
00070
00071
00072
00073
00074
00075
00076
00077
00078 virtual int32_t compare(Object::View vO1, Object::View vO2) const;
00079
00080
00081
00082 public:
00083
00084
00085
00086
00087 virtual int32_t compareEntries(QueryMap::Entry::View vEntry1,
00088 QueryMap::Entry::View vEntry2) const;
00089
00090
00091
00092
00093 public:
00094
00095
00096
00097 virtual bool equals(Object::View v) const;
00098
00099
00100
00101
00102 public:
00103
00104
00105
00106 static InverseComparator::Handle getInstance();
00107 };
00108
00109 COH_CLOSE_NAMESPACE3
00110
00111 #endif // COH_INVERSE_COMPARATOR_HPP