SortedMap.h

Go to the documentation of this file.
00001 #ifndef JAVA_UTIL_SORTEDMAP_H
00002 #define JAVA_UTIL_SORTEDMAP_H 1
00003 
00004 #ifndef JAVA_UTIL_MAP_H
00005 #include <java_util/Map.h>
00006 #endif /* JAVA_UTIL_MAP_H */
00007 #ifndef JAVA_UTIL_COMPARATOR_H
00008 #include <java_util/Comparator.h>
00009 #endif /* JAVA_UTIL_COMPARATOR_H */
00010 
00011 namespace java {
00012   namespace util {
00013 
00071     class JAVA_UTIL_SPEC SortedMap 
00072       : virtual public Map {
00073 
00074     public:
00075 
00118       static Ref<SortedMap> synchronizedSortedMap(const Ref<SortedMap>& map, const Ref<Sync>& sync = 0);
00119     
00136       static Ref<SortedMap> immutableSortedMap(const Ref<SortedMap>& map);
00137 
00145       virtual Ref<Comparator> comparator() const = 0;
00146 
00197       virtual Ref<SortedMap> subMap(const ObjectRef& fromKey, const ObjectRef& toKey) const = 0;
00198 
00234       virtual Ref<SortedMap> headMap(const ObjectRef& toKey) const = 0;
00235 
00272       virtual Ref<SortedMap> tailMap(const ObjectRef& fromKey) const = 0;
00273 
00280       virtual ObjectRef firstKey() const = 0;
00281 
00288       virtual ObjectRef lastKey() const = 0;
00289 
00290     private:
00291 
00292       REGISTER_MEMBERS;
00293 
00294     };
00295 
00296   } // namespace util
00297 } // namespace java
00298 
00299 #endif /* SORTEDMAP_H */

Generated on Fri May 16 11:54:43 2008 for CrossPlatformJavaLikeC++API by  doxygen 1.5.3