Package org.robwork.sdurw_kinematics
Class FKRangeCPtr
- java.lang.Object
-
- org.robwork.sdurw_kinematics.FKRangeCPtr
-
public class FKRangeCPtr extends java.lang.ObjectPtr stores a pointer and optionally takes ownership of the value.
-
-
Constructor Summary
Constructors Constructor Description FKRangeCPtr()Default constructor yielding a NULL-pointer.FKRangeCPtr(long cPtr, boolean cMemoryOwn)FKRangeCPtr(FKRange 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 FKRange__ref__()Dereferencing operator.voiddelete()FKRangederef()The pointer stored in the object.booleanequals(FKRange p)Transform3Dget(State state)The relative transform between the frames.
FrameCPtrgetBase()Returns the first frame in the range.
static longgetCPtr(FKRangeCPtr obj)FKRangegetDeref()Member access operator.FrameCPtrgetEnd()Returns the last frame in the range.
booleanisNull()checks if the pointer is nullbooleanisShared()check if this Ptr has shared ownership or none
ownership
-
-
-
Constructor Detail
-
FKRangeCPtr
public FKRangeCPtr(long cPtr, boolean cMemoryOwn)
-
FKRangeCPtr
public FKRangeCPtr()
Default constructor yielding a NULL-pointer.
-
FKRangeCPtr
public FKRangeCPtr(FKRange ptr)
Do not take ownership of ptr.
ptr can be null.
The constructor is implicit on purpose.
-
-
Method Detail
-
getCPtr
public static long getCPtr(FKRangeCPtr obj)
-
delete
public void delete()
-
deref
public FKRange deref()
The pointer stored in the object.
-
__ref__
public FKRange __ref__()
Dereferencing operator.
-
getDeref
public FKRange getDeref()
Member access operator.
-
equals
public boolean equals(FKRange 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
-
get
public Transform3D get(State state)
The relative transform between the frames.
- Parameters:
state- [in] Configuration values for the frames of the tree.
-
getEnd
public FrameCPtr getEnd()
Returns the last frame in the range.
- Returns:
- The end frame (to).
-
getBase
public FrameCPtr getBase()
Returns the first frame in the range.
- Returns:
- The base frame (from).
-
-