edu.stanford.math.plex4.streams.storage_structures
T
- public interface StreamStorageStructure<T> extends java.lang.Iterable<T>
Modifier and Type | Method and Description |
---|---|
void |
addElement(T basisElement,
int filtrationIndex)
This function adds the given basis element to the storage structure, with
the supplied filtration index.
|
boolean |
containsElement(T basisElement)
This function returns true if the stream contains the given basis element,
and false otherwise.
|
void |
finalizeStructure()
This function sets the stream as being finalized.
|
java.util.Comparator<T> |
getBasisComparator()
This function returns a Comparator
|
int |
getFiltrationIndex(T basisElement)
This function returns the filtration index of the given basis element.
|
int |
getMaximumFiltrationIndex()
This function gets the maximum filtration index in the complex.
|
int |
getMinimumFiltrationIndex()
This function gets the minimum filtration index in the complex.
|
int |
getSize()
This function returns the number of elements in the storage structure.
|
boolean |
isFinalized()
This function returns true if the stream has been finalized.
|
void |
removeElement(T basisElement)
This function removes the specified element form the storage structure.
|
void addElement(T basisElement, int filtrationIndex)
basisElement
- the basis element to addfiltrationIndex
- the filtration index of the basis elementvoid removeElement(T basisElement)
basisElement
- the basisElement to removeboolean containsElement(T basisElement)
basisElement
- the basis element to queryint getFiltrationIndex(T basisElement)
basisElement
- the element to queryvoid finalizeStructure()
boolean isFinalized()
java.util.Comparator<T> getBasisComparator()
int getSize()
int getMaximumFiltrationIndex()
int getMinimumFiltrationIndex()