diff options
Diffstat (limited to 'src/scxml/qscxmltabledata.cpp')
-rw-r--r-- | src/scxml/qscxmltabledata.cpp | 79 |
1 files changed, 76 insertions, 3 deletions
diff --git a/src/scxml/qscxmltabledata.cpp b/src/scxml/qscxmltabledata.cpp index 2457840..f9665d3 100644 --- a/src/scxml/qscxmltabledata.cpp +++ b/src/scxml/qscxmltabledata.cpp @@ -43,6 +43,75 @@ QT_USE_NAMESPACE +/*! + \class QScxmlTableData + \since 5.8 + \inmodule QtScxml + \brief The QScxmlTableData class is used by compiled state machines. + + QScxmlTableData is the interface to the compiled representation of SCXML + state machines. It should only be used internally and by state machines + compiled from SCXML documents. + */ + +/*! + \fn QScxmlTableData::string(QScxmlExecutableContent::StringId id) const + Returns a QString for the given \a id. + */ + +/*! + \fn QScxmlTableData::instructions() const + Returns a pointer to the instructions of executable content contained in + the state machine. + */ + +/*! + \fn QScxmlTableData::evaluatorInfo(QScxmlExecutableContent::EvaluatorId evaluatorId) const + Returns the QScxmlExecutableContent::EvaluatorInfo object for the given \a evaluatorId. + */ + +/*! + \fn QScxmlTableData::assignmentInfo(QScxmlExecutableContent::EvaluatorId assignmentId) const + Returns the QScxmlExecutableContent::AssignmentInfo object for the given \a assignmentId. + */ + +/*! + \fn QScxmlTableData::foreachInfo(QScxmlExecutableContent::EvaluatorId foreachId) const + Returns the QScxmlExecutableContent::ForeachInfo object for the given \a foreachId. + */ + +/*! + \fn QScxmlTableData::dataNames(int *count) const + Retrieves the string IDs for the names of data items in the data model. The + number of strings is saved into \a count and a pointer to an array of + string IDs is returned. + + Returns a pointer to an array of string IDs. + */ + +/*! + \fn QScxmlTableData::initialSetup() const + Initializes the table data. Returns the ID of the container with + instructions to be executed when initializing the state machine. + */ + +/*! + \fn QScxmlTableData::name() const + Returns the name of the state machine. + */ + +/*! + \fn QScxmlTableData::stateMachineTable() const + Returns a pointer to the complete state table, expressed as an opaque + sequence of integers. + */ + +/*! + \fn QScxmlTableData::serviceFactory(int id) const + Returns the service factory that creates invokable services for the state + with the ID \a id. + */ + using namespace QScxmlInternal; namespace { @@ -68,7 +137,7 @@ public: { m_activeSequences.reserve(4); - tableData.theInitialSetup = QScxmlExecutableContent::NoInstruction; + tableData.theInitialSetup = QScxmlExecutableContent::NoContainer; } void buildTableData(DocumentModel::ScxmlDocument *doc) @@ -264,7 +333,7 @@ protected: // visitor params.append(p); } QScxmlExecutableContent::ContainerId finalize = - QScxmlExecutableContent::NoInstruction; + QScxmlExecutableContent::NoContainer; if (!invoke->finalize.isEmpty()) { finalize = startNewSequence(); visit(&invoke->finalize); @@ -528,7 +597,7 @@ protected: ContainerId generate(const DocumentModel::InstructionSequences &inSequences) { if (inSequences.isEmpty()) - return NoInstruction; + return NoContainer; auto id = m_instructions.newContainerId(); auto outSequences = m_instructions.add<InstructionSequences>(); @@ -898,6 +967,10 @@ private: } // anonymous namespace +/*! + \fn QScxmlTableData::~QScxmlTableData() + Destroys the SXCML table data. + */ QScxmlTableData::~QScxmlTableData() {} |