Package org.robwork.sdurw_kinematics
Class VectorStateDataPtr
- java.lang.Object
-
- java.util.AbstractCollection<E>
-
- java.util.AbstractList<StateDataPtr>
-
- org.robwork.sdurw_kinematics.VectorStateDataPtr
-
- All Implemented Interfaces:
java.lang.Iterable<StateDataPtr>
,java.util.Collection<StateDataPtr>
,java.util.List<StateDataPtr>
,java.util.RandomAccess
public class VectorStateDataPtr extends java.util.AbstractList<StateDataPtr> implements java.util.RandomAccess
-
-
Constructor Summary
Constructors Constructor Description VectorStateDataPtr()
VectorStateDataPtr(int count, StateDataPtr value)
VectorStateDataPtr(long cPtr, boolean cMemoryOwn)
VectorStateDataPtr(java.lang.Iterable<StateDataPtr> initialElements)
VectorStateDataPtr(StateDataPtr[] initialElements)
VectorStateDataPtr(VectorStateDataPtr other)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description void
add(int index, StateDataPtr e)
boolean
add(StateDataPtr e)
long
capacity()
void
clear()
void
delete()
StateDataPtr
get(int index)
static long
getCPtr(VectorStateDataPtr obj)
boolean
isEmpty()
StateDataPtr
remove(int index)
void
reserve(long n)
StateDataPtr
set(int index, StateDataPtr e)
int
size()
-
Methods inherited from class java.util.AbstractList
addAll, equals, hashCode, indexOf, iterator, lastIndexOf, listIterator, listIterator, subList
-
-
-
-
Constructor Detail
-
VectorStateDataPtr
public VectorStateDataPtr(long cPtr, boolean cMemoryOwn)
-
VectorStateDataPtr
public VectorStateDataPtr(StateDataPtr[] initialElements)
-
VectorStateDataPtr
public VectorStateDataPtr(java.lang.Iterable<StateDataPtr> initialElements)
-
VectorStateDataPtr
public VectorStateDataPtr()
-
VectorStateDataPtr
public VectorStateDataPtr(VectorStateDataPtr other)
-
VectorStateDataPtr
public VectorStateDataPtr(int count, StateDataPtr value)
-
-
Method Detail
-
getCPtr
public static long getCPtr(VectorStateDataPtr obj)
-
delete
public void delete()
-
get
public StateDataPtr get(int index)
- Specified by:
get
in interfacejava.util.List<StateDataPtr>
- Specified by:
get
in classjava.util.AbstractList<StateDataPtr>
-
set
public StateDataPtr set(int index, StateDataPtr e)
- Specified by:
set
in interfacejava.util.List<StateDataPtr>
- Overrides:
set
in classjava.util.AbstractList<StateDataPtr>
-
add
public boolean add(StateDataPtr e)
- Specified by:
add
in interfacejava.util.Collection<StateDataPtr>
- Specified by:
add
in interfacejava.util.List<StateDataPtr>
- Overrides:
add
in classjava.util.AbstractList<StateDataPtr>
-
add
public void add(int index, StateDataPtr e)
- Specified by:
add
in interfacejava.util.List<StateDataPtr>
- Overrides:
add
in classjava.util.AbstractList<StateDataPtr>
-
remove
public StateDataPtr remove(int index)
- Specified by:
remove
in interfacejava.util.List<StateDataPtr>
- Overrides:
remove
in classjava.util.AbstractList<StateDataPtr>
-
size
public int size()
- Specified by:
size
in interfacejava.util.Collection<StateDataPtr>
- Specified by:
size
in interfacejava.util.List<StateDataPtr>
- Specified by:
size
in classjava.util.AbstractCollection<StateDataPtr>
-
capacity
public long capacity()
-
reserve
public void reserve(long n)
-
isEmpty
public boolean isEmpty()
- Specified by:
isEmpty
in interfacejava.util.Collection<StateDataPtr>
- Specified by:
isEmpty
in interfacejava.util.List<StateDataPtr>
- Overrides:
isEmpty
in classjava.util.AbstractCollection<StateDataPtr>
-
clear
public void clear()
- Specified by:
clear
in interfacejava.util.Collection<StateDataPtr>
- Specified by:
clear
in interfacejava.util.List<StateDataPtr>
- Overrides:
clear
in classjava.util.AbstractList<StateDataPtr>
-
-