#include <pathstepattribute.h>
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 PathStepAttribute * | clone ()=0 |
Returns a new, independent copy of the corresponding attribute. | |
Private Attributes | |
ATTRIBUTE_TYPE | type |
The entered type. |
Represents base class of all attribute expressions.
[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. Definition at line 58 of file pathstepattribute.h.
PathStepAttribute::PathStepAttribute | ( | ATTRIBUTE_TYPE | _type | ) |
Constructor.
Constructor - creating object for a ATTRIBUTE_TYPE.
[in] | _type | ATTRIBUTE_TYPE. |
Definition at line 37 of file pathstepattribute.cpp.
PathStepAttribute::~PathStepAttribute | ( | ) | [virtual] |
Destructor.
Definition at line 40 of file pathstepattribute.cpp.
PathStepAttribute * PathStepAttribute::clone | ( | ) | [pure virtual] |
Returns a new, independent copy of the corresponding attribute.
Returns a new, independent copy of the corresponding attribute.
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.
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.
[in] | dos | Pointer to a OutputStream object. |
void |
Implemented in PathStepAttributePosition.
Referenced by operator<<().
ATTRIBUTE_TYPE PathStepAttribute::type [private] |
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().