|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectchoco.kernel.memory.copy.RcVector<E>
public final class RcVector<E>
Created by IntelliJ IDEA. User: Julien Date: 29 mars 2007 Time: 12:22:50 To change this template use File | Settings | File Templates.
Field Summary |
---|
Fields inherited from interface choco.kernel.memory.IStateVector |
---|
MIN_CAPACITY |
Fields inherited from interface choco.kernel.memory.copy.RecomputableElement |
---|
BOOL, DOUBLE, DOUBLEVECTOR, INT, INTVECTOR, LONG, LONGVECTOR, NB_TYPE, OBJECT, VECTOR |
Constructor Summary | |
---|---|
RcVector(EnvironmentCopying env)
|
|
RcVector(int[] entries)
|
Method Summary | |
---|---|
void |
_set(E[] vals)
|
void |
_set(E[] vals,
int timeStamp)
|
boolean |
add(E i)
Adds a new search at the end of the vector. |
E[] |
deepCopy()
|
void |
ensureCapacity(int minCapacity)
Checks if the capacity is great enough, else the capacity is extended. |
E |
get(int index)
Returns the index th element of the vector. |
int |
getTimeStamp()
|
int |
getType()
|
boolean |
isEmpty()
Checks if the vector is empty. |
void |
removeLast()
removes the search at the end of the vector. |
E |
set(int index,
E val)
Assigns a new value val to the element index . |
int |
size()
Returns the current size of the stored search vector. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public RcVector(EnvironmentCopying env)
public RcVector(int[] entries)
Method Detail |
---|
public int size()
size
in interface IStateVector<E>
public boolean isEmpty()
isEmpty
in interface IStateVector<E>
public void ensureCapacity(int minCapacity)
ensureCapacity
in interface IStateVector<E>
minCapacity
- the necessary capacity.public boolean add(E i)
add
in interface IStateVector<E>
i
- The search to add.public void removeLast()
removeLast
in interface IStateVector<E>
public E get(int index)
index
th element of the vector.
get
in interface IStateVector<E>
public E set(int index, E val)
val
to the element index
.
set
in interface IStateVector<E>
public void _set(E[] vals)
public void _set(E[] vals, int timeStamp)
public E[] deepCopy()
public int getType()
getType
in interface RecomputableElement
public int getTimeStamp()
getTimeStamp
in interface RecomputableElement
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |