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

java_util_AbstractCollection.h

00001 #ifndef xmogInc_javautilAbstractCollection
00002 #define xmogInc_javautilAbstractCollection
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 AbstractCollection;
00023             class Collection;
00024             class Iterator;
00025         }
00026     }
00027 
00028 #   include "java_util_Collection.h"
00029 
00030     // work around MFC definitions of 'new' and 'delete' that cause compilation errors
00031 #   if (XMOG_UNDEFINE_MEM_OPERATORS==1)
00032 #       if defined(new)
00033 #           undef new
00034 #       endif /* defined(new) */
00035 #       if defined(delete)
00036 #           undef delete
00037 #       endif /* defined(delete) */
00038 #   endif /* (XMOG_UNDEFINE_MEM_OPERATORS==1) */
00039 
00074     class JMS_DECLSPEC java::util::AbstractCollection : 
00075         public virtual ::java::util::Collection
00076     {
00077     public:
00078         enum 
00079         {
00080             xmogDefaultFlags = xmog_base::GLOBAL,
00081             xmogMajorVersion = 3,
00082             xmogMinorVersion = 2,
00083             xmogPatchVersion = 9,
00084             xmogBuildNumber = 2047
00085         };
00086 
00087     public:
00088 
00089         typedef ::xmog_java_array_template< ::java::util::AbstractCollection > array1D;
00090 
00091         typedef ::xmog_java_array_template< ::xmog_java_array_template< ::java::util::AbstractCollection > > array2D;
00092 
00094 
00111         AbstractCollection( );
00112 
00125         AbstractCollection( jobject _local, xmog_flags f_xflags );
00126 
00139         AbstractCollection( const ::java::util::AbstractCollection & _rhs );
00140 
00153         AbstractCollection( const ::xmog_null & _null_instance );
00154 
00165         AbstractCollection( ::xmog_java_array * _arr, jint _index );
00166 
00178         XMOG_EXPLICIT AbstractCollection( ::xmog_base * _delegate, bool _owns_delegate = true );
00179 
00193         AbstractCollection( const ::java::util::AbstractCollection & _rhs, ::xmog_localenv * p_lxenv );
00194 
00208         AbstractCollection( ::xmog_java_ref * _cra, ::xmog_java_dynamic * _dynamic, xmog_flags f_xflags = xmogDefaultFlags );
00209 
00211 
00224         AbstractCollection( ::xmog_dummy _use_java_ctor, ::xmog_localenv * p_xenv = NULL, xmog_flags f_xflags = xmogDefaultFlags );
00225 
00227 
00234         ~AbstractCollection( );
00235 
00248         java::util::AbstractCollection operator =( const java::util::AbstractCollection & _rhs );
00249 
00264         void operator delete( void * _ptr );
00265 
00266 #       if (XMOG_SUPPORTS_PLACEMENT_DELETE==1)
00282             void operator delete( void * ptr, void * loc );
00283 #       endif /* (XMOG_SUPPORTS_PLACEMENT_DELETE==1) */
00284 
00299         void * operator new( size_t _size );
00300 
00301 #       if (XMOG_SUPPORTS_PLACEMENT_NEW==1)
00319             void * operator new( size_t _size, void * _ptr );
00320 #       endif /* (XMOG_SUPPORTS_PLACEMENT_NEW==1) */
00321 
00323 
00349         virtual bool add( const ::java::lang::Object & o, ::xmog_localenv * p_xenv = NULL, xmog_flags f_xflags = xmogDefaultFlags );
00350 
00377         virtual bool addAll( const ::java::util::Collection & c, ::xmog_localenv * p_xenv = NULL, xmog_flags f_xflags = xmogDefaultFlags );
00378 
00403         virtual void clear( ::xmog_localenv * p_xenv = NULL, xmog_flags f_xflags = xmogDefaultFlags );
00404 
00424         virtual bool contains( const ::java::lang::Object & o, ::xmog_localenv * p_xenv = NULL, xmog_flags f_xflags = xmogDefaultFlags );
00425 
00446         virtual bool containsAll( const ::java::util::Collection & c, ::xmog_localenv * p_xenv = NULL, xmog_flags f_xflags = xmogDefaultFlags );
00447 
00449 
00470         static ::java::util::AbstractCollection dyna_cast( const ::xmog_base & _rhs, ::xmog_localenv * p_lxenv = NULL, xmog_flags flags = xmogDefaultFlags );
00471 
00485         static ::xmog_java_class * get_class( );
00486 
00495         static ::xmog_java_class * get_element_class( );
00496 
00498 
00513         virtual bool isEmpty( ::xmog_localenv * p_xenv = NULL, xmog_flags f_xflags = xmogDefaultFlags );
00514 
00525         virtual ::java::util::Iterator iterator( ::xmog_localenv * p_xenv = NULL, xmog_flags f_xflags = xmogDefaultFlags );
00526 
00556         virtual bool remove( const ::java::lang::Object & o, ::xmog_localenv * p_xenv = NULL, xmog_flags f_xflags = xmogDefaultFlags );
00557 
00584         virtual bool removeAll( const ::java::util::Collection & c, ::xmog_localenv * p_xenv = NULL, xmog_flags f_xflags = xmogDefaultFlags );
00585 
00614         virtual bool retainAll( const ::java::util::Collection & c, ::xmog_localenv * p_xenv = NULL, xmog_flags f_xflags = xmogDefaultFlags );
00615 
00630         virtual jint size( ::xmog_localenv * p_xenv = NULL, xmog_flags f_xflags = xmogDefaultFlags );
00631 
00654         virtual ::xmog_java_array_template< ::java::lang::Object > toArray( ::xmog_localenv * p_xenv = NULL, xmog_flags f_xflags = xmogDefaultFlags );
00655 
00694         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 );
00695 
00720         virtual ::java::lang::String toString( ::xmog_localenv * p_xenv = NULL, xmog_flags f_xflags = xmogDefaultFlags );
00721 
00723 
00742         virtual ::xmog_java_class * xmog_get_java_peer( ::xmog_localenv * p_lxenv = NULL );
00744 
00745     };
00746 #endif /* xmogInc_javautilAbstractCollection */
00747 

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