PathStepAttributePosition Class Reference

Represents an XQuery attribute for a single XPath path step of the form [position()=n]. More...

#include <pathstepattributeposition.h>

Inheritance diagram for PathStepAttributePosition:

Inheritance graph
[legend]
Collaboration diagram for PathStepAttributePosition:

Collaboration graph
[legend]

List of all members.

Public Member Functions

 PathStepAttributePosition (unsigned _position)
 Constructor.
virtual ~PathStepAttributePosition ()
void print (OutputStream &dos) const
unsigned getPosition ()
 Returns the position n of an attribute.
PathStepAttributePositionclone ()

Private Attributes

unsigned position
 The entered position.


Detailed Description

Represents an XQuery attribute for a single XPath path step of the form [position()=n].

Represents an XQuery attribute for a single XPath path step of the form [position()=n] (whereas n denotes a (numeric) position of an item in a sequence), which takes a position n as argument.

Note:
The information [position()=n] or [position()=1] respectively is only used internally to determine that only the first item in a sequence needs to be kept.
Author:
Michael Schmidt

Gunnar Jehl

Version:
2.1
License:
Software License Agreement (BSD License)

Definition at line 53 of file pathstepattributeposition.h.


Constructor & Destructor Documentation

PathStepAttributePosition::PathStepAttributePosition ( unsigned  _position  ) 

Constructor.

Constructor - creating object for position n.

Parameters:
[in] _position Position n of an item in a sequence.

Definition at line 38 of file pathstepattributeposition.cpp.

Referenced by clone().

PathStepAttributePosition::~PathStepAttributePosition (  )  [virtual]

Destructor.

Definition at line 42 of file pathstepattributeposition.cpp.


Member Function Documentation

PathStepAttributePosition * PathStepAttributePosition::clone (  )  [virtual]

Returns a new, independent copy of the corresponding attribute.

Returns a new, independent copy of the corresponding attribute.

Return values:
PathStepAttribute* Copy of the corresponding attribute or of this object respectively.

Implements PathStepAttribute.

Definition at line 49 of file pathstepattributeposition.cpp.

References PathStepAttributePosition(), and position.

unsigned PathStepAttributePosition::getPosition (  )  [inline]

Returns the position n of an attribute.

Returns the position n of an attribute, i.e. returns the member variable.

Return values:
unsigned Position n of an item in a sequence.

Definition at line 77 of file pathstepattributeposition.h.

References position.

void PathStepAttributePosition::print ( OutputStream dos  )  const [virtual]

Prints the corresponding attribute.

Prints the corresponding attribute.

Parameters:
[in] dos Pointer to a OutputStream object.
Return values:
void 

Implements PathStepAttribute.

Definition at line 45 of file pathstepattributeposition.cpp.

References position.


Member Data Documentation

The entered position.

The entered position, which is the argument of the constructor and determines the position n of an item in a sequence.

Definition at line 90 of file pathstepattributeposition.h.

Referenced by clone(), getPosition(), and print().


Generated on Sun May 24 20:20:27 2009 for G(arbage) C(ollected) X(Query) Engine by  doxygen 1.5.9