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

java_util_Set.h

00001 #ifndef xmogInc_javautilSet
00002 #define xmogInc_javautilSet
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 Iterator;
00023             class Set;
00024         }
00025     }
00026 
00027 #   include "java_util_Collection.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 
00088     class JMS_DECLSPEC java::util::Set : 
00089         public virtual ::java::util::Collection
00090     {
00091     public:
00092         enum 
00093         {
00094             xmogDefaultFlags = xmog_base::GLOBAL,
00095             xmogMajorVersion = 3,
00096             xmogMinorVersion = 2,
00097             xmogPatchVersion = 9,
00098             xmogBuildNumber = 2047
00099         };
00100 
00101     public:
00102 
00103         typedef ::xmog_java_array_template< ::java::util::Set > array1D;
00104 
00105         typedef ::xmog_java_array_template< ::xmog_java_array_template< ::java::util::Set > > array2D;
00106 
00108 
00125         Set( );
00126 
00139         Set( const ::java::util::Set & _rhs );
00140 
00153         Set( jobject _local, xmog_flags f_xflags );
00154 
00167         Set( const ::xmog_null & _null_instance );
00168 
00179         Set( ::xmog_java_array * _arr, jint _index );
00180 
00194         Set( const ::java::util::Set & _rhs, ::xmog_localenv * p_lxenv );
00195 
00207         XMOG_EXPLICIT Set( ::xmog_base * _delegate, bool _owns_delegate = true );
00208 
00222         Set( ::xmog_java_ref * _cra, ::xmog_java_dynamic * _dynamic, xmog_flags f_xflags = xmogDefaultFlags );
00223 
00230         ~Set( );
00231 
00244         java::util::Set operator =( const java::util::Set & _rhs );
00245 
00260         void operator delete( void * _ptr );
00261 
00262 #       if (XMOG_SUPPORTS_PLACEMENT_DELETE==1)
00278             void operator delete( void * ptr, void * loc );
00279 #       endif /* (XMOG_SUPPORTS_PLACEMENT_DELETE==1) */
00280 
00295         void * operator new( size_t _size );
00296 
00297 #       if (XMOG_SUPPORTS_PLACEMENT_NEW==1)
00315             void * operator new( size_t _size, void * _ptr );
00316 #       endif /* (XMOG_SUPPORTS_PLACEMENT_NEW==1) */
00317 
00319 
00348         virtual bool add( const ::java::lang::Object & o, ::xmog_localenv * p_xenv = NULL, xmog_flags f_xflags = xmogDefaultFlags );
00349 
00368         virtual bool addAll( const ::java::util::Collection & c, ::xmog_localenv * p_xenv = NULL, xmog_flags f_xflags = xmogDefaultFlags );
00369 
00384         virtual void clear( ::xmog_localenv * p_xenv = NULL, xmog_flags f_xflags = xmogDefaultFlags );
00385 
00402         virtual bool contains( const ::java::lang::Object & o, ::xmog_localenv * p_xenv = NULL, xmog_flags f_xflags = xmogDefaultFlags );
00403 
00420         virtual bool containsAll( const ::java::util::Collection & c, ::xmog_localenv * p_xenv = NULL, xmog_flags f_xflags = xmogDefaultFlags );
00421 
00423 
00444         static ::java::util::Set dyna_cast( const ::xmog_base & _rhs, ::xmog_localenv * p_lxenv = NULL, xmog_flags flags = xmogDefaultFlags );
00445 
00447 
00467         virtual bool equals( const ::java::lang::Object & o, ::xmog_localenv * p_xenv = NULL, xmog_flags f_xflags = xmogDefaultFlags );
00468 
00470 
00484         static ::xmog_java_class * get_class( );
00485 
00494         static ::xmog_java_class * get_element_class( );
00495 
00497 
00516         virtual jint hashCode( ::xmog_localenv * p_xenv = NULL, xmog_flags f_xflags = xmogDefaultFlags );
00517 
00528         virtual bool isEmpty( ::xmog_localenv * p_xenv = NULL, xmog_flags f_xflags = xmogDefaultFlags );
00529 
00544         virtual ::java::util::Iterator iterator( ::xmog_localenv * p_xenv = NULL, xmog_flags f_xflags = xmogDefaultFlags );
00545 
00565         virtual bool remove( const ::java::lang::Object & o, ::xmog_localenv * p_xenv = NULL, xmog_flags f_xflags = xmogDefaultFlags );
00566 
00585         virtual bool removeAll( const ::java::util::Collection & c, ::xmog_localenv * p_xenv = NULL, xmog_flags f_xflags = xmogDefaultFlags );
00586 
00606         virtual bool retainAll( const ::java::util::Collection & c, ::xmog_localenv * p_xenv = NULL, xmog_flags f_xflags = xmogDefaultFlags );
00607 
00622         virtual jint size( ::xmog_localenv * p_xenv = NULL, xmog_flags f_xflags = xmogDefaultFlags );
00623 
00637         virtual ::xmog_java_array_template< ::java::lang::Object > toArray( ::xmog_localenv * p_xenv = NULL, xmog_flags f_xflags = xmogDefaultFlags );
00638 
00657         virtual ::xmog_java_array_template< ::java::lang::Object > toArray( const ::xmog_java_array_template< ::java::lang::Object > & a, ::xmog_localenv * p_xenv = NULL, xmog_flags f_xflags = xmogDefaultFlags );
00658 
00660 
00679         virtual ::xmog_java_class * xmog_get_java_peer( ::xmog_localenv * p_lxenv = NULL );
00681 
00682     };
00683 #endif /* xmogInc_javautilSet */
00684 

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