Package org.robwork.sdurw_core
Class PropertyBaseCPtr
- java.lang.Object
-
- org.robwork.sdurw_core.PropertyBaseCPtr
-
public class PropertyBaseCPtr extends java.lang.ObjectPtr stores a pointer and optionally takes ownership of the value.
-
-
Constructor Summary
Constructors Constructor Description PropertyBaseCPtr()Default constructor yielding a NULL-pointer.PropertyBaseCPtr(long cPtr, boolean cMemoryOwn)PropertyBaseCPtr(PropertyBase 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 PropertyBase__ref__()Dereferencing operator.PropertyBaseclone()Construct a clone of the property.voiddelete()PropertyBasederef()The pointer stored in the object.booleanequals(PropertyBase p)static longgetCPtr(PropertyBaseCPtr obj)PropertyBasegetDeref()Member access operator.java.lang.StringgetDescription()Returns descriptionjava.lang.StringgetIdentifier()Returns the Property identifierPropertyTypegetType()Returns the PropertyTypebooleanisNull()checks if the pointer is nullbooleanisShared()check if this Ptr has shared ownership or none
ownership
-
-
-
Constructor Detail
-
PropertyBaseCPtr
public PropertyBaseCPtr(long cPtr, boolean cMemoryOwn)
-
PropertyBaseCPtr
public PropertyBaseCPtr()
Default constructor yielding a NULL-pointer.
-
PropertyBaseCPtr
public PropertyBaseCPtr(PropertyBase ptr)
Do not take ownership of ptr.
ptr can be null.
The constructor is implicit on purpose.
-
-
Method Detail
-
getCPtr
public static long getCPtr(PropertyBaseCPtr obj)
-
delete
public void delete()
-
deref
public PropertyBase deref()
The pointer stored in the object.
-
__ref__
public PropertyBase __ref__()
Dereferencing operator.
-
getDeref
public PropertyBase getDeref()
Member access operator.
-
equals
public boolean equals(PropertyBase 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
-
getIdentifier
public java.lang.String getIdentifier()
Returns the Property identifier- Returns:
- string identifier
-
getDescription
public java.lang.String getDescription()
Returns description- Returns:
- string description
-
clone
public PropertyBase clone()
Construct a clone of the property.
-
getType
public PropertyType getType()
Returns the PropertyType- Returns:
- the PropertyType
-
-