The SgmlNode class is a node within the parse tree for an SGML element's content model. More...
SgmlNode | ( Type type, SgmlNode* parent=??? ); | |
SgmlNode | ( SgmlNode* node, SgmlNode* parent=??? ); | |
void | calculate | ( ); |
const QString& | element | ( ); |
void | element | ( const QString& element ); |
QList<SgmlNode>& | firstpos | ( ); |
QList<SgmlNode>& | followpos | ( ); |
QList<SgmlNode>& | lastpos | ( ); |
SgmlNode* | left | ( ); |
void | left | ( SgmlNode* left ); |
bool | nullable | ( ); |
SgmlNode* | parent | ( ); |
void | parent | ( SgmlNode* parent ); |
SgmlNode* | right | ( ); |
void | right | ( SgmlNode* right ); |
Type | type | ( ); |
void | type | ( Type type ); |
~SgmlNode | ( ); |
QString | _element; |
QList<SgmlNode> | _firstpos; |
QList<SgmlNode> | _followpos; |
QList<SgmlNode> | _lastpos; |
SgmlNode* | _left; |
bool | _nullable; |
SgmlNode* | _parent; |
SgmlNode* | _right; |
Type | _type; |
The SgmlNode class is a node within the parse tree for an SGML element's content model.
There are two classes of nodes: interior and leaf. Leaf nodes have concrete types, such as Accept, Element, Cdata, Pcdata, and Empty. Interior nodes are operators, such as Group, And, Or, Star, Qmark, Plus, Seq. The DFA for the content model is computed from the tree of SgmlNodes.Calculate the nullable(), firstpos(), lastpos(), and followpos() functions.
Return the node's element name.
Set the node's element name.
Return the list of nodes that can appear at the beginning of this subtree.
Return the list of nodes that can directly follow the subtree rooted at this node.
Return the list of nodes that can appear at the end of this subtree.
Return the node's left subtree.
Set the node's left subtree.
Returns TRUE if this entire subtree can be nulled out.
Return the node's parent.
Set the node's parent.
Return the node's right subtree.
Set the node's right subtree.
Return the node's type.
Set the type of the node.
Destroy the node and its descendents.