Experimental Code
Code Written To Experiment With Various Techniques And Otherwise Not Very Useful...
Experiment Namespace Reference

This file is to be included at the end of Iterator.h. More...

Namespaces

 DoubleLinkedListImpl
 Implementation Details of a DoubleLinkedList.
 

Classes

class  DoubleLinkedList
 DoubleLinkedList which can be iterated via DoubleLinkedList::iterator. More...
 
class  Iterator
 Iterator class that works genericly on a List containing Node elements with data of type T. More...
 
class  NoSortMetrics
 Do-nothing Metric-collector for major actions done by ListMergeSort. More...
 
class  ListMergeSort
 Merge Sort algorithm using lists to hold the data. More...
 
class  PointerLess
 Comparison of two pointers values using operator<. More...
 

Functions

template<class T , class List , class Node >
void swap (Iterator< T, List, Node > &a, Iterator< T, List, Node > &b)
 Swap the values at a and b. More...
 
template<class T , class List , class Node >
void moveBefore (Iterator< T, List, Node > &a, Iterator< T, List, Node > &b)
 Move the value at a before b. More...
 

Detailed Description

This file is to be included at the end of Iterator.h.

Namespace of the Experiment Code.

Function Documentation

◆ moveBefore()

template<class T , class List , class Node >
void Experiment::moveBefore ( Iterator< T, List, Node > &  a,
Iterator< T, List, Node > &  b 
)

Move the value at a before b.

Parameters
athe Iterator to move the value of before b
bthe Iterator to move the value of a before
Template Parameters
Tthe type of data held by the Nodes
Listthe type of list this iterates
Nodethe type of Node in the list

Definition at line 100 of file Iterator.h.

◆ swap()

template<class T , class List , class Node >
void Experiment::swap ( Iterator< T, List, Node > &  a,
Iterator< T, List, Node > &  b 
)

Swap the values at a and b.

Parameters
athe Iterator to swap values with b
bthe Iterator to swap values with a
Template Parameters
Tthe type of data held by the Nodes
Listthe type of list this iterates
Nodethe type of Node in the list

Definition at line 86 of file Iterator.h.