#include <sort_algorithm.hh>
Inheritance diagram for mpcl::util::strategy::ISortAlgorithm< TSequence >:

Public Types | |
| typedef TSequence::const_iterator | const_iterator |
| Constant iterator for sequences. | |
| typedef TSequence::iterator | iterator |
| Iterator for sequences. | |
| typedef TSequence::value_type | value_type |
| Value type for sequences. | |
Public Methods | |
| virtual void | execute (TSequence &rtSOURCE_SEQUENCE)=0 |
Protected Methods | |
| void | swap (value_type &rtFIRST_ITEM, value_type &rtSECOND_ITEM) |
Sort algorithms from STL are template functions, but these lets the client to extends these algorithms using OOP techniques.
Requires:
TSequence::const_iterator TSequence::begin() TSequence::end() TSequence::push_back() TSequence::value_type
Definition at line 57 of file sort_algorithm.hh.
|
||||||||||
|
Applies the sort algorithm over the sequence of items rtSOURCE_SEQUENCE.
Implemented in mpcl::util::strategy::TBubbleSortAlgorithm< TSequence >, and mpcl::util::strategy::TQuickSortAlgorithm< TSequence >. |
|
||||||||||||||||
|
Swaps values of items rtFIRST_ITEM and rtSECOND_ITEM.
Definition at line 103 of file sort_algorithm.hh. References mpcl::util::strategy::ISortAlgorithm< TSequence >::value_type. Referenced by mpcl::util::strategy::TBubbleSortAlgorithm< TSequence >::execute(), and mpcl::util::strategy::TQuickSortAlgorithm< TSequence >::sort(). |
1.2.18