ContentModelState

The ContentModelState class stores a single state in the content model for an SGML element.

Public Methods

ContentModelState( );
boolaccept( );
voidaddId( SgmlNode* element );
voidaddTransition( const QString& element, ContentModelState* state );
booldefaultTrans( QString& element );
QList<SgmlNode>&id( );
voidmark( );
boolmarked( );
ContentModelState*nextState( QString element );
~ContentModelState( );

Private Data Members

bool_accept;
QList<SgmlNode>_id;
bool_marked;
QStrIList_transElements;
QList<Transition>_transitions;

Public Methods Documentation

ContentModelState ( );

Create a new state in the content model.

bool accept ( );

Is this an accepting state for the content model?

void addId ( SgmlNode* element );

Add the given element to the list of elements that uniquely identifies this state in the content model.

void addTransition ( const QString& element, ContentModelState* state );

Add a transition from this state to the given state for the given transition element.

bool defaultTrans ( QString& element );

Return TRUE if there is a default transition out of this state on the given element.

QList<SgmlNode>& id ( );

Return my ID, which is a list of SgmlNodes.

void mark ( );

Mark this content state as having been visited. This is only used when creating the state table for the content model.

bool marked ( );

Has this state been visited?

ContentModelState* nextState ( QString element );

Return the next state in the content model (if any) for the given transition element.


Return to Index.
Automatically generated on Aug 11 23:32