Package org.robwork.sdurw_trajectory
Class RampInterpolator_dPtr
- java.lang.Object
-
- org.robwork.sdurw_trajectory.RampInterpolator_dPtr
-
public class RampInterpolator_dPtr extends java.lang.ObjectPtr stores a pointer and optionally takes ownership of the value.
-
-
Constructor Summary
Constructors Constructor Description RampInterpolator_dPtr()Default constructor yielding a NULL-pointer.RampInterpolator_dPtr(long cPtr, boolean cMemoryOwn)RampInterpolator_dPtr(RampInterpolator_d 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 RampInterpolator_d__ref__()Dereferencing operator.RampInterpolator_dCPtrcptr()doubleddx(double t)voiddelete()RampInterpolator_dderef()The pointer stored in the object.doubleduration()doubledx(double t)booleanequals(RampInterpolator_d p)static longgetCPtr(RampInterpolator_dPtr obj)RampInterpolator_dgetDeref()Member access operator.doublegetEnd()Returns the end rotation of the interpolatordoublegetStart()Returns the start rotation of the interpolatorbooleanisNull()checks if the pointer is nullbooleanisShared()check if this Ptr has shared ownership or none
ownershipdoublex(double t)
-
-
-
Constructor Detail
-
RampInterpolator_dPtr
public RampInterpolator_dPtr(long cPtr, boolean cMemoryOwn)
-
RampInterpolator_dPtr
public RampInterpolator_dPtr()
Default constructor yielding a NULL-pointer.
-
RampInterpolator_dPtr
public RampInterpolator_dPtr(RampInterpolator_d ptr)
Do not take ownership of ptr.
ptr can be null.
The constructor is implicit on purpose.
-
-
Method Detail
-
getCPtr
public static long getCPtr(RampInterpolator_dPtr obj)
-
delete
public void delete()
-
deref
public RampInterpolator_d deref()
The pointer stored in the object.
-
__ref__
public RampInterpolator_d __ref__()
Dereferencing operator.
-
getDeref
public RampInterpolator_d getDeref()
Member access operator.
-
equals
public boolean equals(RampInterpolator_d 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
-
cptr
public RampInterpolator_dCPtr cptr()
-
x
public double x(double t)
-
dx
public double dx(double t)
-
ddx
public double ddx(double t)
-
getStart
public double getStart()
Returns the start rotation of the interpolator- Returns:
- The start rotation of the interpolator
-
getEnd
public double getEnd()
Returns the end rotation of the interpolator- Returns:
- The end rotation of the interpolator
-
duration
public double duration()
-
-