Main Page   Namespace List   Class Hierarchy   Compound List   File List   Namespace Members   Compound Members  

mpcl::util::strategy::TBubbleSortAlgorithm< TSequence > Class Template Reference

#include <bubble_sort_algorithm.hh>

Inheritance diagram for mpcl::util::strategy::TBubbleSortAlgorithm< TSequence >:

mpcl::util::strategy::ISortAlgorithm< TSequence > List of all members.

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)

Detailed Description

template<typename TSequence>
class mpcl::util::strategy::TBubbleSortAlgorithm< TSequence >

Bubble-sort algorithm.

Requires:

TSequence::begin() TSequence::const_iterator TSequence::end() TSequence::iterator TSequence::size()

Definition at line 56 of file bubble_sort_algorithm.hh.


Member Function Documentation

template<typename TSequence>
void mpcl::util::strategy::TBubbleSortAlgorithm< TSequence >::execute TSequence &    rtSOURCE_SEQUENCE [inline, virtual]
 

Applies the bubble-sort algorithm over the sequence of items rtSOURCE_SEQUENCE.

Parameters:
rtSOURCE_SEQUENCE  Source sequence.

Implements mpcl::util::strategy::ISortAlgorithm< TSequence >.

Definition at line 79 of file bubble_sort_algorithm.hh.

References mpcl::util::strategy::ISortAlgorithm< TSequence >::swap().


The documentation for this class was generated from the following file:
Generated on Mon Oct 13 02:35:27 2003 for MPCL by doxygen1.2.18