Package org.robwork.sdurw_pathplanning
Class QNormalizerCPtr
- java.lang.Object
-
- org.robwork.sdurw_pathplanning.QNormalizerCPtr
-
public class QNormalizerCPtr extends java.lang.Object
Ptr stores a pointer and optionally takes ownership of the value.
-
-
Constructor Summary
Constructors Constructor Description QNormalizerCPtr()
Default constructor yielding a NULL-pointer.QNormalizerCPtr(long cPtr, boolean cMemoryOwn)
QNormalizerCPtr(QNormalizer 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 QNormalizer
__ref__()
Dereferencing operator.void
delete()
QNormalizer
deref()
The pointer stored in the object.boolean
equals(QNormalizer p)
Q
fromNormalized(Q q)
Convert from a normalized configuration to a real
configuration.PairQ
getBounds()
The box of the configuration space with respect to which
normalization is done.static long
getCPtr(QNormalizerCPtr obj)
QNormalizer
getDeref()
Member access operator.boolean
isNull()
checks if the pointer is nullboolean
isShared()
check if this Ptr has shared ownership or none
ownershipvoid
setFromNormalized(Q q)
Convert from a normalized configuration to a real
configuration and assign the real configuration to q.void
setToNormalized(Q q)
Convert a real configuration to a normalized configuration and
write the normalized configuration to q.Q
toNormalized(Q q)
Convert a real configuration to a normalized configuration.
-
-
-
Constructor Detail
-
QNormalizerCPtr
public QNormalizerCPtr(long cPtr, boolean cMemoryOwn)
-
QNormalizerCPtr
public QNormalizerCPtr()
Default constructor yielding a NULL-pointer.
-
QNormalizerCPtr
public QNormalizerCPtr(QNormalizer ptr)
Do not take ownership of ptr.
ptr can be null.
The constructor is implicit on purpose.
-
-
Method Detail
-
getCPtr
public static long getCPtr(QNormalizerCPtr obj)
-
delete
public void delete()
-
deref
public QNormalizer deref()
The pointer stored in the object.
-
__ref__
public QNormalizer __ref__()
Dereferencing operator.
-
getDeref
public QNormalizer getDeref()
Member access operator.
-
equals
public boolean equals(QNormalizer 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
-
fromNormalized
public Q fromNormalized(Q q)
Convert from a normalized configuration to a real
configuration.
-
toNormalized
public Q toNormalized(Q q)
Convert a real configuration to a normalized configuration.
-
setFromNormalized
public void setFromNormalized(Q q)
Convert from a normalized configuration to a real
configuration and assign the real configuration to q.
-
setToNormalized
public void setToNormalized(Q q)
Convert a real configuration to a normalized configuration and
write the normalized configuration to q.
-
getBounds
public PairQ getBounds()
The box of the configuration space with respect to which
normalization is done.
-
-