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

java_lang_Float.h

00001 #ifndef xmogInc_javalangFloat
00002 #define xmogInc_javalangFloat
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 Class;
00018             class Float;
00019             class Object;
00020             class String;
00021         }
00022     }
00023 
00024 #   include "java_lang_Number.h"
00025 #   include "java_lang_Comparable.h"
00026 
00027     // work around MFC definitions of 'new' and 'delete' that cause compilation errors
00028 #   if (XMOG_UNDEFINE_MEM_OPERATORS==1)
00029 #       if defined(new)
00030 #           undef new
00031 #       endif /* defined(new) */
00032 #       if defined(delete)
00033 #           undef delete
00034 #       endif /* defined(delete) */
00035 #   endif /* (XMOG_UNDEFINE_MEM_OPERATORS==1) */
00036 
00058     class JMS_DECLSPEC java::lang::Float : 
00059         public ::java::lang::Number,
00060         public ::java::lang::Comparable
00061     {
00062     public:
00063         enum 
00064         {
00065             xmogDefaultFlags = xmog_base::GLOBAL,
00066             xmogMajorVersion = 3,
00067             xmogMinorVersion = 2,
00068             xmogPatchVersion = 9,
00069             xmogBuildNumber = 2047
00070         };
00071 
00072     public:
00073 
00074         typedef ::xmog_java_array_template< ::java::lang::Float > array1D;
00075 
00076         typedef ::xmog_java_array_template< ::xmog_java_array_template< ::java::lang::Float > > array2D;
00077 
00086         static xmog_float MAX_VALUE;
00087 
00095         static xmog_float MIN_VALUE;
00096 
00104         static xmog_float NEGATIVE_INFINITY;
00105 
00113         static xmog_float NaN;
00114 
00122         static xmog_float POSITIVE_INFINITY;
00123 
00128         static ::java::lang::Class TYPE;
00129 
00130 
00132 
00149         Float( );
00150 
00163         Float( const ::java::lang::Float & _rhs );
00164 
00177         Float( jobject _local, xmog_flags f_xflags );
00178 
00191         Float( const ::xmog_null & _null_instance );
00192 
00203         Float( ::xmog_java_array * _arr, jint _index );
00204 
00218         Float( const ::java::lang::Float & _rhs, ::xmog_localenv * p_lxenv );
00219 
00231         XMOG_EXPLICIT Float( ::xmog_base * _delegate, bool _owns_delegate = true );
00232 
00234 
00244         Float( jfloat value, ::xmog_localenv * p_xenv = NULL, xmog_flags f_xflags = xmogDefaultFlags );
00245 
00255         Float( jdouble value, ::xmog_localenv * p_xenv = NULL, xmog_flags f_xflags = xmogDefaultFlags );
00256 
00258 
00272         Float( ::xmog_java_ref * _cra, ::xmog_java_dynamic * _dynamic, xmog_flags f_xflags = xmogDefaultFlags );
00273 
00275 
00289         Float( const ::java::lang::String & s, ::xmog_localenv * p_xenv = NULL, xmog_flags f_xflags = xmogDefaultFlags );
00290 
00292 
00299         ~Float( );
00300 
00313         java::lang::Float operator =( const java::lang::Float & _rhs );
00314 
00329         void operator delete( void * _ptr );
00330 
00331 #       if (XMOG_SUPPORTS_PLACEMENT_DELETE==1)
00347             void operator delete( void * ptr, void * loc );
00348 #       endif /* (XMOG_SUPPORTS_PLACEMENT_DELETE==1) */
00349 
00364         void * operator new( size_t _size );
00365 
00366 #       if (XMOG_SUPPORTS_PLACEMENT_NEW==1)
00384             void * operator new( size_t _size, void * _ptr );
00385 #       endif /* (XMOG_SUPPORTS_PLACEMENT_NEW==1) */
00386 
00388 
00401         jbyte byteValue( ::xmog_localenv * p_xenv = NULL, xmog_flags f_xflags = xmogDefaultFlags );
00402 
00427         static jint compare( jfloat f1, jfloat f2, ::xmog_localenv * p_xenv = NULL, xmog_flags f_xflags = xmogDefaultFlags );
00428 
00453         jint compareTo( const ::java::lang::Object & o, ::xmog_localenv * p_xenv = NULL, xmog_flags f_xflags = xmogDefaultFlags );
00454 
00492         jint compareTo( const ::java::lang::Float & anotherFloat, ::xmog_localenv * p_xenv = NULL, xmog_flags f_xflags = xmogDefaultFlags );
00493 
00507         jdouble doubleValue( ::xmog_localenv * p_xenv = NULL, xmog_flags f_xflags = xmogDefaultFlags );
00508 
00510 
00531         static ::java::lang::Float dyna_cast( const ::xmog_base & _rhs, ::xmog_localenv * p_lxenv = NULL, xmog_flags flags = xmogDefaultFlags );
00532 
00534 
00578         bool equals( const ::java::lang::Object & obj, ::xmog_localenv * p_xenv = NULL, xmog_flags f_xflags = xmogDefaultFlags );
00579 
00615         static jint floatToIntBits( jfloat value, ::xmog_localenv * p_xenv = NULL, xmog_flags f_xflags = xmogDefaultFlags );
00616 
00656         static jint floatToRawIntBits( jfloat value, ::xmog_localenv * p_xenv = NULL, xmog_flags f_xflags = xmogDefaultFlags );
00657 
00669         jfloat floatValue( ::xmog_localenv * p_xenv = NULL, xmog_flags f_xflags = xmogDefaultFlags );
00670 
00672 
00686         static ::xmog_java_class * get_class( );
00687 
00696         static ::xmog_java_class * get_element_class( );
00697 
00699 
00716         jint hashCode( ::xmog_localenv * p_xenv = NULL, xmog_flags f_xflags = xmogDefaultFlags );
00717 
00782         static jfloat intBitsToFloat( jint bits, ::xmog_localenv * p_xenv = NULL, xmog_flags f_xflags = xmogDefaultFlags );
00783 
00796         jint intValue( ::xmog_localenv * p_xenv = NULL, xmog_flags f_xflags = xmogDefaultFlags );
00797 
00811         bool isInfinite( ::xmog_localenv * p_xenv = NULL, xmog_flags f_xflags = xmogDefaultFlags );
00812 
00826         static bool isInfinite( jfloat v, ::xmog_localenv * p_xenv = NULL, xmog_flags f_xflags = xmogDefaultFlags );
00827 
00840         bool isNaN( ::xmog_localenv * p_xenv = NULL, xmog_flags f_xflags = xmogDefaultFlags );
00841 
00855         static bool isNaN( jfloat v, ::xmog_localenv * p_xenv = NULL, xmog_flags f_xflags = xmogDefaultFlags );
00856 
00869         jlong longValue( ::xmog_localenv * p_xenv = NULL, xmog_flags f_xflags = xmogDefaultFlags );
00870 
00885         static jfloat parseFloat( const ::java::lang::String & s, ::xmog_localenv * p_xenv = NULL, xmog_flags f_xflags = xmogDefaultFlags );
00886 
00899         jshort shortValue( ::xmog_localenv * p_xenv = NULL, xmog_flags f_xflags = xmogDefaultFlags );
00900 
00916         ::java::lang::String toString( ::xmog_localenv * p_xenv = NULL, xmog_flags f_xflags = xmogDefaultFlags );
00917 
00990         static ::java::lang::String toString( jfloat f, ::xmog_localenv * p_xenv = NULL, xmog_flags f_xflags = xmogDefaultFlags );
00991 
01058         static ::java::lang::Float valueOf( const ::java::lang::String & s, ::xmog_localenv * p_xenv = NULL, xmog_flags f_xflags = xmogDefaultFlags );
01059 
01061 
01080         virtual ::xmog_java_class * xmog_get_java_peer( ::xmog_localenv * p_lxenv = NULL );
01082 
01083     };
01084 #endif /* xmogInc_javalangFloat */
01085 

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