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

java_lang_Comparable.h

00001 #ifndef xmogInc_javalangComparable
00002 #define xmogInc_javalangComparable
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 #   if (XMOG_SUPPORTS_STD==1)
00014 #       include <string>
00015 #   endif /* (XMOG_SUPPORTS_STD==1) */
00016 
00017     namespace java
00018     {
00019         namespace lang
00020         {
00021             class Comparable;
00022             class Object;
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 
00105     class JMS_DECLSPEC java::lang::Comparable : 
00106         public virtual ::java::lang::Object
00107     {
00108     public:
00109         enum 
00110         {
00111             xmogDefaultFlags = xmog_base::GLOBAL,
00112             xmogMajorVersion = 3,
00113             xmogMinorVersion = 2,
00114             xmogPatchVersion = 9,
00115             xmogBuildNumber = 2047
00116         };
00117 
00118     public:
00119 
00120         typedef ::xmog_java_array_template< ::java::lang::Comparable > array1D;
00121 
00122         typedef ::xmog_java_array_template< ::xmog_java_array_template< ::java::lang::Comparable > > array2D;
00123 
00125 
00142         Comparable( );
00143 
00156         Comparable( const ::java::lang::Comparable & _rhs );
00157 
00170         Comparable( jobject _local, xmog_flags f_xflags );
00171 
00184         Comparable( const ::xmog_null & _null_instance );
00185 
00196         Comparable( ::xmog_java_array * _arr, jint _index );
00197 
00211         Comparable( const ::java::lang::Comparable & _rhs, ::xmog_localenv * p_lxenv );
00212 
00224         XMOG_EXPLICIT Comparable( ::xmog_base * _delegate, bool _owns_delegate = true );
00225 
00226 #       if (XMOG_SUPPORTS_WCHAR_T==1)
00241             Comparable( const XMOG_WCHAR _str[], jint _len = -1, ::xmog_localenv * _env = NULL );
00242 #       endif /* (XMOG_SUPPORTS_WCHAR_T==1) */
00243 
00244 #       if (XMOG_REQUIRES_UNSIGNED_SHORT_OVERLOAD==1)
00259             Comparable( const unsigned short _str[], jint _len = -1, ::xmog_localenv * _env = NULL );
00260 #       endif /* (XMOG_REQUIRES_UNSIGNED_SHORT_OVERLOAD==1) */
00261 
00278         Comparable( const char * _str, jint _len = -1, ::xmog_base * _enc = NULL, ::xmog_localenv * _env = NULL );
00279 
00293         Comparable( ::xmog_java_ref * _cra, ::xmog_java_dynamic * _dynamic, xmog_flags f_xflags = xmogDefaultFlags );
00294 
00295 #       if (XMOG_SUPPORTS_MFC==1)
00312             Comparable( const std::string & _str, jint _len = -1, ::xmog_base * _enc = NULL, ::xmog_localenv * _env = NULL );
00313 #       endif /* (XMOG_SUPPORTS_MFC==1) */
00314 
00321         ~Comparable( );
00322 
00335         java::lang::Comparable operator =( const java::lang::Comparable & _rhs );
00336 
00351         void operator delete( void * _ptr );
00352 
00353 #       if (XMOG_SUPPORTS_PLACEMENT_DELETE==1)
00369             void operator delete( void * ptr, void * loc );
00370 #       endif /* (XMOG_SUPPORTS_PLACEMENT_DELETE==1) */
00371 
00386         void * operator new( size_t _size );
00387 
00388 #       if (XMOG_SUPPORTS_PLACEMENT_NEW==1)
00406             void * operator new( size_t _size, void * _ptr );
00407 #       endif /* (XMOG_SUPPORTS_PLACEMENT_NEW==1) */
00408 
00410 
00453         virtual jint compareTo( const ::java::lang::Object & o, ::xmog_localenv * p_xenv = NULL, xmog_flags f_xflags = xmogDefaultFlags );
00454 
00456 
00477         static ::java::lang::Comparable dyna_cast( const ::xmog_base & _rhs, ::xmog_localenv * p_lxenv = NULL, xmog_flags flags = xmogDefaultFlags );
00478 
00492         static ::xmog_java_class * get_class( );
00493 
00502         static ::xmog_java_class * get_element_class( );
00503 
00522         virtual ::xmog_java_class * xmog_get_java_peer( ::xmog_localenv * p_lxenv = NULL );
00524 
00525     };
00526 #endif /* xmogInc_javalangComparable */
00527 

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