DependencyTuple Class Reference

Represents a single tuple of a set of dependency-tuples. More...

#include <dependencytuple.h>

Collaboration diagram for DependencyTuple:

Collaboration graph
[legend]

List of all members.

Public Member Functions

 DependencyTuple (PathExpression *_path, bool _cond)
 Constructor.
virtual ~DependencyTuple ()
void print (OutputStream &dos)
 Prints this single tuple.
PathExpressiongetPath ()
 Returns the path of this single tuple.
void setRole (Role *_role)
 Sets the role for this single tuple.
bool isCondTuple ()
 Returns if this single tuple results from a CondExpression.
bool isPosTuple ()
 Returns if this single tuple is a [positions()=1] tuple.
bool isDosTuple ()
 Returns if this single tuple is a /dos::node() tuple.
bool isSyntacticallyEqualTo (DependencyTuple *tuple)
 Returns if this single tuple is syntactically equal to the entered single tuple.
bool isSemanticallyContainedIn (DependencyTuple *tuple)
 Returns if this single tuple is semantically contained in the entered single tuple.
void registerToPassiveProjectionTree (unsigned var, PassiveProjectionTree *ppt)
 Register the path described by this single tuple to the entered passive projection tree.

Private Attributes

PathExpressionpath
 The entered PathExpression.
bool cond
 The entered boolean value.
Rolerole
 The set Role of this single tuple.


Detailed Description

Represents a single tuple of a set of dependency-tuples.

Represents a single tuple of a set of dependency-tuples, i.e. of a DependencySet, which takes a PathExpression, e.g. /bib//book or /bib/book/title, a Role, and a boolean value, which indicates that this single tuple results from a CondExpression, as arguments.

Author:
Michael Schmidt

Gunnar Jehl

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

Definition at line 51 of file dependencytuple.h.


Constructor & Destructor Documentation

DependencyTuple::DependencyTuple ( PathExpression _path,
bool  _cond 
)

Constructor.

Constructor - creating object for a PathExpression and a boolean value.

Parameters:
[in] _path Pointer to a PathExpression object.
[in] _cond true if this single tuple results from a CondExpression, false otherwise.

Definition at line 37 of file dependencytuple.cpp.

DependencyTuple::~DependencyTuple (  )  [virtual]

Destructor.

Definition at line 41 of file dependencytuple.cpp.

References path.


Member Function Documentation

PathExpression * DependencyTuple::getPath (  )  [inline]

Returns the path of this single tuple.

Returns the path of this single tuple, i.e. returns the member variable.

Return values:
PathExpression* Pointer to a PathExpression object.

Definition at line 79 of file dependencytuple.h.

References path.

Referenced by isSemanticallyContainedIn(), and isSyntacticallyEqualTo().

bool DependencyTuple::isCondTuple (  )  [inline]

Returns if this single tuple results from a CondExpression.

Returns if this single tuple results from a CondExpression, i.e. returns the member variable.

Return values:
bool true if this single tuple results from a CondExpression, false otherwise.

Definition at line 96 of file dependencytuple.h.

References cond.

bool DependencyTuple::isDosTuple (  ) 

Returns if this single tuple is a /dos::node() tuple.

Returns if this single tuple is a /dos::node() tuple.

Return values:
bool true if this single tuple is a /dos::node() tuple, false otherwise.

Definition at line 65 of file dependencytuple.cpp.

References PathExpression::getTailPathStep(), PathStepExpression::isDosNodeStep(), and path.

Referenced by isSyntacticallyEqualTo().

bool DependencyTuple::isPosTuple (  ) 

Returns if this single tuple is a [positions()=1] tuple.

Returns if this single tuple is a [positions()=1] tuple.

Return values:
bool true if this single tuple is a [positions()=1] tuple, false otherwise.

Definition at line 56 of file dependencytuple.cpp.

References PathStepExpression::getAttribute(), PathExpression::getTailPathStep(), PathStepAttribute::getType(), PathStepExpression::hasAttribute(), and path.

Referenced by isSyntacticallyEqualTo().

bool DependencyTuple::isSemanticallyContainedIn ( DependencyTuple tuple  ) 

Returns if this single tuple is semantically contained in the entered single tuple.

Returns if this single tuple is semantically contained in the entered single tuple, i.e. this single tuple is sematically contained if it locate a greater or greater equal set of nodes of an arbitrarily XML tree than the entered single tuple.

Parameters:
[in] tuple Pointer to a DependencyTuple object.
Return values:
bool true if this single tuple is semantically contained in the entered single tuple, false otherwise.

Definition at line 88 of file dependencytuple.cpp.

References getPath(), PathExpression::isSemanticallyContainedIn(), PathExpression::mightHasChildDescendantConflict(), and path.

bool DependencyTuple::isSyntacticallyEqualTo ( DependencyTuple tuple  ) 

Returns if this single tuple is syntactically equal to the entered single tuple.

Returns if this single tuple is syntactically equal to the entered single tuple with respect to their paths.

Parameters:
[in] tuple Pointer to a DependencyTuple object.
Return values:
bool true if this single tuple if syntactically equal to the entered single tuple with respect to their paths, false otherwise.

Definition at line 73 of file dependencytuple.cpp.

References getPath(), isDosTuple(), isPosTuple(), PathExpression::isSyntacticallyEqualTo(), and path.

void DependencyTuple::print ( OutputStream dos  ) 

Prints this single tuple.

Prints this single tuple.

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

Definition at line 45 of file dependencytuple.cpp.

References Role::getId(), path, and role.

void DependencyTuple::registerToPassiveProjectionTree ( unsigned  var,
PassiveProjectionTree ppt 
)

Register the path described by this single tuple to the entered passive projection tree.

Register the path described by this single tuple to the entered passive projection tree.

Parameters:
[in] var The basing variable.
[in] ppt Pointer to a PassiveProjectionTree object.
Return values:
void 

Definition at line 97 of file dependencytuple.cpp.

References PathExpression::addPathStep(), PathStepExpression::clone(), PathExpression::clone(), PathEnvironment::getPath(), PassiveProjectionTree::getPathEnv(), PathExpression::getPathSize(), PathExpression::getPathStepAt(), path, and PassiveProjectionTree::registerPath().

void DependencyTuple::setRole ( Role _role  )  [inline]

Sets the role for this single tuple.

Sets the role for this single tuple, i.e. sets the member variable.

Parameters:
[in] _role Pointer to a Role object.
Return values:
void 

Definition at line 87 of file dependencytuple.h.


Member Data Documentation

bool DependencyTuple::cond [private]

The entered boolean value.

The entered boolean value, which is the second argument of the constructor.

Definition at line 152 of file dependencytuple.h.

Referenced by isCondTuple().

The entered PathExpression.

The entered PathExpression, which is the first argument of the constructor.

Definition at line 146 of file dependencytuple.h.

Referenced by getPath(), isDosTuple(), isPosTuple(), isSemanticallyContainedIn(), isSyntacticallyEqualTo(), print(), registerToPassiveProjectionTree(), and ~DependencyTuple().

The set Role of this single tuple.

The set Role of this single tuple, which is NULL on creation of object and will be set while constructing the ProjectionTree.

Definition at line 159 of file dependencytuple.h.

Referenced by print().


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