Package org.robwork.sdurw
Class StateCache
- java.lang.Object
-
- org.robwork.sdurw.StateCache
-
public class StateCache extends java.lang.Object
the basic building block for the stateless desing using
the StateStructure class. A StateCache represents a size,
a unique id, and a unique name, when inserted into the StateStructure.
The size will allocate "size"-doubles in State objects originating from the
StateStructure.
-
-
Constructor Summary
Constructors Constructor Description StateCache(long cPtr, boolean cMemoryOwn)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description StateCachePtr
clone()
this creates a deep copy of this cachevoid
delete()
static long
getCPtr(StateCache obj)
long
size()
The number of doubles allocated by this StateCache in
each State object.
-
-
-
Method Detail
-
getCPtr
public static long getCPtr(StateCache obj)
-
delete
public void delete()
-
size
public long size()
The number of doubles allocated by this StateCache in
each State object.
- Returns:
- The number of doubles allocated by the StateCache
-
clone
public StateCachePtr clone()
this creates a deep copy of this cache
-
-