Return the results of a compare of two nodes.
More...
#include <NodeSorter.hpp>
Inherits binary_function< const NodeVectorType::value_type &, const NodeVectorType::value_type &, bool >.
Return the results of a compare of two nodes.
Definition at line 114 of file NodeSorter.hpp.
◆ NodeSortKeyCompare()
Construct a NodeSortKeyCompare object, to perform the sort.
- Parameters
-
executionContext | current execution context |
theNodes | vector or nodes to be sorted |
theNodeSortKeys | vector of keys upon which to sort |
Definition at line 126 of file NodeSorter.hpp.
◆ compare()
int NodeSorter::NodeSortKeyCompare::compare |
( |
first_argument_type |
theLHS, |
|
|
second_argument_type |
theRHS, |
|
|
XalanSize_t |
theKeyIndex = 0 |
|
) |
| const |
Compare two nodes, returning a value to indicate the result.
- Parameters
-
theLHS | the first node to compare |
theRHS | the second node to compare |
theKeyIndex | the index of the key to use |
- Returns
- < 0 if theLHS is less than theRHS, 0 if they are equal, and > 0 if theLHS is greater than theRHS
◆ getNumberResult()
double NodeSorter::NodeSortKeyCompare::getNumberResult |
( |
const NodeSortKey & |
theKey, |
|
|
XalanSize_t |
theKeyIndex, |
|
|
first_argument_type |
theEntry |
|
) |
| const |
|
protected |
◆ getStringResult()
const XalanDOMString& NodeSorter::NodeSortKeyCompare::getStringResult |
( |
const NodeSortKey & |
theKey, |
|
|
XalanSize_t |
theKeyIndex, |
|
|
first_argument_type |
theEntry |
|
) |
| const |
|
protected |
◆ operator()()
result_type NodeSorter::NodeSortKeyCompare::operator() |
( |
first_argument_type |
theLHS, |
|
|
second_argument_type |
theRHS, |
|
|
XalanSize_t |
theKeyIndex = 0 |
|
) |
| const |
|
inline |
Compare two nodes as a less predicate.
- Parameters
-
theLHS | the first node to compare |
theRHS | the second node to compare |
theKeyIndex | the index of the key to use |
- Returns
- true if theLHS is less than theRHS
Definition at line 162 of file NodeSorter.hpp.
The documentation for this struct was generated from the following file: