Package org.robwork.sdurw_pathplanning
Class QNormalizerCPtr
- java.lang.Object
-
- org.robwork.sdurw_pathplanning.QNormalizerCPtr
-
public class QNormalizerCPtr extends java.lang.ObjectPtr 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.voiddelete()QNormalizerderef()The pointer stored in the object.booleanequals(QNormalizer p)QfromNormalized(Q q)Convert from a normalized configuration to a real
configuration.PairQgetBounds()The box of the configuration space with respect to which
normalization is done.static longgetCPtr(QNormalizerCPtr obj)QNormalizergetDeref()Member access operator.booleanisNull()checks if the pointer is nullbooleanisShared()check if this Ptr has shared ownership or none
ownershipvoidsetFromNormalized(Q q)Convert from a normalized configuration to a real
configuration and assign the real configuration to q.voidsetToNormalized(Q q)Convert a real configuration to a normalized configuration and
write the normalized configuration to q.QtoNormalized(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.
-
-