The ContentModelState class stores a single state in the content model for an SGML element.
ContentModelState | ( ); | |
bool | accept | ( ); |
void | addId | ( SgmlNode* element ); |
void | addTransition | ( const QString& element, ContentModelState* state ); |
bool | defaultTrans | ( QString& element ); |
QList<SgmlNode>& | id | ( ); |
void | mark | ( ); |
bool | marked | ( ); |
ContentModelState* | nextState | ( QString element ); |
~ContentModelState | ( ); |
bool | _accept; |
QList<SgmlNode> | _id; |
bool | _marked; |
QStrIList | _transElements; |
QList<Transition> | _transitions; |
Create a new state in the content model.
Is this an accepting state for the content model?
Add the given element to the list of elements that uniquely identifies this state in the content model.
Add a transition from this state to the given state for the given transition element.
Return TRUE if there is a default transition out of this state on the given element.
Return my ID, which is a list of SgmlNodes.
Mark this content state as having been visited. This is only used when creating the state table for the content model.
Has this state been visited?
Return the next state in the content model (if any) for the given transition element.