Package org.robwork.sdurw_trajectory
Class TimedVector3DPtr
- java.lang.Object
-
- org.robwork.sdurw_trajectory.TimedVector3DPtr
-
public class TimedVector3DPtr extends java.lang.ObjectPtr stores a pointer and optionally takes ownership of the value.
-
-
Constructor Summary
Constructors Constructor Description TimedVector3DPtr()Default constructor yielding a NULL-pointer.TimedVector3DPtr(long cPtr, boolean cMemoryOwn)TimedVector3DPtr(TimedVector3D 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 TimedVector3D__ref__()Dereferencing operator.TimedVector3DCPtrcptr()voiddelete()TimedVector3Dderef()The pointer stored in the object.booleanequals(TimedVector3D p)static longgetCPtr(TimedVector3DPtr obj)TimedVector3DgetDeref()Member access operator.SWIGTYPE_p_doublegetTime()The timeVector3DgetValue()booleanisNull()checks if the pointer is nullbooleanisShared()check if this Ptr has shared ownership or none
ownershipvoidsetTime(double time)
-
-
-
Constructor Detail
-
TimedVector3DPtr
public TimedVector3DPtr(long cPtr, boolean cMemoryOwn)
-
TimedVector3DPtr
public TimedVector3DPtr()
Default constructor yielding a NULL-pointer.
-
TimedVector3DPtr
public TimedVector3DPtr(TimedVector3D ptr)
Do not take ownership of ptr.
ptr can be null.
The constructor is implicit on purpose.
-
-
Method Detail
-
getCPtr
public static long getCPtr(TimedVector3DPtr obj)
-
delete
public void delete()
-
deref
public TimedVector3D deref()
The pointer stored in the object.
-
__ref__
public TimedVector3D __ref__()
Dereferencing operator.
-
getDeref
public TimedVector3D getDeref()
Member access operator.
-
equals
public boolean equals(TimedVector3D 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 TimedVector3DCPtr cptr()
-
getTime
public SWIGTYPE_p_double getTime()
The time
-
getValue
public Vector3D getValue()
-
setTime
public void setTime(double time)
-
-