Package org.robwork.sdurw_pathplanning
Class QIKSamplerCPtr
- java.lang.Object
-
- org.robwork.sdurw_pathplanning.QIKSamplerCPtr
-
public class QIKSamplerCPtr extends java.lang.ObjectPtr stores a pointer and optionally takes ownership of the value.
-
-
Constructor Summary
Constructors Constructor Description QIKSamplerCPtr()Default constructor yielding a NULL-pointer.QIKSamplerCPtr(long cPtr, boolean cMemoryOwn)QIKSamplerCPtr(QIKSampler 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 QIKSampler__ref__()Dereferencing operator.voiddelete()QIKSamplerderef()The pointer stored in the object.booleanempty()True if the sampler is known to contain no more
configurations.booleanequals(QIKSampler p)static longgetCPtr(QIKSamplerCPtr obj)QIKSamplergetDeref()Member access operator.booleanisNull()checks if the pointer is nullbooleanisShared()check if this Ptr has shared ownership or none
ownership
-
-
-
Constructor Detail
-
QIKSamplerCPtr
public QIKSamplerCPtr(long cPtr, boolean cMemoryOwn)
-
QIKSamplerCPtr
public QIKSamplerCPtr()
Default constructor yielding a NULL-pointer.
-
QIKSamplerCPtr
public QIKSamplerCPtr(QIKSampler ptr)
Do not take ownership of ptr.
ptr can be null.
The constructor is implicit on purpose.
-
-
Method Detail
-
getCPtr
public static long getCPtr(QIKSamplerCPtr obj)
-
delete
public void delete()
-
deref
public QIKSampler deref()
The pointer stored in the object.
-
__ref__
public QIKSampler __ref__()
Dereferencing operator.
-
getDeref
public QIKSampler getDeref()
Member access operator.
-
equals
public boolean equals(QIKSampler 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
-
empty
public boolean empty()
True if the sampler is known to contain no more
configurations.
-
-