Package org.robwork.sdurw_trajectory
Class TrajectorySequence_dCPtr
- java.lang.Object
-
- org.robwork.sdurw_trajectory.TrajectorySequence_dCPtr
-
public class TrajectorySequence_dCPtr extends java.lang.Object
Ptr stores a pointer and optionally takes ownership of the value.
-
-
Constructor Summary
Constructors Constructor Description TrajectorySequence_dCPtr()
Default constructor yielding a NULL-pointer.TrajectorySequence_dCPtr(long cPtr, boolean cMemoryOwn)
TrajectorySequence_dCPtr(TrajectorySequence_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 TrajectorySequence_d
__ref__()
Dereferencing operator.double
ddx(double t)
void
delete()
TrajectorySequence_d
deref()
The pointer stored in the object.double
duration()
double
dx(double t)
double
endTime()
Returns the endTime of the trajectory.
The end time equals startTime() + duration().
boolean
equals(TrajectorySequence_d p)
static long
getCPtr(TrajectorySequence_dCPtr obj)
TrajectorySequence_d
getDeref()
Member access operator.TrajectoryIterator_dPtr
getIterator(double dt)
boolean
isNull()
checks if the pointer is nullboolean
isShared()
check if this Ptr has shared ownership or none
ownershipdouble
startTime()
double
x(double t)
-
-
-
Constructor Detail
-
TrajectorySequence_dCPtr
public TrajectorySequence_dCPtr(long cPtr, boolean cMemoryOwn)
-
TrajectorySequence_dCPtr
public TrajectorySequence_dCPtr()
Default constructor yielding a NULL-pointer.
-
TrajectorySequence_dCPtr
public TrajectorySequence_dCPtr(TrajectorySequence_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(TrajectorySequence_dCPtr obj)
-
delete
public void delete()
-
deref
public TrajectorySequence_d deref()
The pointer stored in the object.
-
__ref__
public TrajectorySequence_d __ref__()
Dereferencing operator.
-
getDeref
public TrajectorySequence_d getDeref()
Member access operator.
-
equals
public boolean equals(TrajectorySequence_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
-
x
public double x(double t)
-
dx
public double dx(double t)
-
ddx
public double ddx(double t)
-
duration
public double duration()
-
startTime
public double startTime()
-
getIterator
public TrajectoryIterator_dPtr getIterator(double dt)
-
endTime
public double endTime()
Returns the endTime of the trajectory.
The end time equals startTime() + duration().
- Returns:
- The end time
-
-