qtil
advanced-security/qtil-swift 0.0.3
Search

Class Ordered::Type

Abstract class which should be extended to create a type which is ordered and not grouped.

If the ordered data should be grouped (for instance, ordering variables by line number and grouping by file), use Ordered<T>::GroupBy<G>::Type instead.

To use this class, extend it e.g. class OrderedInt extends Ordered<int>::Type and implement the member int getOrder(), which is used to order the items. getOrder must be unique across items in the list to ensure correctness.

Import path

import qtil.list.Ordered

Direct supertypes

Predicates

getDenseIndex

Returns the index of this item in the dense list.

getListEntry

Get the underlying CondensedList::Global::ListEntry for this item.

getNext

Returns the next item in the list.

getOrder

Items are ordered by the result of this member predicate.

getPrevious

Returns the previous item in the list.

Inherited predicates