|
Unicorn XML Toolkit Version 1.50.00 |
|||||||||
� PREV CLASS �� NEXT CLASS | FRAMES��NO FRAMES | |||||||||
SUMMARY: � CONSTR �|� FUNCTION �|�DATA | DETAIL: � CONSTR �|� FUNCTION �|�DATA |
class CSortable { public: CSortable(); ~CSortable(); public: virtual int GetSize() const = 0; virtual int Compare(int nIndex1, int nIndex2) const = 0; virtual void Swap(int nIndex1, int nIndex2) = 0; };
The base class for arrays which can be sorted.
Constructor/Destructor Summary | |
CSortable
();
����������Constructs the sortable array. |
|
~CSortable
();
����������Destroys the sortable array. |
Function Summary | |
int
|
GetSize
() const;
����������Returns a number of elements in this sortable array. |
int
|
Compare
(int nIndex1, int nIndex2) const;
����������Compares two elements of this sortabe array. |
void
|
Swap
(int nIndex1, int nIndex2);
����������Swaps two elements of this sortable array. |
Constructor/Destructor Detail |
CSortable();
Constructs the sortable array.
~CSortable();
Destroys the sortable array.
Function Detail |
virtual int GetSize() const = 0;
Returns a number of elements in this sortable array.
virtual int Compare(int nIndex1, int nIndex2) const = 0;
Compares two elements of this sortabe array.
nIndex1
- the index of
the first element (zero-based)nIndex2
- the index of
the second element (zero-based)virtual void Swap(int nIndex1, int nIndex2) = 0;
Swaps two elements of this sortable array.
nIndex1
- the index of
the first element (zero-based)nIndex2
- the index of
the second element (zero-based)
|
Unicorn XML Toolkit Version 1.50.00 |
|||||||||
� PREV CLASS �� NEXT CLASS | FRAMES��NO FRAMES | |||||||||
SUMMARY: � CONSTR �|� FUNCTION �|�DATA | DETAIL: � CONSTR �|� FUNCTION �|�DATA |