Rogue Wave Views |
Rogue Wave Views Documentation Home |
A generic quick sort algorithm. More...
#include <ilviews/layout/util/quicksort.h>
Inherited by IlvIncidentLinksSorter.
Public Member Functions | |
IlvQuickSort (IlInt size=0) | |
void | sort (IlInt=-1) |
Protected Member Functions | |
virtual IlBoolean | compare (IlUInt loc1, IlUInt loc2)=0 |
virtual void | swap (IlUInt, IlUInt)=0 |
A generic quick sort algorithm.
Library: ilvlayout
IlvQuickSort::IlvQuickSort | ( | IlInt | size = 0 | ) |
Creates a new instance of the quicksort.
size | The number of elements to be sorted. |
Compares two elements. For ascendant sort, must return IlTrue
if element(loc1) <= element(loc2), IlFalse
otherwise. For descendent sort, must return IlTrue
if element(loc1) >= element(loc2), IlFalse
otherwise.
void IlvQuickSort::sort | ( | IlInt | = -1 | ) |
Performs the quicksort.
© Copyright 2015, Rogue Wave Software, Inc. All Rights Reserved.
Rogue Wave is a registered trademark of Rogue Wave Software, Inc. in the United States and other countries. All other trademarks are the property of their respective owners.