Main Page | Modules | Class Hierarchy | Class List | Directories | File List | Class Members | Related Pages

java_util_Map.h

00001 #ifndef xmogInc_javautilMap
00002 #define xmogInc_javautilMap
00003 
00004 #   if !defined(JMS_DECLSPEC )
00005 #       if defined(_MSC_VER)
00006 #           pragma message( "Relying on default definition of JMS_DECLSPEC " )
00007 #       endif /* defined(_MSC_VER) */
00008         // the following default definition works for all non-Windows platforms and for
00009         // executable projects on Windows where the sources are built directly into the binary
00010 #       define JMS_DECLSPEC 
00011 #   endif /* !defined(JMS_DECLSPEC ) */
00012 
00013     namespace java
00014     {
00015         namespace lang
00016         {
00017             class Object;
00018         }
00019         namespace util
00020         {
00021             class Collection;
00022             class Map;
00023             class Set;
00024         }
00025     }
00026 
00027 #   include "java_lang_Object.h"
00028 
00029     // work around MFC definitions of 'new' and 'delete' that cause compilation errors
00030 #   if (XMOG_UNDEFINE_MEM_OPERATORS==1)
00031 #       if defined(new)
00032 #           undef new
00033 #       endif /* defined(new) */
00034 #       if defined(delete)
00035 #           undef delete
00036 #       endif /* defined(delete) */
00037 #   endif /* (XMOG_UNDEFINE_MEM_OPERATORS==1) */
00038 
00105     class JMS_DECLSPEC java::util::Map : 
00106         public virtual ::java::lang::Object
00107     {
00108     public:
00109         enum 
00110         {
00111             xmogDefaultFlags = xmog_base::GLOBAL,
00112             xmogMajorVersion = 3,
00113             xmogMinorVersion = 2,
00114             xmogPatchVersion = 9,
00115             xmogBuildNumber = 2047
00116         };
00117 
00118     public:
00119 
00120         typedef ::xmog_java_array_template< ::java::util::Map > array1D;
00121 
00122         typedef ::xmog_java_array_template< ::xmog_java_array_template< ::java::util::Map > > array2D;
00123 
00125 
00142         Map( );
00143 
00156         Map( const ::java::util::Map & _rhs );
00157 
00170         Map( jobject _local, xmog_flags f_xflags );
00171 
00184         Map( const ::xmog_null & _null_instance );
00185 
00196         Map( ::xmog_java_array * _arr, jint _index );
00197 
00211         Map( const ::java::util::Map & _rhs, ::xmog_localenv * p_lxenv );
00212 
00224         XMOG_EXPLICIT Map( ::xmog_base * _delegate, bool _owns_delegate = true );
00225 
00239         Map( ::xmog_java_ref * _cra, ::xmog_java_dynamic * _dynamic, xmog_flags f_xflags = xmogDefaultFlags );
00240 
00247         ~Map( );
00248 
00261         java::util::Map operator =( const java::util::Map & _rhs );
00262 
00277         void operator delete( void * _ptr );
00278 
00279 #       if (XMOG_SUPPORTS_PLACEMENT_DELETE==1)
00295             void operator delete( void * ptr, void * loc );
00296 #       endif /* (XMOG_SUPPORTS_PLACEMENT_DELETE==1) */
00297 
00312         void * operator new( size_t _size );
00313 
00314 #       if (XMOG_SUPPORTS_PLACEMENT_NEW==1)
00332             void * operator new( size_t _size, void * _ptr );
00333 #       endif /* (XMOG_SUPPORTS_PLACEMENT_NEW==1) */
00334 
00336 
00347         virtual void clear( ::xmog_localenv * p_xenv = NULL, xmog_flags f_xflags = xmogDefaultFlags );
00348 
00367         virtual bool containsKey( const ::java::lang::Object & key, ::xmog_localenv * p_xenv = NULL, xmog_flags f_xflags = xmogDefaultFlags );
00368 
00388         virtual bool containsValue( const ::java::lang::Object & value, ::xmog_localenv * p_xenv = NULL, xmog_flags f_xflags = xmogDefaultFlags );
00389 
00391 
00412         static ::java::util::Map dyna_cast( const ::xmog_base & _rhs, ::xmog_localenv * p_lxenv = NULL, xmog_flags flags = xmogDefaultFlags );
00413 
00415 
00436         virtual ::java::util::Set entrySet( ::xmog_localenv * p_xenv = NULL, xmog_flags f_xflags = xmogDefaultFlags );
00437 
00457         virtual bool equals( const ::java::lang::Object & o, ::xmog_localenv * p_xenv = NULL, xmog_flags f_xflags = xmogDefaultFlags );
00458 
00483         virtual ::java::lang::Object get( const ::java::lang::Object & key, ::xmog_localenv * p_xenv = NULL, xmog_flags f_xflags = xmogDefaultFlags );
00484 
00486 
00500         static ::xmog_java_class * get_class( );
00501 
00510         static ::xmog_java_class * get_element_class( );
00511 
00513 
00531         virtual jint hashCode( ::xmog_localenv * p_xenv = NULL, xmog_flags f_xflags = xmogDefaultFlags );
00532 
00543         virtual bool isEmpty( ::xmog_localenv * p_xenv = NULL, xmog_flags f_xflags = xmogDefaultFlags );
00544 
00564         virtual ::java::util::Set keySet( ::xmog_localenv * p_xenv = NULL, xmog_flags f_xflags = xmogDefaultFlags );
00565 
00589         virtual ::java::lang::Object put( const ::java::lang::Object & key, const ::java::lang::Object & value, ::xmog_localenv * p_xenv = NULL, xmog_flags f_xflags = xmogDefaultFlags );
00590 
00609         virtual void putAll( const ::java::util::Map & t, ::xmog_localenv * p_xenv = NULL, xmog_flags f_xflags = xmogDefaultFlags );
00610 
00636         virtual ::java::lang::Object remove( const ::java::lang::Object & key, ::xmog_localenv * p_xenv = NULL, xmog_flags f_xflags = xmogDefaultFlags );
00637 
00652         virtual jint size( ::xmog_localenv * p_xenv = NULL, xmog_flags f_xflags = xmogDefaultFlags );
00653 
00674         virtual ::java::util::Collection values( ::xmog_localenv * p_xenv = NULL, xmog_flags f_xflags = xmogDefaultFlags );
00675 
00677 
00696         virtual ::xmog_java_class * xmog_get_java_peer( ::xmog_localenv * p_lxenv = NULL );
00698 
00699     };
00700 #endif /* xmogInc_javautilMap */
00701 

Generated on Fri Jun 16 10:18:57 2006 for JMS Courier for C++ by  doxygen 1.4.1