TSwap Class Reference

class TSwap

Defines the basic behaviour for swapping two elements of an array.

The class is abstract. A derived class must be defined and implemented to use the functionality.

A derived class can define how to swap two elements of an array. In practice, this means providing an implementation for the virtual function Swap().

To support this, the derived class is also likely to need a pointer to the array itself and suitable constructors and/or other member functions to set such a pointer.

Public Member Functions
TSwap()
IMPORT_C voidSwap(TInt, TInt)

Constructor & Destructor Documentation

TSwap()

IMPORT_CTSwap()

Member Functions Documentation

Swap(TInt, TInt)

IMPORT_C voidSwap(TIntaLeft,
TIntaRight
)const [virtual]

Parameters

TInt aLeft
TInt aRight