|
Unicorn XML Toolkit Version 1.00.00 |
|||||||||
� PREV CLASS �� NEXT CLASS | FRAMES��NO FRAMES | |||||||||
SUMMARY: � CONSTR �|� FUNCTION �|�DATA | DETAIL: � CONSTR �|� FUNCTION �|�DATA |
class CSortKey: public CInterface { public: CSortKey(int nPosition); ~CSortKey(); public: void Add(const CString &strKey); int GetPosition(); int GetSize(); CString GetAt(int nIndex); };
The sort key.
When an array of document nodes is sorted, the sort key is evaluated for every node in the array. Every sort key is an ordered sequence of string segment values. Furthermore, every sort key is assigned a certain position index. The position index is equal to the index of the corresponding element in the original (unsorted) array. Position indexes are used to ensure the stable sorting.
Constructor/Destructor Summary | |
CSortKey
(int nPosition);
����������Constructs the sort key. |
|
~CSortKey
();
����������Destroys the sort key. |
Function Summary | |
void
|
Add
(const CString &strKey);
����������Adds the segment to this sort key. |
int
|
GetPosition
();
����������Returns the position index of this sort key. |
int
|
GetSize
();
����������Returns the number of segments in this sort key. |
CString
|
GetAt
(int nIndex);
����������Returns the value of the segment at the given index in this sort key. |
Constructor/Destructor Detail |
CSortKey(int nPosition);
Constructs the sort key.
nPosition
- the position index of this sort key~CSortKey();
Destroys the sort key.
Function Detail |
void Add(const CString &strKey);
Adds the segment to this sort key.
strKey
- the value of the segmentint GetPosition();
Returns the position index of this sort key.
int GetSize();
Returns the number of segments in this sort key.
CString GetAt(int nIndex);
Returns the value of the segment at the given index in this sort key.
nIndex
- the index of the segment (zero-based)
|
Unicorn XML Toolkit Version 1.00.00 |
|||||||||
� PREV CLASS �� NEXT CLASS | FRAMES��NO FRAMES | |||||||||
SUMMARY: � CONSTR �|� FUNCTION �|�DATA | DETAIL: � CONSTR �|� FUNCTION �|�DATA |