Package org.robwork.sdurw_proximity
Class ProximityCacheCPtr
- java.lang.Object
-
- org.robwork.sdurw_proximity.ProximityCacheCPtr
-
public class ProximityCacheCPtr extends java.lang.ObjectPtr stores a pointer and optionally takes ownership of the value.
-
-
Constructor Summary
Constructors Constructor Description ProximityCacheCPtr()Default constructor yielding a NULL-pointer.ProximityCacheCPtr(long cPtr, boolean cMemoryOwn)ProximityCacheCPtr(ProximityCache 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 ProximityCache__ref__()Dereferencing operator.voiddelete()ProximityCachederef()The pointer stored in the object.booleanequals(ProximityCache p)SWIGTYPE_p_voidget_owner()Owner of the cachestatic longgetCPtr(ProximityCacheCPtr obj)ProximityCachegetDeref()Member access operator.booleanisNull()checks if the pointer is nullbooleanisShared()check if this Ptr has shared ownership or none
ownershiplongsize()Returns size of cache
-
-
-
Constructor Detail
-
ProximityCacheCPtr
public ProximityCacheCPtr(long cPtr, boolean cMemoryOwn)
-
ProximityCacheCPtr
public ProximityCacheCPtr()
Default constructor yielding a NULL-pointer.
-
ProximityCacheCPtr
public ProximityCacheCPtr(ProximityCache ptr)
Do not take ownership of ptr.
ptr can be null.
The constructor is implicit on purpose.
-
-
Method Detail
-
getCPtr
public static long getCPtr(ProximityCacheCPtr obj)
-
delete
public void delete()
-
deref
public ProximityCache deref()
The pointer stored in the object.
-
__ref__
public ProximityCache __ref__()
Dereferencing operator.
-
getDeref
public ProximityCache getDeref()
Member access operator.
-
equals
public boolean equals(ProximityCache 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
-
size
public long size()
Returns size of cache- Returns:
- size
-
get_owner
public SWIGTYPE_p_void get_owner()
Owner of the cache
-
-