![]() |
GrammarScope
4.0.0
|

Public Member Functions | |
| SlotAllocatorForIndexRanges0 (final List< T > elements) | |
| Integer | getSlot (final T element) |
| int | getMaxSlot () |
Private Member Functions | |
| SlotAllocatorForIndexRanges0 () | |
| void | layout (final List< T > elements) |
| int | allocate (final T element0, final Collection< T > elements) |
| boolean | overlap (final T element1, final T element2) |
Private Attributes | |
| final Map< T, Integer > | slots |
| int | maxSlot |
Vertical slot allocator for indexed ranges (each having low and high indices)
|
private |
Constructor
| grammarscope.allocator.SlotAllocatorForIndexRanges0< T extends HasIndices >.SlotAllocatorForIndexRanges0 | ( | final List< T > | elements | ) |
Constructor
| elements | elements to allocate slots for |
|
private |
Allocate height slot (0-based)
| element0 | target element to find height for |
| elements | element set |
| int grammarscope.allocator.SlotAllocatorForIndexRanges0< T extends HasIndices >.getMaxSlot | ( | ) |
Get max slot
| Integer grammarscope.allocator.SlotAllocatorForIndexRanges0< T extends HasIndices >.getSlot | ( | final T | element | ) |
Get slot
| element | element |
|
private |
Layout element heights
| elements | ordered elements |
|
private |
Whether elements overlap
| element1 | element |
| element2 | element |
|
private |
Max slot
|
private |
One slot per segment
1.8.17