Package org.robwork.sdurw_kinematics
Class FKRangeCPtr
- java.lang.Object
-
- org.robwork.sdurw_kinematics.FKRangeCPtr
-
public class FKRangeCPtr extends java.lang.Object
Ptr 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.void
delete()
FKRange
deref()
The pointer stored in the object.boolean
equals(FKRange p)
Transform3D
get(State state)
The relative transform between the frames.
FrameCPtr
getBase()
Returns the first frame in the range.
static long
getCPtr(FKRangeCPtr obj)
FKRange
getDeref()
Member access operator.FrameCPtr
getEnd()
Returns the last frame in the range.
boolean
isNull()
checks if the pointer is nullboolean
isShared()
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).
-
-