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

java_util_Dictionary.h

00001 #ifndef xmogInc_javautilDictionary
00002 #define xmogInc_javautilDictionary
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 Dictionary;
00022             class Enumeration;
00023         }
00024     }
00025 
00026 #   include "java_lang_Object.h"
00027 
00028     // work around MFC definitions of 'new' and 'delete' that cause compilation errors
00029 #   if (XMOG_UNDEFINE_MEM_OPERATORS==1)
00030 #       if defined(new)
00031 #           undef new
00032 #       endif /* defined(new) */
00033 #       if defined(delete)
00034 #           undef delete
00035 #       endif /* defined(delete) */
00036 #   endif /* (XMOG_UNDEFINE_MEM_OPERATORS==1) */
00037 
00059     class JMS_DECLSPEC java::util::Dictionary : 
00060         public virtual ::java::lang::Object
00061     {
00062     public:
00063         enum 
00064         {
00065             xmogDefaultFlags = xmog_base::GLOBAL,
00066             xmogMajorVersion = 3,
00067             xmogMinorVersion = 2,
00068             xmogPatchVersion = 9,
00069             xmogBuildNumber = 2047
00070         };
00071 
00072     public:
00073 
00074         typedef ::xmog_java_array_template< ::java::util::Dictionary > array1D;
00075 
00076         typedef ::xmog_java_array_template< ::xmog_java_array_template< ::java::util::Dictionary > > array2D;
00077 
00079 
00096         Dictionary( );
00097 
00110         Dictionary( const ::java::util::Dictionary & _rhs );
00111 
00124         Dictionary( jobject _local, xmog_flags f_xflags );
00125 
00138         Dictionary( const ::xmog_null & _null_instance );
00139 
00150         Dictionary( ::xmog_java_array * _arr, jint _index );
00151 
00165         Dictionary( const ::java::util::Dictionary & _rhs, ::xmog_localenv * p_lxenv );
00166 
00178         XMOG_EXPLICIT Dictionary( ::xmog_base * _delegate, bool _owns_delegate = true );
00179 
00193         Dictionary( ::xmog_java_ref * _cra, ::xmog_java_dynamic * _dynamic, xmog_flags f_xflags = xmogDefaultFlags );
00194 
00196 
00209         Dictionary( ::xmog_dummy _use_java_ctor, ::xmog_localenv * p_xenv = NULL, xmog_flags f_xflags = xmogDefaultFlags );
00210 
00212 
00219         ~Dictionary( );
00220 
00233         java::util::Dictionary operator =( const java::util::Dictionary & _rhs );
00234 
00249         void operator delete( void * _ptr );
00250 
00251 #       if (XMOG_SUPPORTS_PLACEMENT_DELETE==1)
00267             void operator delete( void * ptr, void * loc );
00268 #       endif /* (XMOG_SUPPORTS_PLACEMENT_DELETE==1) */
00269 
00284         void * operator new( size_t _size );
00285 
00286 #       if (XMOG_SUPPORTS_PLACEMENT_NEW==1)
00304             void * operator new( size_t _size, void * _ptr );
00305 #       endif /* (XMOG_SUPPORTS_PLACEMENT_NEW==1) */
00306 
00327         static ::java::util::Dictionary dyna_cast( const ::xmog_base & _rhs, ::xmog_localenv * p_lxenv = NULL, xmog_flags flags = xmogDefaultFlags );
00328 
00330 
00346         virtual ::java::util::Enumeration elements( ::xmog_localenv * p_xenv = NULL, xmog_flags f_xflags = xmogDefaultFlags );
00347 
00366         virtual ::java::lang::Object get( const ::java::lang::Object & key, ::xmog_localenv * p_xenv = NULL, xmog_flags f_xflags = xmogDefaultFlags );
00367 
00369 
00383         static ::xmog_java_class * get_class( );
00384 
00393         static ::xmog_java_class * get_element_class( );
00394 
00396 
00412         virtual bool isEmpty( ::xmog_localenv * p_xenv = NULL, xmog_flags f_xflags = xmogDefaultFlags );
00413 
00429         virtual ::java::util::Enumeration keys( ::xmog_localenv * p_xenv = NULL, xmog_flags f_xflags = xmogDefaultFlags );
00430 
00461         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 );
00462 
00480         virtual ::java::lang::Object remove( const ::java::lang::Object & key, ::xmog_localenv * p_xenv = NULL, xmog_flags f_xflags = xmogDefaultFlags );
00481 
00492         virtual jint size( ::xmog_localenv * p_xenv = NULL, xmog_flags f_xflags = xmogDefaultFlags );
00493 
00495 
00514         virtual ::xmog_java_class * xmog_get_java_peer( ::xmog_localenv * p_lxenv = NULL );
00516 
00517     };
00518 #endif /* xmogInc_javautilDictionary */
00519 

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