public class StoredIndexedBipartiteSet extends Object
Modifier and Type | Class and Description |
---|---|
protected static class |
StoredIndexedBipartiteSet.BipartiteSetIterator |
Modifier and Type | Field and Description |
---|---|
protected StoredIndexedBipartiteSet.BipartiteSetIterator |
_cachedIterator |
protected IndexedObject[] |
idxToObjects
If objects are added to the list, a mapping from their
indexes is needed.
|
protected IStateInt |
last
The first element of the list
|
protected int[] |
list
The list of values
|
protected int[] |
position
The position of each element within the list.
|
Constructor and Description |
---|
StoredIndexedBipartiteSet(IEnvironment environment,
int[] values) |
Modifier and Type | Method and Description |
---|---|
int[] |
_getStructure()
DO NOT USE : FOR MEMORY OPTIM ONLY
|
void |
add(int i)
Deprecated.
|
void |
buildList(IEnvironment environment,
int[] values) |
void |
clear()
Deprecated.
|
boolean |
contains(IndexedObject object)
Deprecated.
|
boolean |
contains(int object) |
int |
findIndexOfInt(int a)
Deprecated.
|
int |
get(int index)
Deprecated.
|
DisposableIntIterator |
getIterator() |
boolean |
isEmpty() |
String |
pretty() |
void |
remove(IndexedObject object)
Deprecated.
|
void |
remove(int object) |
void |
removeLast()
Deprecated.
|
int |
set(int index,
int val)
Deprecated.
|
int |
size() |
protected int[] list
protected int[] position
protected IndexedObject[] idxToObjects
protected IStateInt last
protected StoredIndexedBipartiteSet.BipartiteSetIterator _cachedIterator
public StoredIndexedBipartiteSet(IEnvironment environment, int[] values)
environment
- the environmentvalues:
- a set of DIFFERENT positive integer values !public void buildList(IEnvironment environment, int[] values)
public final int size()
public final boolean isEmpty()
@Deprecated public final void add(int i)
@Deprecated public final void clear()
@Deprecated public final void removeLast()
public void remove(int object)
@Deprecated public final void remove(IndexedObject object)
public boolean contains(int object)
@Deprecated public final boolean contains(IndexedObject object)
@Deprecated public final int get(int index)
@Deprecated public final int set(int index, int val)
public final DisposableIntIterator getIterator()
public final String pretty()
@Deprecated public final int findIndexOfInt(int a)
public final int[] _getStructure()
Copyright © 2017. All rights reserved.