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