Package it.unich.jgmp.nativelib
Class GmpFunctionMapper
- java.lang.Object
-
- it.unich.jgmp.nativelib.GmpFunctionMapper
-
- All Implemented Interfaces:
com.sun.jna.FunctionMapper
class GmpFunctionMapper extends java.lang.Object implements com.sun.jna.FunctionMapper
AFunctionMapper
which converts the official GMP function names (beginning withmpz
,mpq
,mpf
andgmp
) to the names used by the C library (beginning with__gmp
).
-
-
Field Summary
Fields Modifier and Type Field Description private static GmpFunctionMapper
instance
-
Constructor Summary
Constructors Modifier Constructor Description private
GmpFunctionMapper()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.String
getFunctionName(com.sun.jna.NativeLibrary library, java.lang.reflect.Method method)
static GmpFunctionMapper
getInstance()
-
-
-
Field Detail
-
instance
private static GmpFunctionMapper instance
-
-
Method Detail
-
getFunctionName
public java.lang.String getFunctionName(com.sun.jna.NativeLibrary library, java.lang.reflect.Method method)
- Specified by:
getFunctionName
in interfacecom.sun.jna.FunctionMapper
-
getInstance
public static GmpFunctionMapper getInstance()
-
-