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.FunctionMapperAFunctionMapperwhich converts the official GMP function names (beginning withmpz,mpq,mpfandgmp) to the names used by the C library (beginning with__gmp).
-
-
Field Summary
Fields Modifier and Type Field Description private static GmpFunctionMapperinstance
-
Constructor Summary
Constructors Modifier Constructor Description privateGmpFunctionMapper()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.StringgetFunctionName(com.sun.jna.NativeLibrary library, java.lang.reflect.Method method)static GmpFunctionMappergetInstance()
-
-
-
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:
getFunctionNamein interfacecom.sun.jna.FunctionMapper
-
getInstance
public static GmpFunctionMapper getInstance()
-
-