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