Xalan-C++ API Reference 1.12.0
xalanc::NodeSorter Class Reference

This class can sort vectors of nodes according to a select pattern. More...

#include <xalanc/XSLT/NodeSorter.hpp>

Classes

struct  NodeSortKeyCompare
 Return the results of a compare of two nodes. More...
struct  VectorEntry

Public Types

typedef XalanVector< VectorEntryNodeVectorType
typedef XalanVector< NodeSortKeyNodeSortKeyVectorType
typedef NumberVectorTypeDecl NumberVectorType
typedef XalanVector< XObjectPtrXObjectVectorType
typedef StringVectorTypeDecl StringVectorType
typedef XalanVector< NumberVectorTypeNumberCacheType
typedef XalanVector< XObjectVectorTypeXObjectCacheType
typedef XalanVector< StringVectorTypeStringCacheType
typedef NumberCacheType NumberResultsCacheType
typedef StringCacheType StringResultsCacheType

Public Member Functions

 NodeSorter (MemoryManager &theManager)
 ~NodeSorter ()
NodeSortKeyVectorTypegetSortKeys ()
void sort (StylesheetExecutionContext &executionContext, MutableNodeRefList &theList)
 Given a list of nodes, sort each node according to the criteria in the keys.

Friends

struct NodeSortKeyCompare

Detailed Description

This class can sort vectors of nodes according to a select pattern.

Definition at line 62 of file NodeSorter.hpp.

Member Typedef Documentation

◆ NodeSortKeyVectorType

◆ NodeVectorType

◆ NumberCacheType

◆ NumberResultsCacheType

◆ NumberVectorType

◆ StringCacheType

◆ StringResultsCacheType

◆ StringVectorType

◆ XObjectCacheType

◆ XObjectVectorType

Constructor & Destructor Documentation

◆ NodeSorter()

xalanc::NodeSorter::NodeSorter ( MemoryManager & theManager)
explicit

◆ ~NodeSorter()

xalanc::NodeSorter::~NodeSorter ( )

Member Function Documentation

◆ getSortKeys()

NodeSortKeyVectorType & xalanc::NodeSorter::getSortKeys ( )
inline

Definition at line 91 of file NodeSorter.hpp.

◆ sort()

void xalanc::NodeSorter::sort ( StylesheetExecutionContext & executionContext,
MutableNodeRefList & theList )

Given a list of nodes, sort each node according to the criteria in the keys.

The list is assumed to be in document order.

Parameters
executionContextcurrent execution context
vlist of Nodes

◆ NodeSortKeyCompare

friend struct NodeSortKeyCompare
friend

Definition at line 188 of file NodeSorter.hpp.


The documentation for this class was generated from the following file: