Package org.robwork.sdurw_kinematics
Class QStateCPtr
- java.lang.Object
-
- org.robwork.sdurw_kinematics.QStateCPtr
-
public class QStateCPtr extends java.lang.ObjectPtr stores a pointer and optionally takes ownership of the value.
-
-
Constructor Summary
Constructors Constructor Description QStateCPtr()Default constructor yielding a NULL-pointer.QStateCPtr(long cPtr, boolean cMemoryOwn)QStateCPtr(QState 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 QState__ref__()Dereferencing operator.QStateadd(QState b)Addition of configuration states.voiddelete()QStatederef()The pointer stored in the object.QStatedivide(double scale)Scaling of a configuration state by divisionbooleanequals(QState p)static longgetCPtr(QStateCPtr obj)QStategetDeref()Member access operator.StateSetupPtrgetStateSetup()returns the StateSetupbooleanisNull()checks if the pointer is nullbooleanisShared()check if this Ptr has shared ownership or none
ownershipQStatemultiply(double scale)Scaling of a configuration state by a scalar.QStatenegate()Unary minus operator.longsize()The dimension of the state vector.QStatesubtract(QState b)Subtraction of configuration states.
-
-
-
Constructor Detail
-
QStateCPtr
public QStateCPtr(long cPtr, boolean cMemoryOwn)
-
QStateCPtr
public QStateCPtr()
Default constructor yielding a NULL-pointer.
-
QStateCPtr
public QStateCPtr(QState ptr)
Do not take ownership of ptr.
ptr can be null.
The constructor is implicit on purpose.
-
-
Method Detail
-
getCPtr
public static long getCPtr(QStateCPtr obj)
-
delete
public void delete()
-
deref
public QState deref()
The pointer stored in the object.
-
__ref__
public QState __ref__()
Dereferencing operator.
-
getDeref
public QState getDeref()
Member access operator.
-
equals
public boolean equals(QState 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
-
multiply
public QState multiply(double scale)
Scaling of a configuration state by a scalar.
-
divide
public QState divide(double scale)
Scaling of a configuration state by division
-
negate
public QState negate()
Unary minus operator.
-
getStateSetup
public StateSetupPtr getStateSetup()
returns the StateSetup
-
size
public long size()
The dimension of the state vector.
-
-