+
Point of view
INTERNALS_HANDLER
expanded class COMPARATOR_COLLECTION_SORTER [X_]
Summary
Overview
Creation features
Exported features
  • is_sorted (c: COLLECTION[X_]): BOOLEAN
    Is c already sorted ? Uses lte for comparison.
  • has (c: COLLECTION[X_], element: X_): BOOLEAN
  • index_of (c: COLLECTION[X_], element: X_): INTEGER_32
  • add (c: COLLECTION[X_], element: X_)
    Add element in collection c keeping the sorted property.
  • insert_index (c: COLLECTION[X_], element: X_): INTEGER_32
    retrieve the upper index for which gt
  • sort (c: COLLECTION[X_])
    Sort c using the default most efficient sorting algorithm already implemented.
  • quick_sort (c: COLLECTION[X_])
    Sort c using the quick sort algorithm.
  • von_neuman_sort (c: COLLECTION[X_])
    Sort c using the Von Neuman algorithm.
  • heap_sort (c: COLLECTION[X_])
    Sort c using the heap sort algorithm.
  • bubble_sort (c: COLLECTION[X_])
    Sort c using the bubble sort algorithm.
set_comparator (a_comparator: FUNCTION[TUPLE[TUPLE 2[X_, X_]]])
effective procedure
comparator: FUNCTION[TUPLE[TUPLE 2[X_, X_]]]
writable attribute
is_sorted (c: COLLECTION[X_]): BOOLEAN
effective function
Is c already sorted ? Uses lte for comparison.
has (c: COLLECTION[X_], element: X_): BOOLEAN
effective function
index_of (c: COLLECTION[X_], element: X_): INTEGER_32
effective function
add (c: COLLECTION[X_], element: X_)
effective procedure
Add element in collection c keeping the sorted property.
insert_index (c: COLLECTION[X_], element: X_): INTEGER_32
effective function
retrieve the upper index for which gt
sort (c: COLLECTION[X_])
effective procedure
Sort c using the default most efficient sorting algorithm already implemented.
quick_sort (c: COLLECTION[X_])
effective procedure
Sort c using the quick sort algorithm.
von_neuman_sort (c: COLLECTION[X_])
effective procedure
Sort c using the Von Neuman algorithm.
heap_sort (c: COLLECTION[X_])
effective procedure
Sort c using the heap sort algorithm.
bubble_sort (c: COLLECTION[X_])
effective procedure
Sort c using the bubble sort algorithm.