#include <DependencyInfo.h>
Public Types | |
| VALID | |
| node is up to date | |
| INVALID | |
| note is invalidated, waiting for dependecies to update | |
| ERROR | |
| while building the node an error occured | |
| enum | State { VALID, INVALID, ERROR } |
Public Slots | |
| virtual void | invalidate () |
Public Member Functions | |
| void | addDependency (DependencyInfo *dep) |
| Adds a node this node depends on. | |
| virtual void | buildFinished (bool successful) |
| virtual State | getState () |
Static Public Member Functions | |
| static void | checkGraphForRebuilds (const QList< DependencyInfo * > &graph) |
Protected Member Functions | |
| virtual void | rebuild ()=0 |
| Starts a rebuild of this node. | |
Protected Attributes | |
| QList< DependencyInfo * > | dependsOn |
| QList< DependencyInfo * > | dependendNodes |
| State | state |
Planned to integrate in ProjectManager for dependency management - not yet finished TODO
Definition at line 15 of file DependencyInfo.h.
| VALID | node is up to date |
| INVALID | note is invalidated, waiting for dependecies to update |
| ERROR | while building the node an error occured |
Definition at line 20 of file DependencyInfo.h.
| void DependencyInfo::addDependency | ( | DependencyInfo * | dep | ) |
| void DependencyInfo::buildFinished | ( | bool | successful | ) | [virtual] |
Updates the current state of this node when build successful to VALID, and to ERROR otherwise
Definition at line 16 of file DependencyInfo.cpp.
| void DependencyInfo::checkGraphForRebuilds | ( | const QList< DependencyInfo * > & | graph | ) | [static] |
| virtual State DependencyInfo::getState | ( | ) | [inline, virtual] |
Definition at line 36 of file DependencyInfo.h.
| void DependencyInfo::invalidate | ( | ) | [virtual, slot] |
This node an all nodes which depend on it, are set to invalid usually called if object changes,
Definition at line 26 of file DependencyInfo.cpp.
Referenced by invalidate().
| virtual void DependencyInfo::rebuild | ( | ) | [protected, pure virtual] |
Starts a rebuild of this node.
Referenced by checkGraphForRebuilds().
Here is the caller graph for this function:

QList<DependencyInfo *> DependencyInfo::dependendNodes [protected] |
outgoing edges in dependency graph i.e. list of nodes which depend on this node
Definition at line 56 of file DependencyInfo.h.
Referenced by addDependency(), and invalidate().
QList<DependencyInfo *> DependencyInfo::dependsOn [protected] |
incoming edges in dependency graph i.e. nodes this node depends on
Definition at line 52 of file DependencyInfo.h.
Referenced by addDependency(), and checkGraphForRebuilds().
State DependencyInfo::state [protected] |
Definition at line 58 of file DependencyInfo.h.
Referenced by buildFinished(), checkGraphForRebuilds(), getState(), and invalidate().
1.4.7