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