Package org.robwork.sdurw_proximity
Class ProximityCacheCPtr
- java.lang.Object
-
- org.robwork.sdurw_proximity.ProximityCacheCPtr
-
public class ProximityCacheCPtr extends java.lang.Object
Ptr 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.void
delete()
ProximityCache
deref()
The pointer stored in the object.boolean
equals(ProximityCache p)
SWIGTYPE_p_void
get_owner()
Owner of the cachestatic long
getCPtr(ProximityCacheCPtr obj)
ProximityCache
getDeref()
Member access operator.boolean
isNull()
checks if the pointer is nullboolean
isShared()
check if this Ptr has shared ownership or none
ownershiplong
size()
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
-
-