Package org.robwork.sdurw
Class PathSE3Ptr
- java.lang.Object
-
- org.robwork.sdurw.PathSE3Ptr
-
public class PathSE3Ptr extends java.lang.ObjectPtr stores a pointer and optionally takes ownership of the value.
-
-
Constructor Summary
Constructors Constructor Description PathSE3Ptr()Default constructor yielding a NULL-pointer.PathSE3Ptr(long cPtr, boolean cMemoryOwn)PathSE3Ptr(PathSE3 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 PathSE3__ref__()Dereferencing operator.longcapacity()voidclear()PathSE3CPtrcptr()voiddelete()PathSE3deref()The pointer stored in the object.Transform3Ddelem(long idx)booleanequals(PathSE3 p)static longgetCPtr(PathSE3Ptr obj)PathSE3getDeref()Member access operator.booleanisEmpty()booleanisNull()checks if the pointer is nullbooleanisShared()check if this Ptr has shared ownership or none
ownershipvoidreserve(long n)intsize()
-
-
-
Constructor Detail
-
PathSE3Ptr
public PathSE3Ptr(long cPtr, boolean cMemoryOwn)
-
PathSE3Ptr
public PathSE3Ptr()
Default constructor yielding a NULL-pointer.
-
PathSE3Ptr
public PathSE3Ptr(PathSE3 ptr)
Do not take ownership of ptr.
ptr can be null.
The constructor is implicit on purpose.
-
-
Method Detail
-
getCPtr
public static long getCPtr(PathSE3Ptr obj)
-
delete
public void delete()
-
deref
public PathSE3 deref()
The pointer stored in the object.
-
__ref__
public PathSE3 __ref__()
Dereferencing operator.
-
getDeref
public PathSE3 getDeref()
Member access operator.
-
equals
public boolean equals(PathSE3 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 PathSE3CPtr cptr()
-
size
public int size()
-
elem
public Transform3Dd elem(long idx)
-
capacity
public long capacity()
-
reserve
public void reserve(long n)
-
isEmpty
public boolean isEmpty()
-
clear
public void clear()
-
-