rocs/RocsCore
#include <ListStructure.h>

Public Member Functions | |
| ListStructure (Document *parent=0) | |
| virtual | ~ListStructure () |
| Q_INVOKABLE QScriptValue | begin () |
| DataPtr | createData (const QString &name, int dataType) |
| Q_INVOKABLE QScriptValue | createNode (int type) |
| Q_INVOKABLE QScriptValue | createNode () |
| PointerPtr | createPointer (DataPtr from, DataPtr to, int pointerType) |
| Q_INVOKABLE QScriptValue | head () |
| void | importStructure (DataStructurePtr other) |
| void | remove (DataPtr n) |
| void | remove (PointerPtr e) |
| Q_INVOKABLE void | setBegin (Data *node) |
| Q_INVOKABLE void | setHead (Data *headNode) |
Public Member Functions inherited from DataStructure | |
| virtual void | cleanUpBeforeConvert () |
| const DataList | dataList (int dataType) const |
| DataList | dataListAll () const |
| Document * | document () const |
| QScriptEngine * | engine () const |
| virtual DataStructurePtr | getDataStructure () const |
| const QList< GroupPtr > | groups () const |
| bool | isDataVisible (int dataType) const |
| bool | isPointerVisible (int pointerType) const |
| QString | name () const |
| virtual QMap< QString, QString > | pluginProperties () const |
| PointerList | pointerListAll () const |
| const PointerList | pointers (int pointerType) const |
| bool | readOnly () const |
| QScriptValue | scriptValue () const |
| virtual void | setEngine (QScriptEngine *engine) |
| virtual void | setPluginProperty (const QString &, const QString &) |
| void | setReadOnly (bool r) |
| void | updateData (DataPtr data) |
| void | updatePointer (PointerPtr pointer) |
Public Member Functions inherited from QObject | |
| QObject (QObject *parent) | |
| QObject (QObject *parent, const char *name) | |
| virtual | ~QObject () |
| bool | blockSignals (bool block) |
| QObject * | child (const char *objName, const char *inheritsClass, bool recursiveSearch) const |
| const QObjectList & | children () const |
| const char * | className () const |
| bool | connect (const QObject *sender, const char *signal, const char *method, Qt::ConnectionType type) const |
| void | deleteLater () |
| void | destroyed (QObject *obj) |
| bool | disconnect (const QObject *receiver, const char *method) |
| bool | disconnect (const char *signal, const QObject *receiver, const char *method) |
| void | dumpObjectInfo () |
| void | dumpObjectTree () |
| QList< QByteArray > | dynamicPropertyNames () const |
| virtual bool | event (QEvent *e) |
| virtual bool | eventFilter (QObject *watched, QEvent *event) |
| T | findChild (const QString &name) const |
| QList< T > | findChildren (const QRegExp ®Exp) const |
| QList< T > | findChildren (const QString &name) const |
| bool | inherits (const char *className) const |
| void | insertChild (QObject *object) |
| void | installEventFilter (QObject *filterObj) |
| bool | isA (const char *className) const |
| bool | isWidgetType () const |
| void | killTimer (int id) |
| virtual const QMetaObject * | metaObject () const |
| void | moveToThread (QThread *targetThread) |
| const char * | name () const |
| const char * | name (const char *defaultName) const |
| QString | objectName () const |
| QObject * | parent () const |
| QVariant | property (const char *name) const |
| void | removeChild (QObject *object) |
| void | removeEventFilter (QObject *obj) |
| void | setName (const char *name) |
| void | setObjectName (const QString &name) |
| void | setParent (QObject *parent) |
| bool | setProperty (const char *name, const QVariant &value) |
| bool | signalsBlocked () const |
| int | startTimer (int interval) |
| QThread * | thread () const |
Static Public Member Functions | |
| static DataStructurePtr | create (Document *parent) |
| static DataStructurePtr | create (DataStructurePtr other, Document *parent) |
Static Public Member Functions inherited from DataStructure | |
| static DataStructurePtr | create (Document *parent=0) |
| static DataStructurePtr | create (DataStructurePtr other, Document *parent=0) |
Static Public Member Functions inherited from QObject | |
| bool | connect (const QObject *sender, const char *signal, const QObject *receiver, const char *method, Qt::ConnectionType type) |
| bool | connect (const QObject *sender, const QMetaMethod &signal, const QObject *receiver, const QMetaMethod &method, Qt::ConnectionType type) |
| bool | disconnect (const QObject *sender, const char *signal, const QObject *receiver, const char *method) |
| bool | disconnect (const QObject *sender, const QMetaMethod &signal, const QObject *receiver, const QMetaMethod &method) |
| QString | tr (const char *sourceText, const char *disambiguation, int n) |
| QString | trUtf8 (const char *sourceText, const char *disambiguation, int n) |
Properties | |
| QString | name |
Properties inherited from DataStructure | |
| QString | name |
Properties inherited from QObject | |
| objectName | |
Additional Inherited Members | |
Public Slots inherited from DataStructure | |
| void | add_property (const QString &name, const QVariant &value) |
| virtual DataList | addDataList (DataList dataList) |
| virtual DataList | addDataList (QList< QPair< QString, QPointF > > dataList, int dataType) |
| void | addDynamicProperty (const QString &property, const QVariant &value=QVariant(0)) |
| virtual GroupPtr | addGroup (const QString &name) |
| virtual DataPtr | createData (const QString &name, const QPointF &point, int dataType) |
| DataPtr | getData (int uniqueIdentifier) |
| virtual void | remove (GroupPtr group) |
| void | remove () |
| void | remove_property (const QString &name) |
| void | removeDynamicProperty (const QString &property) |
| void | renameDynamicProperty (const QString &oldName, const QString &newName) |
| void | setName (const QString &s) |
Signals inherited from DataStructure | |
| void | changed () |
| void | dataCreated (DataPtr n) |
| void | dataPositionChanged (const QPointF) |
| void | nameChanged (const QString &name) |
| void | pointerCreated (PointerPtr e) |
| void | scriptError (const QString &message) |
Protected Member Functions inherited from DataStructure | |
| DataStructure (Document *parent=0) | |
| virtual | ~DataStructure () |
| DataPtr | addData (DataPtr data) |
| PointerPtr | addPointer (PointerPtr pointer) |
| int | generateUniqueIdentifier () |
| void | initialize () |
Protected Member Functions inherited from QObject | |
| bool | checkConnectArgs (const char *signal, const QObject *object, const char *method) |
| virtual void | childEvent (QChildEvent *event) |
| virtual void | connectNotify (const char *signal) |
| virtual void | customEvent (QEvent *event) |
| virtual void | disconnectNotify (const char *signal) |
| int | receivers (const char *signal) const |
| QObject * | sender () const |
| int | senderSignalIndex () const |
| virtual void | timerEvent (QTimerEvent *event) |
Static Protected Member Functions inherited from DataStructure | |
| template<typename T > | |
| static DataStructurePtr | create (Document *parent=0) |
| template<typename T > | |
| static DataStructurePtr | create (DataStructurePtr other, Document *parent=0) |
Static Protected Member Functions inherited from QObject | |
| QByteArray | normalizeSignalSlot (const char *signalSlot) |
Detailed Description
Definition at line 31 of file ListStructure.h.
Constructor & Destructor Documentation
|
explicit |
Definition at line 40 of file ListStructure.cpp.
|
virtual |
Definition at line 94 of file ListStructure.cpp.
Member Function Documentation
| QScriptValue Rocs::ListStructure::begin | ( | ) |
|
static |
Definition at line 28 of file ListStructure.cpp.
|
static |
Definition at line 33 of file ListStructure.cpp.
Internal method to create new graph node.
Use
- See also
- Data::create(...) for creating new nodes.
- Parameters
-
name is the name of the node dataType is the type of this node, defaults to 0
- Returns
- the created node as DataPtr
Reimplemented from DataStructure.
Definition at line 113 of file ListStructure.cpp.
| QScriptValue Rocs::ListStructure::createNode | ( | int | type | ) |
Creates a new data element and return it.
If the specified data type is not registered, no data element is created.
- Parameters
-
type is the data type of the created node
- Returns
- script value for the new node
Definition at line 176 of file ListStructure.cpp.
| QScriptValue Rocs::ListStructure::createNode | ( | ) |
Creates a new data element and return it.
- Returns
- script value for the new node
Definition at line 171 of file ListStructure.cpp.
|
virtual |
Internal method to create new graph edge.
Use
- See also
- Pointer::create(...) for creating new edges.
- Parameters
-
from is the origin of the new edge to is the target of the new edge pointerType is the type of this edge, defaults to 0
- Returns
- the created edge as PointerPtr
Reimplemented from DataStructure.
Definition at line 103 of file ListStructure.cpp.
| QScriptValue Rocs::ListStructure::head | ( | ) |
- Returns
- head node of linked list
Definition at line 135 of file ListStructure.cpp.
|
virtual |
overwrites the current DataStructure with all values (Data and Pointer) from the given datastructure object.
- Parameters
-
other the data structure that shall be imported
- Returns
- void
Reimplemented from DataStructure.
Definition at line 48 of file ListStructure.cpp.
|
virtual |
Remove data from data structure and (if necessary) destroys the data object.
It is valid to call this method more than once for the same data object.
- Parameters
-
data the data element that shall be removed
Reimplemented from DataStructure.
Definition at line 127 of file ListStructure.cpp.
|
virtual |
Remove pointer from data structure and (if necessary) destroys the pointer object.
It is valid to call this method more than once for the same pointer object.
- Parameters
-
pointer the pointer that shall be removed
Reimplemented from DataStructure.
Definition at line 166 of file ListStructure.cpp.
| void Rocs::ListStructure::setBegin | ( | Data * | node | ) |
| void Rocs::ListStructure::setHead | ( | Data * | headNode | ) |
Set head node of linked list.
- Parameters
-
node is the
Definition at line 140 of file ListStructure.cpp.
Property Documentation
|
readwrite |
Definition at line 34 of file ListStructure.h.
The documentation for this class was generated from the following files:
Documentation copyright © 1996-2020 The KDE developers.
Generated on Mon Jun 22 2020 13:16:18 by doxygen 1.8.7 written by Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.
KDE API Reference
Public Member Functions inherited from