00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016 #ifndef COH_MAPPED_SET_HPP
00017 #define COH_MAPPED_SET_HPP
00018
00019 #include "coherence/lang.ns"
00020
00021 #include "coherence/util/MapKeySet.hpp"
00022
00023 COH_OPEN_NAMESPACE2(coherence,util)
00024
00025
00026
00027
00028
00029 class COH_EXPORT MappedSet
00030 : public cloneable_spec<MappedSet,
00031 extends<MapKeySet> >
00032 {
00033 friend class factory<MappedSet>;
00034
00035
00036
00037 protected:
00038
00039
00040
00041
00042
00043 MappedSet(Map::Handle hMap);
00044
00045
00046
00047
00048
00049
00050 MappedSet(Map::View vMap);
00051
00052
00053
00054
00055 MappedSet(const MappedSet& that);
00056
00057
00058
00059
00060 public:
00061
00062
00063
00064 virtual bool add(Object::Holder oh);
00065
00066
00067
00068
00069 virtual bool addAll(Collection::View vCol);
00070
00071
00072
00073
00074 virtual Iterator::Handle iterator() const;
00075
00076
00077
00078
00079 virtual Muterator::Handle iterator();
00080
00081
00082
00083
00084 virtual ObjectArray::Handle toArray(
00085 ObjectArray::Handle hoa = NULL) const;
00086 };
00087
00088 COH_CLOSE_NAMESPACE2
00089
00090 #endif // COH_MAPPED_SET