Package org.robwork.sdurw
Class PathSE3Ptr
- java.lang.Object
-
- org.robwork.sdurw.PathSE3Ptr
-
public class PathSE3Ptr extends java.lang.Object
Ptr 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.long
capacity()
void
clear()
PathSE3CPtr
cptr()
void
delete()
PathSE3
deref()
The pointer stored in the object.Transform3Dd
elem(long idx)
boolean
equals(PathSE3 p)
static long
getCPtr(PathSE3Ptr obj)
PathSE3
getDeref()
Member access operator.boolean
isEmpty()
boolean
isNull()
checks if the pointer is nullboolean
isShared()
check if this Ptr has shared ownership or none
ownershipvoid
reserve(long n)
int
size()
-
-
-
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()
-
-