Package org.robwork.sdurw
Class PathTimedStatePtr
- java.lang.Object
-
- org.robwork.sdurw.PathTimedStatePtr
-
public class PathTimedStatePtr extends java.lang.Object
Ptr 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.void
append(PathTimedStatePtr spath)
long
capacity()
void
clear()
PathTimedStateCPtr
cptr()
void
delete()
PathTimedState
deref()
The pointer stored in the object.TimedState
elem(long idx)
boolean
equals(PathTimedState p)
static long
getCPtr(PathTimedStatePtr obj)
PathTimedState
getDeref()
Member access operator.boolean
isEmpty()
boolean
isNull()
checks if the pointer is nullboolean
isShared()
check if this Ptr has shared ownership or none
ownershipPathTimedStatePtr
load(java.lang.String filename, WorkCellPtr wc)
void
reserve(long n)
void
save(java.lang.String filename, WorkCellPtr wc)
int
size()
-
-
-
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()
-
-