#include <bubble_sort_algorithm.hh>
Inheritance diagram for mpcl::util::strategy::TBubbleSortAlgorithm< TSequence >:
Public Types | |
typedef ISortAlgorithm< TSequence >::iterator | iterator |
Iterator for sequences. | |
typedef ISortAlgorithm< TSequence >::const_iterator | const_iterator |
Constant iterator for sequences. | |
Public Methods | |
void | execute (TSequence &rtSOURCE_SEQUENCE) |
Requires:
TSequence::begin() TSequence::const_iterator TSequence::end() TSequence::iterator TSequence::size()
Definition at line 56 of file bubble_sort_algorithm.hh.
|
Applies the bubble-sort algorithm over the sequence of items rtSOURCE_SEQUENCE.
Implements mpcl::util::strategy::ISortAlgorithm< TSequence >. Definition at line 79 of file bubble_sort_algorithm.hh. References mpcl::util::strategy::ISortAlgorithm< TSequence >::swap(). |