Package org.robwork.sdurw
Class PlannerConstraintPtr
- java.lang.Object
-
- org.robwork.sdurw.PlannerConstraintPtr
-
public class PlannerConstraintPtr extends java.lang.Object
Ptr stores a pointer and optionally takes ownership of the value.
-
-
Constructor Summary
Constructors Constructor Description PlannerConstraintPtr()
Default constructor yielding a NULL-pointer.PlannerConstraintPtr(long cPtr, boolean cMemoryOwn)
PlannerConstraintPtr(PlannerConstraint 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 PlannerConstraint
__ref__()
Dereferencing operator.void
delete()
PlannerConstraint
deref()
The pointer stored in the object.boolean
equals(PlannerConstraint p)
static long
getCPtr(PlannerConstraintPtr obj)
PlannerConstraint
getDeref()
Member access operator.QConstraint
getQConstraint()
QConstraintPtr
getQConstraintPtr()
boolean
inCollision(Q q)
boolean
inCollision(Q q1, Q q2)
boolean
isNull()
checks if the pointer is nullboolean
isShared()
check if this Ptr has shared ownership or none
ownershipPlannerConstraint
make(CollisionDetectorPtr detector, DeviceCPtr device, State state)
PlannerConstraint
make(CollisionStrategyPtr strategy, WorkCellPtr workcell, DeviceCPtr device, State state)
-
-
-
Constructor Detail
-
PlannerConstraintPtr
public PlannerConstraintPtr(long cPtr, boolean cMemoryOwn)
-
PlannerConstraintPtr
public PlannerConstraintPtr()
Default constructor yielding a NULL-pointer.
-
PlannerConstraintPtr
public PlannerConstraintPtr(PlannerConstraint ptr)
Do not take ownership of ptr.
ptr can be null.
The constructor is implicit on purpose.
-
-
Method Detail
-
getCPtr
public static long getCPtr(PlannerConstraintPtr obj)
-
delete
public void delete()
-
deref
public PlannerConstraint deref()
The pointer stored in the object.
-
__ref__
public PlannerConstraint __ref__()
Dereferencing operator.
-
getDeref
public PlannerConstraint getDeref()
Member access operator.
-
equals
public boolean equals(PlannerConstraint 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
-
inCollision
public boolean inCollision(Q q)
-
getQConstraint
public QConstraint getQConstraint()
-
getQConstraintPtr
public QConstraintPtr getQConstraintPtr()
-
make
public PlannerConstraint make(CollisionDetectorPtr detector, DeviceCPtr device, State state)
-
make
public PlannerConstraint make(CollisionStrategyPtr strategy, WorkCellPtr workcell, DeviceCPtr device, State state)
-
-