Experimental Code
Code Written To Experiment With Various Techniques And Otherwise Not Very Useful...
Experiment::NoSortMetrics< T > Class Template Reference

Do-nothing Metric-collector for major actions done by ListMergeSort. More...

#include <ListMergeSort.h>

Public Member Functions

void compare (const T &a, const T &b)
 a and b are compared More...
 
void swap ()
 Two items were swapped. More...
 
void done ()
 The sort completed. More...
 
void reset ()
 Metrics should be reset due to starting a new sort. More...
 

Detailed Description

template<class T>
class Experiment::NoSortMetrics< T >

Do-nothing Metric-collector for major actions done by ListMergeSort.

This serves as a placeholder should you wish to perform metrics on a sort.

Template Parameters
typeof data being sorted

Definition at line 34 of file ListMergeSort.h.

Member Function Documentation

◆ compare()

template<class T >
void Experiment::NoSortMetrics< T >::compare ( const T &  a,
const T &  b 
)
inline

a and b are compared

Definition at line 37 of file ListMergeSort.h.

◆ done()

template<class T >
void Experiment::NoSortMetrics< T >::done ( )
inline

The sort completed.

Definition at line 43 of file ListMergeSort.h.

◆ reset()

template<class T >
void Experiment::NoSortMetrics< T >::reset ( )
inline

Metrics should be reset due to starting a new sort.

Definition at line 46 of file ListMergeSort.h.

◆ swap()

template<class T >
void Experiment::NoSortMetrics< T >::swap ( )
inline

Two items were swapped.

Definition at line 40 of file ListMergeSort.h.


The documentation for this class was generated from the following file: