Unicorn XML Toolkit
Version 1.00.00

Namespace Xpath
Class CNodeArrayIndex

class CNodeArrayIndex: public CInterface {
public:
    CNodeArrayIndex();
    virtual ~CNodeArrayIndex();
public:
    virtual XNode GetNode() = 0;
    virtual void Iterate() = 0;
    };

The abstract interface to node array indexes.

Node array indexes are used for sequential enumeration of nodes in node arrays.

Every node array index has the internal current node pointer. The current node pointer points to the first node in the array (or is set to NULL if the node array is empty) when the node array index is created.

Since:
1.00.00
Version:
1.00.00
Author:
Alexey Gokhberg
See Also:
CNodeArray, Dom::INode
Constructor/Destructor Summary
CNodeArrayIndex ();
����������Constructs the node array index.
~CNodeArrayIndex ();
����������Destroys the node array index.

Function Summary
XNode GetNode ();
����������Returns the current node of this node array index.
void Iterate ();
����������Moves the current node pointer to the next node in the array.

Constructor/Destructor Detail

CNodeArrayIndex

CNodeArrayIndex();

Constructs the node array index.

~CNodeArrayIndex

virtual ~CNodeArrayIndex();

Destroys the node array index.

Function Detail

GetNode

virtual XNode GetNode() = 0;

Returns the current node of this node array index.

Returns:
the current node of this node array index; NULL if node enumeration had reached the end of the node array

Iterate

virtual void Iterate() = 0;

Moves the current node pointer to the next node in the array.

The current node pointer is set to NULL if node enumeration had reached the end of the node array.


Unicorn XML Toolkit
Version 1.00.00


This document was created using Unicorn DOC++.

Copyright 1999-2001 Unicorn Enterprises SA.
All Rights Reserved.