Package org.robwork.sdurwsim
Class DynamicDevicePtr
- java.lang.Object
- 
- org.robwork.sdurwsim.DynamicDevicePtr
 
- 
 public class DynamicDevicePtr extends java.lang.ObjectPtr stores a pointer and optionally takes ownership of the value.
- 
- 
Constructor SummaryConstructors Constructor Description DynamicDevicePtr()Default constructor yielding a NULL-pointer.DynamicDevicePtr(long cPtr, boolean cMemoryOwn)DynamicDevicePtr(DynamicDevice ptr)Do not take ownership of ptr.
 
 ptr can be null.
 
 The constructor is implicit on purpose.
 - 
Method SummaryAll Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description DynamicDevice__ref__()Dereferencing operator.voiddelete()DynamicDevicederef()The pointer stored in the object.booleanequals(DynamicDevice p)BodyPtrgetBase()static longgetCPtr(DynamicDevicePtr obj)DynamicDevicegetDeref()Member access operator.QgetJointVelocities(State state)DevicePtrgetKinematicModel()BodyPtrVectorgetLinks()QgetQ(State state)booleanisNull()checks if the pointer is nullbooleanisShared()check if this Ptr has shared ownership or none
 ownershipvoidsetJointVelocities(Q vel, State state)voidsetQ(Q q, State state)
 
- 
- 
- 
Constructor Detail- 
DynamicDevicePtrpublic DynamicDevicePtr(long cPtr, boolean cMemoryOwn)
 - 
DynamicDevicePtrpublic DynamicDevicePtr() Default constructor yielding a NULL-pointer.
 - 
DynamicDevicePtrpublic DynamicDevicePtr(DynamicDevice ptr) Do not take ownership of ptr.
 
 ptr can be null.
 
 The constructor is implicit on purpose.
 
- 
 - 
Method Detail- 
getCPtrpublic static long getCPtr(DynamicDevicePtr obj) 
 - 
deletepublic void delete() 
 - 
derefpublic DynamicDevice deref() The pointer stored in the object.
 - 
__ref__public DynamicDevice __ref__() Dereferencing operator.
 - 
getDerefpublic DynamicDevice getDeref() Member access operator.
 - 
equalspublic boolean equals(DynamicDevice p) 
 - 
isSharedpublic 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.
 
 - 
isNullpublic boolean isNull() checks if the pointer is null- Returns:
- Returns true if the pointer is null
 
 - 
getKinematicModelpublic DevicePtr getKinematicModel() 
 - 
getBasepublic BodyPtr getBase() 
 - 
getLinkspublic BodyPtrVector getLinks() 
 
- 
 
-