DependencyInfo Class Reference

Class for managing build-dependencies. More...

#include <DependencyInfo.h>

List of all members.

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


Detailed Description

Class for managing build-dependencies.

Planned to integrate in ProjectManager for dependency management - not yet finished TODO

Definition at line 15 of file DependencyInfo.h.


Member Enumeration Documentation

enum DependencyInfo::State

Enumerator:
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.


Member Function Documentation

void DependencyInfo::addDependency ( DependencyInfo dep  ) 

Adds a node this node depends on.

Definition at line 9 of file DependencyInfo.cpp.

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]

Definition at line 36 of file DependencyInfo.cpp.

Here is the call graph for this function:

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:


Member Data Documentation

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


The documentation for this class was generated from the following files:
Generated on Tue Sep 15 14:48:48 2009 for RoseQtWidgets by  doxygen 1.4.7