Package org.robwork.sdurw
Class MetricSE3Ptr
- java.lang.Object
-
- org.robwork.sdurw.MetricSE3Ptr
-
public class MetricSE3Ptr extends java.lang.Object
The Ptr type represents a smart pointer that can take ownership
of the underlying object.
If the underlying object is owned by the smart pointer, it is destructed
when there is no more smart pointers pointing to the object.
-
-
Constructor Summary
Constructors Constructor Description MetricSE3Ptr()
Empty smart pointer (Null).MetricSE3Ptr(long cPtr, boolean cMemoryOwn)
MetricSE3Ptr(MetricSE3 ptr)
Construct new smart pointer that takes ownership of the
underlying object.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description MetricSE3
__deref__()
void
delete()
MetricSE3
dereference()
double
distance(Transform3d q)
double
distance(Transform3d a, Transform3d b)
static long
getCPtr(MetricSE3Ptr obj)
boolean
isNull()
Check if smart pointer is null.
boolean
isShared()
int
size()
-
-
-
Constructor Detail
-
MetricSE3Ptr
public MetricSE3Ptr(long cPtr, boolean cMemoryOwn)
-
MetricSE3Ptr
public MetricSE3Ptr()
Empty smart pointer (Null).
-
MetricSE3Ptr
public MetricSE3Ptr(MetricSE3 ptr)
Construct new smart pointer that takes ownership of the
underlying object.
- Parameters:
ptr
- The object to take ownership of.
-
-
Method Detail
-
getCPtr
public static long getCPtr(MetricSE3Ptr obj)
-
delete
public void delete()
-
isShared
public boolean isShared()
-
isNull
public boolean isNull()
Check if smart pointer is null.
- Returns:
- true if smart pointer is null.
-
dereference
public MetricSE3 dereference()
-
__deref__
public MetricSE3 __deref__()
-
distance
public double distance(Transform3d q)
-
distance
public double distance(Transform3d a, Transform3d b)
-
size
public int size()
-
-