Package org.robwork.sdurwsim
Class ContactStrategyPtr
- java.lang.Object
-
- org.robwork.sdurwsim.ContactStrategyPtr
-
public class ContactStrategyPtr extends java.lang.Object
Ptr stores a pointer and optionally takes ownership of the value.
-
-
Constructor Summary
Constructors Constructor Description ContactStrategyPtr()
Default constructor yielding a NULL-pointer.ContactStrategyPtr(long cPtr, boolean cMemoryOwn)
ContactStrategyPtr(ContactStrategy 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 ContactStrategy
__ref__()
Dereferencing operator.void
clear()
void
delete()
ContactStrategy
deref()
The pointer stored in the object.boolean
equals(ContactStrategy p)
static long
getCPtr(ContactStrategyPtr obj)
ContactStrategy
getDeref()
Member access operator.java.lang.String
getName()
PropertyMap
getPropertyMap()
boolean
isNull()
checks if the pointer is nullboolean
isShared()
check if this Ptr has shared ownership or none
ownershipboolean
match(GeometryDataPtr geoA, GeometryDataPtr geoB)
void
setPropertyMap(PropertyMap map)
-
-
-
Constructor Detail
-
ContactStrategyPtr
public ContactStrategyPtr(long cPtr, boolean cMemoryOwn)
-
ContactStrategyPtr
public ContactStrategyPtr()
Default constructor yielding a NULL-pointer.
-
ContactStrategyPtr
public ContactStrategyPtr(ContactStrategy ptr)
Do not take ownership of ptr.
ptr can be null.
The constructor is implicit on purpose.
-
-
Method Detail
-
getCPtr
public static long getCPtr(ContactStrategyPtr obj)
-
delete
public void delete()
-
deref
public ContactStrategy deref()
The pointer stored in the object.
-
__ref__
public ContactStrategy __ref__()
Dereferencing operator.
-
getDeref
public ContactStrategy getDeref()
Member access operator.
-
equals
public boolean equals(ContactStrategy 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
-
match
public boolean match(GeometryDataPtr geoA, GeometryDataPtr geoB)
-
getName
public java.lang.String getName()
-
clear
public void clear()
-
getPropertyMap
public PropertyMap getPropertyMap()
-
setPropertyMap
public void setPropertyMap(PropertyMap map)
-
-