Class GmpFunctionMapper

java.lang.Object
it.unich.jgmp.nativelib.GmpFunctionMapper
All Implemented Interfaces:
com.sun.jna.FunctionMapper

class GmpFunctionMapper extends Object implements com.sun.jna.FunctionMapper
A FunctionMapper which converts the official GMP function names (beginning with mpz, mpq, mpf and gmp) to the names used by the C library (beginning with __gmp).
  • Field Details

  • Constructor Details

    • GmpFunctionMapper

      private GmpFunctionMapper()
  • Method Details

    • getFunctionName

      public String getFunctionName(com.sun.jna.NativeLibrary library, Method method)
      Specified by:
      getFunctionName in interface com.sun.jna.FunctionMapper
    • getInstance

      public static GmpFunctionMapper getInstance()