Package org.robwork.sdurw
Class Function1DiffdddPtr
- java.lang.Object
-
- org.robwork.sdurw.Function1DiffdddPtr
-
public class Function1DiffdddPtr extends java.lang.Object
Ptr stores a pointer and optionally takes ownership of the value.
-
-
Constructor Summary
Constructors Constructor Description Function1DiffdddPtr()
Default constructor yielding a NULL-pointer.Function1DiffdddPtr(long cPtr, boolean cMemoryOwn)
Function1DiffdddPtr(Function1Diffddd ptr)
Do not take ownership of ptr.
ptr can be null.
The constructor is implicit on purpose.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description Function1Diffddd
__ref__()
Dereferencing operator.void
delete()
Function1Diffddd
deref()
The pointer stored in the object.double
df(double q)
Returns gradient(derivative) of the functionboolean
equals(Function1Diffddd p)
double
f(double q)
Returns function value for arguments q.static long
getCPtr(Function1DiffdddPtr obj)
Function1Diffddd
getDeref()
Member access operator.boolean
isNull()
checks if the pointer is nullboolean
isShared()
check if this Ptr has shared ownership or none
ownershipdouble
operate(double q)
Wraps the evaluation of x() with operator().
-
-
-
Constructor Detail
-
Function1DiffdddPtr
public Function1DiffdddPtr(long cPtr, boolean cMemoryOwn)
-
Function1DiffdddPtr
public Function1DiffdddPtr()
Default constructor yielding a NULL-pointer.
-
Function1DiffdddPtr
public Function1DiffdddPtr(Function1Diffddd ptr)
Do not take ownership of ptr.
ptr can be null.
The constructor is implicit on purpose.
-
-
Method Detail
-
getCPtr
public static long getCPtr(Function1DiffdddPtr obj)
-
delete
public void delete()
-
deref
public Function1Diffddd deref()
The pointer stored in the object.
-
__ref__
public Function1Diffddd __ref__()
Dereferencing operator.
-
getDeref
public Function1Diffddd getDeref()
Member access operator.
-
equals
public boolean equals(Function1Diffddd p)
-
isShared
public boolean isShared()
check if this Ptr has shared ownership or none
ownership- Returns:
- true if Ptr has shared ownership, false if it has no ownership.
-
isNull
public boolean isNull()
checks if the pointer is null- Returns:
- Returns true if the pointer is null
-
df
public double df(double q)
Returns gradient(derivative) of the function
-
f
public double f(double q)
Returns function value for arguments q.
-
operate
public double operate(double q)
Wraps the evaluation of x() with operator().
-
-