#include <InsertionSort.H>
Moves elements for 1 array
Public Member Functions | |
Move1Array (T *const array) | |
void | copy (const int i, const int j) |
void | save (const int i) |
void | restore (const int i) |
Private Attributes | |
T | m_tmp |
T *const | m_array |
Sort::Move1Array< T >::Move1Array | ( | T *const | array | ) | [inline] |
void Sort::Move1Array< T >::copy | ( | const int | i, | |
const int | j | |||
) | [inline] |
References Sort::Move1Array< T >::m_array.
void Sort::Move1Array< T >::save | ( | const int | i | ) | [inline] |
References Sort::Move1Array< T >::m_array, and Sort::Move1Array< T >::m_tmp.
void Sort::Move1Array< T >::restore | ( | const int | i | ) | [inline] |
References Sort::Move1Array< T >::m_array, and Sort::Move1Array< T >::m_tmp.
T Sort::Move1Array< T >::m_tmp [private] |
Referenced by Sort::Move1Array< T >::restore(), and Sort::Move1Array< T >::save().
T* const Sort::Move1Array< T >::m_array [private] |
Referenced by Sort::Move1Array< T >::copy(), Sort::Move1Array< T >::restore(), and Sort::Move1Array< T >::save().