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

java_util_Collection.h

00001 #ifndef xmogInc_javautilCollection
00002 #define xmogInc_javautilCollection
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         }
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 
00098     class JMS_DECLSPEC java::util::Collection : 
00099         public virtual ::java::lang::Object
00100     {
00101     public:
00102         enum 
00103         {
00104             xmogDefaultFlags = xmog_base::GLOBAL,
00105             xmogMajorVersion = 3,
00106             xmogMinorVersion = 2,
00107             xmogPatchVersion = 9,
00108             xmogBuildNumber = 2047
00109         };
00110 
00111     public:
00112 
00113         typedef ::xmog_java_array_template< ::java::util::Collection > array1D;
00114 
00115         typedef ::xmog_java_array_template< ::xmog_java_array_template< ::java::util::Collection > > array2D;
00116 
00118 
00135         Collection( );
00136 
00149         Collection( const ::java::util::Collection & _rhs );
00150 
00163         Collection( jobject _local, xmog_flags f_xflags );
00164 
00177         Collection( const ::xmog_null & _null_instance );
00178 
00189         Collection( ::xmog_java_array * _arr, jint _index );
00190 
00204         Collection( const ::java::util::Collection & _rhs, ::xmog_localenv * p_lxenv );
00205 
00217         XMOG_EXPLICIT Collection( ::xmog_base * _delegate, bool _owns_delegate = true );
00218 
00232         Collection( ::xmog_java_ref * _cra, ::xmog_java_dynamic * _dynamic, xmog_flags f_xflags = xmogDefaultFlags );
00233 
00240         ~Collection( );
00241 
00254         java::util::Collection operator =( const java::util::Collection & _rhs );
00255 
00270         void operator delete( void * _ptr );
00271 
00272 #       if (XMOG_SUPPORTS_PLACEMENT_DELETE==1)
00288             void operator delete( void * ptr, void * loc );
00289 #       endif /* (XMOG_SUPPORTS_PLACEMENT_DELETE==1) */
00290 
00305         void * operator new( size_t _size );
00306 
00307 #       if (XMOG_SUPPORTS_PLACEMENT_NEW==1)
00325             void * operator new( size_t _size, void * _ptr );
00326 #       endif /* (XMOG_SUPPORTS_PLACEMENT_NEW==1) */
00327 
00329 
00360         virtual bool add( const ::java::lang::Object & o, ::xmog_localenv * p_xenv = NULL, xmog_flags f_xflags = xmogDefaultFlags );
00361 
00381         virtual bool addAll( const ::java::util::Collection & c, ::xmog_localenv * p_xenv = NULL, xmog_flags f_xflags = xmogDefaultFlags );
00382 
00397         virtual void clear( ::xmog_localenv * p_xenv = NULL, xmog_flags f_xflags = xmogDefaultFlags );
00398 
00416         virtual bool contains( const ::java::lang::Object & o, ::xmog_localenv * p_xenv = NULL, xmog_flags f_xflags = xmogDefaultFlags );
00417 
00431         virtual bool containsAll( const ::java::util::Collection & c, ::xmog_localenv * p_xenv = NULL, xmog_flags f_xflags = xmogDefaultFlags );
00432 
00434 
00455         static ::java::util::Collection dyna_cast( const ::xmog_base & _rhs, ::xmog_localenv * p_lxenv = NULL, xmog_flags flags = xmogDefaultFlags );
00456 
00458 
00495         virtual bool equals( const ::java::lang::Object & o, ::xmog_localenv * p_xenv = NULL, xmog_flags f_xflags = xmogDefaultFlags );
00496 
00498 
00512         static ::xmog_java_class * get_class( );
00513 
00522         static ::xmog_java_class * get_element_class( );
00523 
00525 
00545         virtual jint hashCode( ::xmog_localenv * p_xenv = NULL, xmog_flags f_xflags = xmogDefaultFlags );
00546 
00557         virtual bool isEmpty( ::xmog_localenv * p_xenv = NULL, xmog_flags f_xflags = xmogDefaultFlags );
00558 
00574         virtual ::java::util::Iterator iterator( ::xmog_localenv * p_xenv = NULL, xmog_flags f_xflags = xmogDefaultFlags );
00575 
00596         virtual bool remove( const ::java::lang::Object & o, ::xmog_localenv * p_xenv = NULL, xmog_flags f_xflags = xmogDefaultFlags );
00597 
00615         virtual bool removeAll( const ::java::util::Collection & c, ::xmog_localenv * p_xenv = NULL, xmog_flags f_xflags = xmogDefaultFlags );
00616 
00634         virtual bool retainAll( const ::java::util::Collection & c, ::xmog_localenv * p_xenv = NULL, xmog_flags f_xflags = xmogDefaultFlags );
00635 
00650         virtual jint size( ::xmog_localenv * p_xenv = NULL, xmog_flags f_xflags = xmogDefaultFlags );
00651 
00675         virtual ::xmog_java_array_template< ::java::lang::Object > toArray( ::xmog_localenv * p_xenv = NULL, xmog_flags f_xflags = xmogDefaultFlags );
00676 
00723         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 );
00724 
00726 
00745         virtual ::xmog_java_class * xmog_get_java_peer( ::xmog_localenv * p_lxenv = NULL );
00747 
00748     };
00749 #endif /* xmogInc_javautilCollection */
00750 

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