Package org.robwork.sdurw_models
Class ControllerModelCPtr
- java.lang.Object
-
- org.robwork.sdurw_models.ControllerModelCPtr
-
public class ControllerModelCPtr extends java.lang.Object
Ptr stores a pointer and optionally takes ownership of the value.
-
-
Constructor Summary
Constructors Constructor Description ControllerModelCPtr()
Default constructor yielding a NULL-pointer.ControllerModelCPtr(long cPtr, boolean cMemoryOwn)
ControllerModelCPtr(ControllerModel 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 ControllerModel
__ref__()
Dereferencing operator.void
delete()
ControllerModel
deref()
The pointer stored in the object.boolean
equals(ControllerModel p)
static long
getCPtr(ControllerModelCPtr obj)
ControllerModel
getDeref()
Member access operator.java.lang.String
getDescription()
returns a description of this controllermodelFrame
getFrame()
The frame to which the controllermodel is attached.
The frame can be NULL.java.lang.String
getName()
returns the name of this controllermodelboolean
isNull()
checks if the pointer is nullboolean
isShared()
check if this Ptr has shared ownership or none
ownership
-
-
-
Constructor Detail
-
ControllerModelCPtr
public ControllerModelCPtr(long cPtr, boolean cMemoryOwn)
-
ControllerModelCPtr
public ControllerModelCPtr()
Default constructor yielding a NULL-pointer.
-
ControllerModelCPtr
public ControllerModelCPtr(ControllerModel ptr)
Do not take ownership of ptr.
ptr can be null.
The constructor is implicit on purpose.
-
-
Method Detail
-
getCPtr
public static long getCPtr(ControllerModelCPtr obj)
-
delete
public void delete()
-
deref
public ControllerModel deref()
The pointer stored in the object.
-
__ref__
public ControllerModel __ref__()
Dereferencing operator.
-
getDeref
public ControllerModel getDeref()
Member access operator.
-
equals
public boolean equals(ControllerModel 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
-
getName
public java.lang.String getName()
returns the name of this controllermodel- Returns:
- name of controllermodel
-
getDescription
public java.lang.String getDescription()
returns a description of this controllermodel- Returns:
- reference to this controllermodels description
-
getFrame
public Frame getFrame()
The frame to which the controllermodel is attached.
The frame can be NULL.
-
-