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