Package org.robwork.sdurw
Class PathTimedStatePtr
- java.lang.Object
-
- org.robwork.sdurw.PathTimedStatePtr
-
public class PathTimedStatePtr extends java.lang.ObjectPtr stores a pointer and optionally takes ownership of the value.
-
-
Constructor Summary
Constructors Constructor Description PathTimedStatePtr()Default constructor yielding a NULL-pointer.PathTimedStatePtr(long cPtr, boolean cMemoryOwn)PathTimedStatePtr(PathTimedState 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 PathTimedState__ref__()Dereferencing operator.voidappend(PathTimedStatePtr spath)longcapacity()voidclear()PathTimedStateCPtrcptr()voiddelete()PathTimedStatederef()The pointer stored in the object.TimedStateelem(long idx)booleanequals(PathTimedState p)static longgetCPtr(PathTimedStatePtr obj)PathTimedStategetDeref()Member access operator.booleanisEmpty()booleanisNull()checks if the pointer is nullbooleanisShared()check if this Ptr has shared ownership or none
ownershipPathTimedStatePtrload(java.lang.String filename, WorkCellPtr wc)voidreserve(long n)voidsave(java.lang.String filename, WorkCellPtr wc)intsize()
-
-
-
Constructor Detail
-
PathTimedStatePtr
public PathTimedStatePtr(long cPtr, boolean cMemoryOwn)
-
PathTimedStatePtr
public PathTimedStatePtr()
Default constructor yielding a NULL-pointer.
-
PathTimedStatePtr
public PathTimedStatePtr(PathTimedState ptr)
Do not take ownership of ptr.
ptr can be null.
The constructor is implicit on purpose.
-
-
Method Detail
-
getCPtr
public static long getCPtr(PathTimedStatePtr obj)
-
delete
public void delete()
-
deref
public PathTimedState deref()
The pointer stored in the object.
-
__ref__
public PathTimedState __ref__()
Dereferencing operator.
-
getDeref
public PathTimedState getDeref()
Member access operator.
-
equals
public boolean equals(PathTimedState 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
-
cptr
public PathTimedStateCPtr cptr()
-
size
public int size()
-
elem
public TimedState elem(long idx)
-
load
public PathTimedStatePtr load(java.lang.String filename, WorkCellPtr wc)
-
save
public void save(java.lang.String filename, WorkCellPtr wc)
-
append
public void append(PathTimedStatePtr spath)
-
capacity
public long capacity()
-
reserve
public void reserve(long n)
-
isEmpty
public boolean isEmpty()
-
clear
public void clear()
-
-