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

java_util_HashSet.h

00001 #ifndef xmogInc_javautilHashSet
00002 #define xmogInc_javautilHashSet
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             class String;
00019         }
00020         namespace util
00021         {
00022             class Collection;
00023             class HashSet;
00024             class Iterator;
00025         }
00026     }
00027 
00028 #   include "java_io_Serializable.h"
00029 #   include "java_util_AbstractSet.h"
00030 #   include "java_lang_Cloneable.h"
00031 
00032     // work around MFC definitions of 'new' and 'delete' that cause compilation errors
00033 #   if (XMOG_UNDEFINE_MEM_OPERATORS==1)
00034 #       if defined(new)
00035 #           undef new
00036 #       endif /* defined(new) */
00037 #       if defined(delete)
00038 #           undef delete
00039 #       endif /* defined(delete) */
00040 #   endif /* (XMOG_UNDEFINE_MEM_OPERATORS==1) */
00041 
00098     class JMS_DECLSPEC java::util::HashSet : 
00099         public ::java::util::AbstractSet,
00100         public virtual ::java::lang::Cloneable,
00101         public virtual ::java::io::Serializable
00102     {
00103     public:
00104         enum 
00105         {
00106             xmogDefaultFlags = xmog_base::GLOBAL,
00107             xmogMajorVersion = 3,
00108             xmogMinorVersion = 2,
00109             xmogPatchVersion = 9,
00110             xmogBuildNumber = 2047
00111         };
00112 
00113     public:
00114 
00115         typedef ::xmog_java_array_template< ::java::util::HashSet > array1D;
00116 
00117         typedef ::xmog_java_array_template< ::xmog_java_array_template< ::java::util::HashSet > > array2D;
00118 
00120 
00137         HashSet( );
00138 
00151         HashSet( const ::java::util::HashSet & _rhs );
00152 
00165         HashSet( jobject _local, xmog_flags f_xflags );
00166 
00179         HashSet( const ::xmog_null & _null_instance );
00180 
00191         HashSet( ::xmog_java_array * _arr, jint _index );
00192 
00206         HashSet( const ::java::util::HashSet & _rhs, ::xmog_localenv * p_lxenv );
00207 
00219         XMOG_EXPLICIT HashSet( ::xmog_base * _delegate, bool _owns_delegate = true );
00220 
00234         HashSet( ::xmog_java_ref * _cra, ::xmog_java_dynamic * _dynamic, xmog_flags f_xflags = xmogDefaultFlags );
00235 
00237 
00248         HashSet( jint initialCapacity, ::xmog_localenv * p_xenv = NULL, xmog_flags f_xflags = xmogDefaultFlags );
00249 
00263         HashSet( const ::java::util::Collection & c, ::xmog_localenv * p_xenv = NULL, xmog_flags f_xflags = xmogDefaultFlags );
00264 
00275         HashSet( ::xmog_dummy _use_java_ctor, ::xmog_localenv * p_xenv = NULL, xmog_flags f_xflags = xmogDefaultFlags );
00276 
00287         HashSet( jint initialCapacity, jfloat loadFactor, ::xmog_localenv * p_xenv = NULL, xmog_flags f_xflags = xmogDefaultFlags );
00288 
00305         HashSet( jint initialCapacity, jfloat loadFactor, bool dummy, ::xmog_localenv * p_xenv = NULL, xmog_flags f_xflags = xmogDefaultFlags );
00306 
00308 
00315         ~HashSet( );
00316 
00329         java::util::HashSet operator =( const java::util::HashSet & _rhs );
00330 
00345         void operator delete( void * _ptr );
00346 
00347 #       if (XMOG_SUPPORTS_PLACEMENT_DELETE==1)
00363             void operator delete( void * ptr, void * loc );
00364 #       endif /* (XMOG_SUPPORTS_PLACEMENT_DELETE==1) */
00365 
00380         void * operator new( size_t _size );
00381 
00382 #       if (XMOG_SUPPORTS_PLACEMENT_NEW==1)
00400             void * operator new( size_t _size, void * _ptr );
00401 #       endif /* (XMOG_SUPPORTS_PLACEMENT_NEW==1) */
00402 
00404 
00418         virtual bool add( const ::java::lang::Object & o, ::xmog_localenv * p_xenv = NULL, xmog_flags f_xflags = xmogDefaultFlags );
00419 
00430         virtual void clear( ::xmog_localenv * p_xenv = NULL, xmog_flags f_xflags = xmogDefaultFlags );
00431 
00443         virtual ::java::lang::Object clone( ::xmog_localenv * p_xenv = NULL, xmog_flags f_xflags = xmogDefaultFlags );
00444 
00456         virtual bool contains( const ::java::lang::Object & o, ::xmog_localenv * p_xenv = NULL, xmog_flags f_xflags = xmogDefaultFlags );
00457 
00459 
00480         static ::java::util::HashSet dyna_cast( const ::xmog_base & _rhs, ::xmog_localenv * p_lxenv = NULL, xmog_flags flags = xmogDefaultFlags );
00481 
00483 
00492         virtual bool equals( const ::java::lang::Object & obj, ::xmog_localenv * p_xenv = NULL, xmog_flags f_xflags = xmogDefaultFlags );
00493 
00495 
00509         static ::xmog_java_class * get_class( );
00510 
00519         static ::xmog_java_class * get_element_class( );
00520 
00522 
00530         virtual jint hashCode( ::xmog_localenv * p_xenv = NULL, xmog_flags f_xflags = xmogDefaultFlags );
00531 
00542         virtual bool isEmpty( ::xmog_localenv * p_xenv = NULL, xmog_flags f_xflags = xmogDefaultFlags );
00543 
00557         virtual ::java::util::Iterator iterator( ::xmog_localenv * p_xenv = NULL, xmog_flags f_xflags = xmogDefaultFlags );
00558 
00570         virtual bool remove( const ::java::lang::Object & o, ::xmog_localenv * p_xenv = NULL, xmog_flags f_xflags = xmogDefaultFlags );
00571 
00582         virtual jint size( ::xmog_localenv * p_xenv = NULL, xmog_flags f_xflags = xmogDefaultFlags );
00583 
00591         virtual ::java::lang::String toString( ::xmog_localenv * p_xenv = NULL, xmog_flags f_xflags = xmogDefaultFlags );
00592 
00594 
00613         virtual ::xmog_java_class * xmog_get_java_peer( ::xmog_localenv * p_lxenv = NULL );
00615 
00616     };
00617 #endif /* xmogInc_javautilHashSet */
00618 

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