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