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

java_util_Vector.h

00001 #ifndef xmogInc_javautilVector
00002 #define xmogInc_javautilVector
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 Enumeration;
00024             class List;
00025             class Vector;
00026         }
00027     }
00028 
00029 #   include "java_util_RandomAccess.h"
00030 #   include "java_util_AbstractList.h"
00031 #   include "java_io_Serializable.h"
00032 #   include "java_lang_Cloneable.h"
00033 
00034     // work around MFC definitions of 'new' and 'delete' that cause compilation errors
00035 #   if (XMOG_UNDEFINE_MEM_OPERATORS==1)
00036 #       if defined(new)
00037 #           undef new
00038 #       endif /* defined(new) */
00039 #       if defined(delete)
00040 #           undef delete
00041 #       endif /* defined(delete) */
00042 #   endif /* (XMOG_UNDEFINE_MEM_OPERATORS==1) */
00043 
00095     class JMS_DECLSPEC java::util::Vector : 
00096         public ::java::util::AbstractList,
00097         public virtual ::java::util::RandomAccess,
00098         public virtual ::java::lang::Cloneable,
00099         public virtual ::java::io::Serializable
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::Vector > array1D;
00114 
00115         typedef ::xmog_java_array_template< ::xmog_java_array_template< ::java::util::Vector > > array2D;
00116 
00118 
00135         Vector( );
00136 
00149         Vector( const ::java::util::Vector & _rhs );
00150 
00163         Vector( jobject _local, xmog_flags f_xflags );
00164 
00177         Vector( const ::xmog_null & _null_instance );
00178 
00189         Vector( ::xmog_java_array * _arr, jint _index );
00190 
00204         Vector( const ::java::util::Vector & _rhs, ::xmog_localenv * p_lxenv );
00205 
00217         XMOG_EXPLICIT Vector( ::xmog_base * _delegate, bool _owns_delegate = true );
00218 
00232         Vector( ::xmog_java_ref * _cra, ::xmog_java_dynamic * _dynamic, xmog_flags f_xflags = xmogDefaultFlags );
00233 
00235 
00245         Vector( jint initialCapacity, ::xmog_localenv * p_xenv = NULL, xmog_flags f_xflags = xmogDefaultFlags );
00246 
00258         Vector( const ::java::util::Collection & c, ::xmog_localenv * p_xenv = NULL, xmog_flags f_xflags = xmogDefaultFlags );
00259 
00271         Vector( ::xmog_dummy _use_java_ctor, ::xmog_localenv * p_xenv = NULL, xmog_flags f_xflags = xmogDefaultFlags );
00272 
00284         Vector( jint initialCapacity, jint capacityIncrement, ::xmog_localenv * p_xenv = NULL, xmog_flags f_xflags = xmogDefaultFlags );
00285 
00287 
00294         ~Vector( );
00295 
00308         java::util::Vector operator =( const java::util::Vector & _rhs );
00309 
00324         void operator delete( void * _ptr );
00325 
00326 #       if (XMOG_SUPPORTS_PLACEMENT_DELETE==1)
00342             void operator delete( void * ptr, void * loc );
00343 #       endif /* (XMOG_SUPPORTS_PLACEMENT_DELETE==1) */
00344 
00359         void * operator new( size_t _size );
00360 
00361 #       if (XMOG_SUPPORTS_PLACEMENT_NEW==1)
00379             void * operator new( size_t _size, void * _ptr );
00380 #       endif /* (XMOG_SUPPORTS_PLACEMENT_NEW==1) */
00381 
00383 
00395         virtual bool add( const ::java::lang::Object & o, ::xmog_localenv * p_xenv = NULL, xmog_flags f_xflags = xmogDefaultFlags );
00396 
00414         virtual void add( jint index, const ::java::lang::Object & element, ::xmog_localenv * p_xenv = NULL, xmog_flags f_xflags = xmogDefaultFlags );
00415 
00434         virtual bool addAll( const ::java::util::Collection & c, ::xmog_localenv * p_xenv = NULL, xmog_flags f_xflags = xmogDefaultFlags );
00435 
00456         virtual bool addAll( jint index, const ::java::util::Collection & c, ::xmog_localenv * p_xenv = NULL, xmog_flags f_xflags = xmogDefaultFlags );
00457 
00476         virtual void addElement( const ::java::lang::Object & obj, ::xmog_localenv * p_xenv = NULL, xmog_flags f_xflags = xmogDefaultFlags );
00477 
00490         virtual jint capacity( ::xmog_localenv * p_xenv = NULL, xmog_flags f_xflags = xmogDefaultFlags );
00491 
00505         virtual void clear( ::xmog_localenv * p_xenv = NULL, xmog_flags f_xflags = xmogDefaultFlags );
00506 
00521         virtual ::java::lang::Object clone( ::xmog_localenv * p_xenv = NULL, xmog_flags f_xflags = xmogDefaultFlags );
00522 
00536         virtual bool contains( const ::java::lang::Object & elem, ::xmog_localenv * p_xenv = NULL, xmog_flags f_xflags = xmogDefaultFlags );
00537 
00552         virtual bool containsAll( const ::java::util::Collection & c, ::xmog_localenv * p_xenv = NULL, xmog_flags f_xflags = xmogDefaultFlags );
00553 
00571         virtual void copyInto( const ::xmog_java_array_template< ::java::lang::Object > & anArray, ::xmog_localenv * p_xenv = NULL, xmog_flags f_xflags = xmogDefaultFlags );
00572 
00574 
00595         static ::java::util::Vector dyna_cast( const ::xmog_base & _rhs, ::xmog_localenv * p_lxenv = NULL, xmog_flags flags = xmogDefaultFlags );
00596 
00598 
00615         virtual ::java::lang::Object elementAt( jint index, ::xmog_localenv * p_xenv = NULL, xmog_flags f_xflags = xmogDefaultFlags );
00616 
00632         virtual ::java::util::Enumeration elements( ::xmog_localenv * p_xenv = NULL, xmog_flags f_xflags = xmogDefaultFlags );
00633 
00659         virtual void ensureCapacity( jint minCapacity, ::xmog_localenv * p_xenv = NULL, xmog_flags f_xflags = xmogDefaultFlags );
00660 
00680         virtual bool equals( const ::java::lang::Object & o, ::xmog_localenv * p_xenv = NULL, xmog_flags f_xflags = xmogDefaultFlags );
00681 
00693         virtual ::java::lang::Object firstElement( ::xmog_localenv * p_xenv = NULL, xmog_flags f_xflags = xmogDefaultFlags );
00694 
00706         virtual ::java::lang::Object get( jint index, ::xmog_localenv * p_xenv = NULL, xmog_flags f_xflags = xmogDefaultFlags );
00707 
00709 
00723         static ::xmog_java_class * get_class( );
00724 
00733         static ::xmog_java_class * get_element_class( );
00734 
00736 
00747         virtual jint hashCode( ::xmog_localenv * p_xenv = NULL, xmog_flags f_xflags = xmogDefaultFlags );
00748 
00764         virtual jint indexOf( const ::java::lang::Object & elem, ::xmog_localenv * p_xenv = NULL, xmog_flags f_xflags = xmogDefaultFlags );
00765 
00786         virtual jint indexOf( const ::java::lang::Object & elem, jint index, ::xmog_localenv * p_xenv = NULL, xmog_flags f_xflags = xmogDefaultFlags );
00787 
00815         virtual void insertElementAt( const ::java::lang::Object & obj, jint index, ::xmog_localenv * p_xenv = NULL, xmog_flags f_xflags = xmogDefaultFlags );
00816 
00829         virtual bool isEmpty( ::xmog_localenv * p_xenv = NULL, xmog_flags f_xflags = xmogDefaultFlags );
00830 
00842         virtual ::java::lang::Object lastElement( ::xmog_localenv * p_xenv = NULL, xmog_flags f_xflags = xmogDefaultFlags );
00843 
00859         virtual jint lastIndexOf( const ::java::lang::Object & elem, ::xmog_localenv * p_xenv = NULL, xmog_flags f_xflags = xmogDefaultFlags );
00860 
00879         virtual jint lastIndexOf( const ::java::lang::Object & elem, jint index, ::xmog_localenv * p_xenv = NULL, xmog_flags f_xflags = xmogDefaultFlags );
00880 
00896         virtual ::java::lang::Object remove( jint index, ::xmog_localenv * p_xenv = NULL, xmog_flags f_xflags = xmogDefaultFlags );
00897 
00915         virtual bool remove( const ::java::lang::Object & o, ::xmog_localenv * p_xenv = NULL, xmog_flags f_xflags = xmogDefaultFlags );
00916 
00929         virtual bool removeAll( const ::java::util::Collection & c, ::xmog_localenv * p_xenv = NULL, xmog_flags f_xflags = xmogDefaultFlags );
00930 
00947         virtual void removeAllElements( ::xmog_localenv * p_xenv = NULL, xmog_flags f_xflags = xmogDefaultFlags );
00948 
00970         virtual bool removeElement( const ::java::lang::Object & obj, ::xmog_localenv * p_xenv = NULL, xmog_flags f_xflags = xmogDefaultFlags );
00971 
00996         virtual void removeElementAt( jint index, ::xmog_localenv * p_xenv = NULL, xmog_flags f_xflags = xmogDefaultFlags );
00997 
01014         virtual bool retainAll( const ::java::util::Collection & c, ::xmog_localenv * p_xenv = NULL, xmog_flags f_xflags = xmogDefaultFlags );
01015 
01029         virtual ::java::lang::Object set( jint index, const ::java::lang::Object & element, ::xmog_localenv * p_xenv = NULL, xmog_flags f_xflags = xmogDefaultFlags );
01030 
01056         virtual void setElementAt( const ::java::lang::Object & obj, jint index, ::xmog_localenv * p_xenv = NULL, xmog_flags f_xflags = xmogDefaultFlags );
01057 
01074         virtual void setSize( jint newSize, ::xmog_localenv * p_xenv = NULL, xmog_flags f_xflags = xmogDefaultFlags );
01075 
01086         virtual jint size( ::xmog_localenv * p_xenv = NULL, xmog_flags f_xflags = xmogDefaultFlags );
01087 
01125         virtual ::java::util::List subList( jint fromIndex, jint toIndex, ::xmog_localenv * p_xenv = NULL, xmog_flags f_xflags = xmogDefaultFlags );
01126 
01138         virtual ::xmog_java_array_template< ::java::lang::Object > toArray( ::xmog_localenv * p_xenv = NULL, xmog_flags f_xflags = xmogDefaultFlags );
01139 
01166         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 );
01167 
01179         virtual ::java::lang::String toString( ::xmog_localenv * p_xenv = NULL, xmog_flags f_xflags = xmogDefaultFlags );
01180 
01198         virtual void trimToSize( ::xmog_localenv * p_xenv = NULL, xmog_flags f_xflags = xmogDefaultFlags );
01199 
01201 
01220         virtual ::xmog_java_class * xmog_get_java_peer( ::xmog_localenv * p_lxenv = NULL );
01222 
01223     };
01224 #endif /* xmogInc_javautilVector */
01225 

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