Class GmpTypeMapper

java.lang.Object
it.unich.jgmp.nativelib.GmpTypeMapper
All Implemented Interfaces:
com.sun.jna.TypeMapper

class GmpTypeMapper extends Object implements com.sun.jna.TypeMapper
A TypeMapper for the types MPZ, MPQ and MPF. It is used by the printf / scanf functions to correctly handle these types.
  • Field Details

  • Constructor Details

    • GmpTypeMapper

      private GmpTypeMapper()
  • Method Details

    • getFromNativeConverter

      public com.sun.jna.FromNativeConverter getFromNativeConverter(Class<?> javaType)
      Specified by:
      getFromNativeConverter in interface com.sun.jna.TypeMapper
    • getToNativeConverter

      public com.sun.jna.ToNativeConverter getToNativeConverter(Class<?> javaType)
      Specified by:
      getToNativeConverter in interface com.sun.jna.TypeMapper
    • getInstance

      public static GmpTypeMapper getInstance()