Package org.robwork.sdurw_assembly
Class AssemblyRegistryPtr
- java.lang.Object
-
- org.robwork.sdurw_assembly.AssemblyRegistryPtr
-
public class AssemblyRegistryPtr extends java.lang.Object
Ptr stores a pointer and optionally takes ownership of the value.
-
-
Constructor Summary
Constructors Constructor Description AssemblyRegistryPtr()
Default constructor yielding a NULL-pointer.AssemblyRegistryPtr(long cPtr, boolean cMemoryOwn)
AssemblyRegistryPtr(AssemblyRegistry 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 AssemblyRegistry
__ref__()
Dereferencing operator.void
addStrategy(java.lang.String id, AssemblyControlStrategyPtr strategy)
void
delete()
AssemblyRegistry
deref()
The pointer stored in the object.boolean
equals(AssemblyRegistry p)
static long
getCPtr(AssemblyRegistryPtr obj)
AssemblyRegistry
getDeref()
Member access operator.vector_s
getStrategies()
AssemblyControlStrategyPtr
getStrategy(java.lang.String id)
boolean
hasStrategy(java.lang.String id)
boolean
isNull()
checks if the pointer is nullboolean
isShared()
check if this Ptr has shared ownership or none
ownership
-
-
-
Constructor Detail
-
AssemblyRegistryPtr
public AssemblyRegistryPtr(long cPtr, boolean cMemoryOwn)
-
AssemblyRegistryPtr
public AssemblyRegistryPtr()
Default constructor yielding a NULL-pointer.
-
AssemblyRegistryPtr
public AssemblyRegistryPtr(AssemblyRegistry ptr)
Do not take ownership of ptr.
ptr can be null.
The constructor is implicit on purpose.
-
-
Method Detail
-
getCPtr
public static long getCPtr(AssemblyRegistryPtr obj)
-
delete
public void delete()
-
deref
public AssemblyRegistry deref()
The pointer stored in the object.
-
__ref__
public AssemblyRegistry __ref__()
Dereferencing operator.
-
getDeref
public AssemblyRegistry getDeref()
Member access operator.
-
equals
public boolean equals(AssemblyRegistry 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
-
addStrategy
public void addStrategy(java.lang.String id, AssemblyControlStrategyPtr strategy)
-
getStrategies
public vector_s getStrategies()
-
hasStrategy
public boolean hasStrategy(java.lang.String id)
-
getStrategy
public AssemblyControlStrategyPtr getStrategy(java.lang.String id)
-
-