Package org.robwork.sdurwsim
Class ContactStrategyPtr
- java.lang.Object
-
- org.robwork.sdurwsim.ContactStrategyPtr
-
public class ContactStrategyPtr extends java.lang.ObjectPtr 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.voidclear()voiddelete()ContactStrategyderef()The pointer stored in the object.booleanequals(ContactStrategy p)static longgetCPtr(ContactStrategyPtr obj)ContactStrategygetDeref()Member access operator.java.lang.StringgetName()PropertyMapgetPropertyMap()booleanisNull()checks if the pointer is nullbooleanisShared()check if this Ptr has shared ownership or none
ownershipbooleanmatch(GeometryDataPtr geoA, GeometryDataPtr geoB)voidsetPropertyMap(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)
-
-