#include <passiveprojectiontreeconfiguration.h>
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. | |
PassiveProjectionTreeConfiguration * | applyTag (TAG t) |
Compute the configuration that results when moving tokens along tag t. | |
PassiveProjectionTreeConfiguration * | applyText () |
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. |
A token configuration touroughly describes a set of active and passive state of a PassiveProjectionTreel.
Definition at line 53 of file passiveprojectiontreeconfiguration.h.
PassiveProjectionTreeConfiguration::PassiveProjectionTreeConfiguration | ( | PassiveProjectionTree * | ppt | ) |
Constructor.
Constructor - creating object with one token placed at the root node.
[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.
[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.
void PassiveProjectionTreeConfiguration::addActiveNode | ( | PassiveProjectionTreeNode * | n | ) | [inline] |
Adds an active node to a configuration.
Simple push back applied to the active_nodes member.
[in] | n | The node to be added. |
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.
[in] | n | The node to be added. |
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.
[in] | t | The tag to be applied. |
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.
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.
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().
vector< PassiveProjectionTreeNode * > PassiveProjectionTreeConfiguration::active_nodes [private] |
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().
vector< PassiveProjectionTreeNode * > PassiveProjectionTreeConfiguration::passive_nodes [private] |
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().