PathStepAttribute Class Reference

Represents base class of all attribute expressions. More...

#include <pathstepattribute.h>

Inheritance diagram for PathStepAttribute:

Inheritance graph
[legend]

List of all members.

Public Member Functions

 PathStepAttribute (ATTRIBUTE_TYPE _type)
 Constructor.
virtual ~PathStepAttribute ()
virtual void print (OutputStream &dos) const =0
 Prints the corresponding attribute.
const ATTRIBUTE_TYPE getType ()
 Returns the type of the corresponding attribute.
virtual PathStepAttributeclone ()=0
 Returns a new, independent copy of the corresponding attribute.

Private Attributes

ATTRIBUTE_TYPE type
 The entered type.


Detailed Description

Represents base class of all attribute expressions.

Represents base class of all attribute expressions.

Note:
Currently there is only support for attribute [position()=n] (whereas n denotes a (numeric) position of an item in a sequence). This information is 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 58 of file pathstepattribute.h.


Constructor & Destructor Documentation

PathStepAttribute::PathStepAttribute ( ATTRIBUTE_TYPE  _type  ) 

Constructor.

Constructor - creating object for a ATTRIBUTE_TYPE.

Parameters:
[in] _type ATTRIBUTE_TYPE.

Definition at line 37 of file pathstepattribute.cpp.

PathStepAttribute::~PathStepAttribute (  )  [virtual]

Destructor.

Definition at line 40 of file pathstepattribute.cpp.


Member Function Documentation

PathStepAttribute * PathStepAttribute::clone (  )  [pure 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.

Implemented in PathStepAttributePosition.

Referenced by PathStepTextExpression::clone(), PathStepTagExpression::clone(), PathStepStarExpression::clone(), and PathStepNodeExpression::clone().

const ATTRIBUTE_TYPE PathStepAttribute::getType (  )  [inline]

Returns the type of the corresponding attribute.

Returns the type of the corresponding attribute.

Return values:
ATTRIBUTE_TYPE ATTRIBUTE_TYPE.

Definition at line 85 of file pathstepattribute.h.

References type.

Referenced by BufferIterator::BufferIterator(), Role::isPosRole(), and DependencyTuple::isPosTuple().

void PathStepAttribute::print ( OutputStream dos  )  const [pure virtual]

Prints the corresponding attribute.

Prints the corresponding attribute.

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

Implemented in PathStepAttributePosition.

Referenced by operator<<().


Member Data Documentation

The entered type.

The entered type, which is the argument of the constructor and determines the type of the attribute.

Definition at line 100 of file pathstepattribute.h.

Referenced by getType().


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