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