• Skip to content
  • Skip to link menu
KDE API Reference
  • KDE API Reference
  • kdeedu API Reference
  • KDE Home
  • Contact Us
 

rocs/RocsCore

  • Rocs
  • ListStructure
Public Member Functions | Static Public Member Functions | Properties | List of all members
Rocs::ListStructure Class Reference

#include <ListStructure.h>

Inheritance diagram for Rocs::ListStructure:
Inheritance graph
[legend]

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)
 

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)
 

Properties

QString name
 
- Properties inherited from DataStructure
QString name
 

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 ()
 
- 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)
 

Detailed Description

Definition at line 31 of file ListStructure.h.

Constructor & Destructor Documentation

Rocs::ListStructure::ListStructure ( Document *  parent = 0)
explicit

Definition at line 40 of file ListStructure.cpp.

Rocs::ListStructure::~ListStructure ( )
virtual

Definition at line 94 of file ListStructure.cpp.

Member Function Documentation

QScriptValue Rocs::ListStructure::begin ( )

Use head();.

Deprecated:

Definition at line 150 of file ListStructure.cpp.

DataStructurePtr Rocs::ListStructure::create ( Document *  parent)
static

Definition at line 28 of file ListStructure.cpp.

DataStructurePtr Rocs::ListStructure::create ( DataStructurePtr  other,
Document *  parent 
)
static

Definition at line 33 of file ListStructure.cpp.

DataPtr Rocs::ListStructure::createData ( const QString &  name,
int  dataType 
)
virtual

Internal method to create new graph node.

Use

See also
Data::create(...) for creating new nodes.
Parameters
nameis the name of the node
dataTypeis 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
typeis 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.

PointerPtr Rocs::ListStructure::createPointer ( DataPtr  from,
DataPtr  to,
int  pointerType 
)
virtual

Internal method to create new graph edge.

Use

See also
Pointer::create(...) for creating new edges.
Parameters
fromis the origin of the new edge
tois the target of the new edge
pointerTypeis 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.

void Rocs::ListStructure::importStructure ( DataStructurePtr  other)
virtual

overwrites the current DataStructure with all values (Data and Pointer) from the given datastructure object.

Parameters
otherthe data structure that shall be imported
Returns
void

Reimplemented from DataStructure.

Definition at line 48 of file ListStructure.cpp.

void Rocs::ListStructure::remove ( DataPtr  data)
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
datathe data element that shall be removed

Reimplemented from DataStructure.

Definition at line 127 of file ListStructure.cpp.

void Rocs::ListStructure::remove ( PointerPtr  pointer)
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
pointerthe pointer that shall be removed

Reimplemented from DataStructure.

Definition at line 166 of file ListStructure.cpp.

void Rocs::ListStructure::setBegin ( Data *  node)

Use setHead(node);.

Deprecated:

Definition at line 158 of file ListStructure.cpp.

void Rocs::ListStructure::setHead ( Data *  headNode)

Set head node of linked list.

Parameters
nodeis the

Definition at line 140 of file ListStructure.cpp.

Property Documentation

QString Rocs::ListStructure::name
readwrite

Definition at line 34 of file ListStructure.h.


The documentation for this class was generated from the following files:
  • ListStructure.h
  • ListStructure.cpp
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.

rocs/RocsCore

Skip menu "rocs/RocsCore"
  • Main Page
  • Namespace List
  • Namespace Members
  • Alphabetical List
  • Class List
  • Class Hierarchy
  • Class Members
  • File List
  • File Members
  • Related Pages

kdeedu API Reference

Skip menu "kdeedu API Reference"
  • Analitza
  •     lib
  • kalgebra
  • kalzium
  •   libscience
  • kanagram
  • kig
  •   lib
  • klettres
  • kstars
  • libkdeedu
  •   keduvocdocument
  • marble
  • parley
  • rocs
  •   App
  •   RocsCore
  •   VisualEditor
  •   stepcore

Search



Report problems with this website to our bug tracking system.
Contact the specific authors with questions and comments about the page contents.

KDE® and the K Desktop Environment® logo are registered trademarks of KDE e.V. | Legal