#include <sort.h>

Public Member Functions | |
| SortingAlgorithm (void) | |
| virtual | ~SortingAlgorithm () | 
| virtual void | operator() (RandomAccess< T > &array, int from, int to, SortOrder order=ASCENDING) | 
| virtual void | sort (RandomAccess< T > &array, int from, int to, SortOrder order=ASCENDING)=0 | 
RandomAccess interface (that is, elements of any data structure which is derived from the abstract base class RandomAccess) can be sorted using the sorting algorithms encapsulated in the derived concrete classes. | seal::SortingAlgorithm< T >::SortingAlgorithm | ( | void | ) |  [inline] | 
        
Default constructor.
| virtual seal::SortingAlgorithm< T >::~SortingAlgorithm | ( | ) |  [inline, virtual] | 
        
Virtual destructor.
| virtual void seal::SortingAlgorithm< T >::operator() | ( | RandomAccess< T > & | array, | |
| int | from, | |||
| int | to, | |||
| SortOrder |  order = ASCENDING | |||
| ) |  [inline, virtual] | 
        
The operator which performs the actual sorting of the elements in the derived concrete classes.
| array | The data structure whose elements will be sorted. | |
| from | The elements starting from this index in the data structure will be sorted in the order requested. | |
| to | The elements upto this index in the data structure will be sorted in the order requested. | |
| order | The order in which the elements will be sorted. | 
Reimplemented in seal::BubbleSort< T >, and seal::MergeSort< T >.
| virtual void seal::SortingAlgorithm< T >::sort | ( | RandomAccess< T > & | array, | |
| int | from, | |||
| int | to, | |||
| SortOrder |  order = ASCENDING | |||
| ) |  [pure virtual] | 
        
Virtual function which performs the actual sorting of the elements in the derived concrete classes.
| array | The data structure whose elements will be sorted. | |
| from | The elements starting from this index in the data structure will be sorted in the order requested. | |
| to | The elements upto this index in the data structure will be sorted in the order requested. | |
| order | The order in which the elements will be sorted. | 
Implemented in seal::BubbleSort< T >, and seal::MergeSort< T >.
 1.5.5