PassiveProjectionTreeConfiguration Class Reference

Represents a token configuration on top of a passive projection tree. More...

#include <passiveprojectiontreeconfiguration.h>

Collaboration diagram for PassiveProjectionTreeConfiguration:

Collaboration graph
[legend]

List of all members.

Public Member Functions

 PassiveProjectionTreeConfiguration (PassiveProjectionTree *ppt)
 Constructor.
 PassiveProjectionTreeConfiguration (vector< PassiveProjectionTreeNode * >_passive_nodes)
 Constructor.
virtual ~PassiveProjectionTreeConfiguration ()
void addActiveNode (PassiveProjectionTreeNode *n)
 Adds an active node to a configuration.
void addPassiveNode (PassiveProjectionTreeNode *n)
 Adds a passive node to a configuration.
PassiveProjectionTreeConfigurationapplyTag (TAG t)
 Compute the configuration that results when moving tokens along tag t.
PassiveProjectionTreeConfigurationapplyText ()
 Compute the configuration that results when PCDATA content is read.
bool hasActiveNodes ()
 Checks for active nodes in the current configuration.

Private Attributes

vector
< PassiveProjectionTreeNode * > 
active_nodes
 The active ProjectionTreeNode nodes.
vector
< PassiveProjectionTreeNode * > 
passive_nodes
 The active ProjectionTreeNode objects, i.e. those nodes currently matched.


Detailed Description

Represents a token configuration on top of a passive projection tree.

A token configuration touroughly describes a set of active and passive state of a PassiveProjectionTreel.

Author:
Michael Schmidt

Gunnar Jehl

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

Definition at line 53 of file passiveprojectiontreeconfiguration.h.


Constructor & Destructor Documentation

PassiveProjectionTreeConfiguration::PassiveProjectionTreeConfiguration ( PassiveProjectionTree ppt  ) 

Constructor.

Constructor - creating object with one token placed at the root node.

Parameters:
[in] ppt Pointer to a PassiveProjectionTree object.

Definition at line 38 of file passiveprojectiontreeconfiguration.cpp.

References active_nodes, and PassiveProjectionTree::getRootNode().

Referenced by applyTag().

PassiveProjectionTreeConfiguration::PassiveProjectionTreeConfiguration ( vector< PassiveProjectionTreeNode * >  _passive_nodes  ) 

Constructor.

Constructor - creating object for a configuration with given passive_nodes vector.

Parameters:
[in] _passive_nodes The desired passive token vector.

Definition at line 43 of file passiveprojectiontreeconfiguration.cpp.

PassiveProjectionTreeConfiguration::~PassiveProjectionTreeConfiguration (  )  [virtual]

Destructor.

Definition at line 48 of file passiveprojectiontreeconfiguration.cpp.


Member Function Documentation

void PassiveProjectionTreeConfiguration::addActiveNode ( PassiveProjectionTreeNode n  )  [inline]

Adds an active node to a configuration.

Simple push back applied to the active_nodes member.

Parameters:
[in] n The node to be added.
Return values:
void 

Definition at line 81 of file passiveprojectiontreeconfiguration.h.

References active_nodes.

Referenced by applyTag().

void PassiveProjectionTreeConfiguration::addPassiveNode ( PassiveProjectionTreeNode n  )  [inline]

Adds a passive node to a configuration.

Simple push back applied to the passive_nodes member.

Parameters:
[in] n The node to be added.
Return values:
void 

Definition at line 89 of file passiveprojectiontreeconfiguration.h.

Referenced by applyTag().

PassiveProjectionTreeConfiguration * PassiveProjectionTreeConfiguration::applyTag ( TAG  t  ) 

Compute the configuration that results when moving tokens along tag t.

Creates a fresh PassiveProjectionTreeConfiguration object.

Parameters:
[in] t The tag to be applied.
Return values:
PassiveProjectionTreeConfiguration* The resulting token configuration.

Definition at line 52 of file passiveprojectiontreeconfiguration.cpp.

References active_nodes, addActiveNode(), addPassiveNode(), PathStepExpression::getAxisType(), PassiveProjectionTreeNode::getChildren(), PassiveProjectionTreeNode::getLabel(), PathStepExpression::isMatchingTag(), passive_nodes, and PassiveProjectionTreeConfiguration().

PassiveProjectionTreeConfiguration * PassiveProjectionTreeConfiguration::applyText (  ) 

Compute the configuration that results when PCDATA content is read.

Creates a fresh PassiveProjectionTreeConfiguration object.

Return values:
PassiveProjectionTreeConfiguration* The resulting token configuration.

Definition at line 98 of file passiveprojectiontreeconfiguration.cpp.

bool PassiveProjectionTreeConfiguration::hasActiveNodes (  )  [inline]

Checks for active nodes in the current configuration.

Checks for active nodes in the current configuration.

Return values:
bool True if the current configuration has any active nodes, false otherwise.

Definition at line 114 of file passiveprojectiontreeconfiguration.h.

References active_nodes.

Referenced by ProjectionDFAState::update().


Member Data Documentation

The active ProjectionTreeNode nodes.

The active ProjectionTreeNode objects, i.e. the set of nodes that are actively matched by the current configuration.

Definition at line 124 of file passiveprojectiontreeconfiguration.h.

Referenced by addActiveNode(), applyTag(), hasActiveNodes(), and PassiveProjectionTreeConfiguration().

The active ProjectionTreeNode objects, i.e. those nodes currently matched.

The active ProjectionTreeNode objects, i.e. the set of nodes that are passively matched by the current configuration.

Definition at line 131 of file passiveprojectiontreeconfiguration.h.

Referenced by applyTag().


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