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