rocs/RocsCore
#include <DataStructure.h>
|
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, int dataType) |
|
virtual DataPtr | createData (const QString &name, const QPointF &point, int dataType) |
|
virtual PointerPtr | createPointer (DataPtr from, DataPtr to, int pointerType) |
|
DataPtr | getData (int uniqueIdentifier) |
|
virtual void | remove (DataPtr data) |
|
virtual void | remove (PointerPtr pointer) |
|
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) |
|
Definition at line 43 of file DataStructure.h.
DataStructure::DataStructure |
( |
Document * |
parent = 0 | ) |
|
|
protected |
Default constructor.
- Parameters
-
parent | the parent document of the data structure |
Definition at line 109 of file DataStructure.cpp.
DataStructure::~DataStructure |
( |
| ) |
|
|
protectedvirtual |
void DataStructure::add_property |
( |
const QString & |
name, |
|
|
const QVariant & |
value |
|
) |
| |
|
slot |
add the property named name
to this Data structure.
- Parameters
-
name | is an identifier to property. |
value | is the initial value of property. |
Definition at line 505 of file DataStructure.cpp.
DataList DataStructure::addDataList |
( |
QList< QPair< QString, QPointF > > |
dataList, |
|
|
int |
dataType |
|
) |
| |
|
virtualslot |
void DataStructure::addDynamicProperty |
( |
const QString & |
property, |
|
|
const QVariant & |
value = QVariant(0) |
|
) |
| |
|
slot |
GroupPtr DataStructure::addGroup |
( |
const QString & |
name | ) |
|
|
virtualslot |
void DataStructure::changed |
( |
| ) |
|
|
signal |
void DataStructure::cleanUpBeforeConvert |
( |
| ) |
|
|
virtual |
clear data that only is useful for a type of data structure and that cannot be converted to others
Definition at line 580 of file DataStructure.cpp.
DataPtr DataStructure::createData |
( |
const QString & |
name, |
|
|
int |
dataType |
|
) |
| |
|
virtualslot |
DataPtr DataStructure::createData |
( |
const QString & |
name, |
|
|
const QPointF & |
point, |
|
|
int |
dataType |
|
) |
| |
|
virtualslot |
void DataStructure::dataCreated |
( |
DataPtr |
n | ) |
|
|
signal |
const DataList DataStructure::dataList |
( |
int |
dataType | ) |
const |
Gives list of data elements of specified type if type exists.
If dataType does not exists, returns empty list.
- Parameters
-
dataType | is type of data elements to be returned |
- Returns
- DataList of data elements of specified type
Definition at line 149 of file DataStructure.cpp.
DataList DataStructure::dataListAll |
( |
| ) |
const |
Gives list of all data elements of all existing types.
- Returns
- DataList of data elements
Definition at line 159 of file DataStructure.cpp.
void DataStructure::dataPositionChanged |
( |
const QPointF |
| ) |
|
|
signal |
Document * DataStructure::document |
( |
| ) |
const |
QScriptEngine * DataStructure::engine |
( |
| ) |
const |
int DataStructure::generateUniqueIdentifier |
( |
| ) |
|
|
protected |
DataPtr DataStructure::getData |
( |
int |
uniqueIdentifier | ) |
|
|
slot |
Access data element by its unique identifier.
Operation has amortized access time of O(1) (worst case O(n)).
- Parameters
-
uniqueIdentifier | the unique identifier of the data element |
Definition at line 411 of file DataStructure.cpp.
const QList< GroupPtr > DataStructure::groups |
( |
| ) |
const |
void DataStructure::initialize |
( |
| ) |
|
|
protected |
bool DataStructure::isDataVisible |
( |
int |
dataType | ) |
const |
Returns true if data elements of specified data type are visible, otherwise false.
- Parameters
-
dataType | for that visibility information are returned |
bool DataStructure::isPointerVisible |
( |
int |
pointerType | ) |
const |
Returns true if pointers of specified pointer type are visible, otherwise false.
- Parameters
-
pointerType | for that visibility information are returned |
QString DataStructure::name |
( |
| ) |
const |
void DataStructure::nameChanged |
( |
const QString & |
name | ) |
|
|
signal |
QMap< QString, QString > DataStructure::pluginProperties |
( |
| ) |
const |
|
virtual |
Gives a map with plugin specific properties of the data structure.
- Returns
- map keys are property names, values are property values.
Reimplemented in Rocs::GraphStructure.
Definition at line 546 of file DataStructure.cpp.
void DataStructure::pointerCreated |
( |
PointerPtr |
e | ) |
|
|
signal |
Gives list all pointers of all existing types.
- Returns
- PointerList of pointers
Definition at line 179 of file DataStructure.cpp.
const PointerList DataStructure::pointers |
( |
int |
pointerType | ) |
const |
Gives list of pointers of specified type if type exists.
If pointerType does not exists, returns empty list.
- Parameters
-
pointerType | is type of pointers to be returned |
- Returns
- PointerList of pointers of specified type
Definition at line 169 of file DataStructure.cpp.
bool DataStructure::readOnly |
( |
| ) |
const |
void DataStructure::remove |
( |
DataPtr |
data | ) |
|
|
virtualslot |
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 in Rocs::ListStructure.
Definition at line 428 of file DataStructure.cpp.
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 in Rocs::ListStructure.
Definition at line 447 of file DataStructure.cpp.
void DataStructure::remove |
( |
GroupPtr |
group | ) |
|
|
virtualslot |
Remove group
from data structure and (if necessary) destroys the group object.
It is valid to call this method more than once for the same group object.
- Parameters
-
group | the group that shall be removed |
Definition at line 461 of file DataStructure.cpp.
void DataStructure::remove |
( |
| ) |
|
|
slot |
if this datastructure shall be deleted, call ONLY this function
Definition at line 271 of file DataStructure.cpp.
void DataStructure::remove_property |
( |
const QString & |
name | ) |
|
|
slot |
remove the string named name
from this data structure.
- Parameters
-
name | is the name of property to be removed. |
Definition at line 510 of file DataStructure.cpp.
void DataStructure::removeDynamicProperty |
( |
const QString & |
property | ) |
|
|
slot |
void DataStructure::renameDynamicProperty |
( |
const QString & |
oldName, |
|
|
const QString & |
newName |
|
) |
| |
|
slot |
void DataStructure::scriptError |
( |
const QString & |
message | ) |
|
|
signal |
QScriptValue DataStructure::scriptValue |
( |
| ) |
const |
void DataStructure::setEngine |
( |
QScriptEngine * |
engine | ) |
|
|
virtual |
void DataStructure::setName |
( |
const QString & |
s | ) |
|
|
slot |
void DataStructure::setPluginProperty |
( |
const QString & |
, |
|
|
const QString & |
|
|
) |
| |
|
virtual |
Set plugin specific properties of data structure.
- Parameters
-
identifier | is the unique identifier for this property |
value | is the to be set value for the property |
Reimplemented in Rocs::GraphStructure.
Definition at line 585 of file DataStructure.cpp.
void DataStructure::setReadOnly |
( |
bool |
r | ) |
|
void DataStructure::updateData |
( |
DataPtr |
data | ) |
|
Updates registration of data in internal reference list.
- Parameters
-
data | that is set with new type |
Definition at line 247 of file DataStructure.cpp.
void DataStructure::updatePointer |
( |
PointerPtr |
pointer | ) |
|
Updates registration of pointer in internal reference list.
- Parameters
-
pointer | that is set with new type |
Definition at line 256 of file DataStructure.cpp.
QString DataStructure::name |
|
readwrite |
The documentation for this class was generated from the following files:
This file is part of the KDE documentation.
Documentation copyright © 1996-2014 The KDE developers.
Generated on Tue Oct 14 2014 22:42:26 by
doxygen 1.8.7 written
by
Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.