
Classes | |
| class | FwdIterator |
| class | Node< V1 > |
| class | OverlapIterator |
| class | RevIterator |
| class | ValuesIterator< V1 > |
Public Member Functions | |
| int | size () |
| boolean | isEmpty () |
| void | clear () |
| V | put (Interval interval, V value) |
| V | put (int start, int end, V value) |
| V | placeInTree (int start, int end, V value) |
| V | remove (Interval interval) |
| V | remove (int start, int end) |
| V | remove (int start, int end, V value) |
| Node< V > | find (Interval interval) |
| Node< V > | find (int start, int end) |
| Node< V > | findByIndex (int idx) |
| int | getIndex (Interval interval) |
| int | getIndex (int start, int end) |
| Node< V > | min () |
| Node< V > | min (Interval interval) |
| Node< V > | min (int start, int end) |
| Node< V > | minOverlapper (Interval interval) |
| Node< V > | minOverlapper (int start, int end) |
| Collection< V > | toCollection () |
| List< V > | toList () |
| Node< V > | max () |
| Node< V > | max (Interval interval) |
| Node< V > | max (int start, int end) |
| Iterator< Node< V > > | iterator () |
| Iterator< V > | valueIterator () |
| Iterator< Node< V > > | iterator (Interval interval) |
| Iterator< Node< V > > | iterator (int start, int end) |
| Iterator< Node< V > > | overlappers (int start, int end) |
| Iterator< V > | overlappingValueIterator (int start, int end) |
| int | numOverlappers (int start, int end) |
| Iterator< Node< V > > | reverseIterator () |
| Iterator< Node< V > > | reverseIterator (Interval interval) |
| Iterator< Node< V > > | reverseIterator (int start, int end) |
| V | getSentinel () |
| V | setSentinel (V sentinel) |
| void | write (String fileName) throws IOException |
| void | write (BufferedWriter bw) throws IOException |
| boolean | doesOverlap (int start, int end) |
A Red-Black tree with intervals for keys. Not thread-safe, and cannot be made so.
| void broad.core.datastructures.IntervalTree< V >.clear | ( | ) |
Remove all entries.
| boolean broad.core.datastructures.IntervalTree< V >.doesOverlap | ( | int | start, |
| int | end | ||
| ) |
| Node<V> broad.core.datastructures.IntervalTree< V >.find | ( | Interval | interval | ) |
Find an interval.
| interval | The interval sought. |

| Node<V> broad.core.datastructures.IntervalTree< V >.find | ( | int | start, |
| int | end | ||
| ) |
Find an interval.
| start | The interval's start. |
| end | The interval's end. |
| Node<V> broad.core.datastructures.IntervalTree< V >.findByIndex | ( | int | idx | ) |
Find the nth interval in the tree.
| idx | The rank of the interval sought (from 0 to size()-1). |
| int broad.core.datastructures.IntervalTree< V >.getIndex | ( | Interval | interval | ) |
Find the rank of the specified interval. If the specified interval is not in the tree, then -1 is returned.
| interval | The interval for which the index is sought. |

| int broad.core.datastructures.IntervalTree< V >.getIndex | ( | int | start, |
| int | end | ||
| ) |
Find the rank of the specified interval. If the specified interval is not in the tree, then -1 is returned.
| start | The interval's start. |
| end | The interval's end. |
| V broad.core.datastructures.IntervalTree< V >.getSentinel | ( | ) |
Get the special sentinel value that will be used to signal novelty when putting a new interval into the tree, or to signal "not found" when removing an interval. This is null by default.
| boolean broad.core.datastructures.IntervalTree< V >.isEmpty | ( | ) |
| Iterator<Node<V> > broad.core.datastructures.IntervalTree< V >.iterator | ( | ) |
Return an iterator over the entire tree.
| Iterator<Node<V> > broad.core.datastructures.IntervalTree< V >.iterator | ( | Interval | interval | ) |
Return an iterator over all intervals greater than or equal to the specified interval.
| interval | The minimum interval. |

| Iterator<Node<V> > broad.core.datastructures.IntervalTree< V >.iterator | ( | int | start, |
| int | end | ||
| ) |
Return an iterator over all intervals greater than or equal to the specified interval.
| start | The interval's start. |
| end | The interval's end. |
| Node<V> broad.core.datastructures.IntervalTree< V >.max | ( | ) |
Find the greatest interval in the tree.
| Node<V> broad.core.datastructures.IntervalTree< V >.max | ( | Interval | interval | ) |
Find the latest interval in the tree less than or equal to the specified interval.
| interval | The interval sought. |

| Node<V> broad.core.datastructures.IntervalTree< V >.max | ( | int | start, |
| int | end | ||
| ) |
Find the latest interval in the tree less than or equal to the specified interval.
| start | The interval's start. |
| end | The interval's end. |
| Node<V> broad.core.datastructures.IntervalTree< V >.min | ( | ) |
Find the least interval in the tree.
| Node<V> broad.core.datastructures.IntervalTree< V >.min | ( | Interval | interval | ) |
Find the earliest interval in the tree greater than or equal to the specified interval.
| interval | The interval sought. |

| Node<V> broad.core.datastructures.IntervalTree< V >.min | ( | int | start, |
| int | end | ||
| ) |
Find the earliest interval in the tree greater than or equal to the specified interval.
| start | The interval's start. |
| end | The interval's end. |
| Node<V> broad.core.datastructures.IntervalTree< V >.minOverlapper | ( | Interval | interval | ) |
Find the earliest interval in the tree that overlaps the specified interval.
| interval | The interval sought. |

| Node<V> broad.core.datastructures.IntervalTree< V >.minOverlapper | ( | int | start, |
| int | end | ||
| ) |
Find the earliest interval in the tree that overlaps the specified interval.
| start | The interval's start. |
| end | The interval's end. |
| int broad.core.datastructures.IntervalTree< V >.numOverlappers | ( | int | start, |
| int | end | ||
| ) |
| Iterator<Node<V> > broad.core.datastructures.IntervalTree< V >.overlappers | ( | int | start, |
| int | end | ||
| ) |
Return an iterator over all intervals overlapping the specified range.
| start | The range start. |
| end | The range end. |
| Iterator<V> broad.core.datastructures.IntervalTree< V >.overlappingValueIterator | ( | int | start, |
| int | end | ||
| ) |
| V broad.core.datastructures.IntervalTree< V >.placeInTree | ( | int | start, |
| int | end, | ||
| V | value | ||
| ) |
Put a new interval into the tree (or update the value associated with an existing interval). If the interval is novel, the special sentinel value is returned.
| start | The interval's start. |
| end | The interval's end. |
| value | The associated value. |
| V broad.core.datastructures.IntervalTree< V >.put | ( | Interval | interval, |
| V | value | ||
| ) |
Put a new interval into the tree (or update the value associated with an existing interval). If the interval is novel, the special sentinel value is returned.
| interval | The interval. |
| value | The associated value. |

| V broad.core.datastructures.IntervalTree< V >.put | ( | int | start, |
| int | end, | ||
| V | value | ||
| ) |
Rewrote put to check that there is an already existing node
| V broad.core.datastructures.IntervalTree< V >.remove | ( | Interval | interval | ) |
Remove an interval from the tree. If the interval does not exist in the tree the special sentinel value is returned.
| interval | The interval to remove. |
| V broad.core.datastructures.IntervalTree< V >.remove | ( | int | start, |
| int | end | ||
| ) |
Remove an interval from the tree. If the interval does not exist in the tree the special sentinel value is returned.
| start | The interval's start. |
| end | The interval's end. |
| V broad.core.datastructures.IntervalTree< V >.remove | ( | int | start, |
| int | end, | ||
| V | value | ||
| ) |
Remove a specific value from this position
| start | |
| end | |
| value |
| Iterator<Node<V> > broad.core.datastructures.IntervalTree< V >.reverseIterator | ( | ) |
Return an iterator over the entire tree that returns intervals in reverse order.
| Iterator<Node<V> > broad.core.datastructures.IntervalTree< V >.reverseIterator | ( | Interval | interval | ) |
Return an iterator over all intervals less than or equal to the specified interval, in reverse order.
| interval | The maximum interval. |

| Iterator<Node<V> > broad.core.datastructures.IntervalTree< V >.reverseIterator | ( | int | start, |
| int | end | ||
| ) |
Return an iterator over all intervals less than or equal to the specified interval, in reverse order.
| start | The interval's start. |
| end | The interval's end. |
| V broad.core.datastructures.IntervalTree< V >.setSentinel | ( | V | sentinel | ) |
Set the special sentinel value that will be used to signal novelty when putting a new interval into the tree, or to signal "not found" when removing an interval.
| sentinel | The new sentinel value. |
| int broad.core.datastructures.IntervalTree< V >.size | ( | ) |
Return the number of intervals in the tree.
| Collection<V> broad.core.datastructures.IntervalTree< V >.toCollection | ( | ) |
| List<V> broad.core.datastructures.IntervalTree< V >.toList | ( | ) |
| Iterator<V> broad.core.datastructures.IntervalTree< V >.valueIterator | ( | ) |
Return an iterator over the entire tree values
| void broad.core.datastructures.IntervalTree< V >.write | ( | String | fileName | ) | throws IOException |
| void broad.core.datastructures.IntervalTree< V >.write | ( | BufferedWriter | bw | ) | throws IOException |
1.8.7