Overview     Modules     Class Hierarchy     Classes     Members  

tlp::GraphObserver Class Reference
[Graphs]

That class receives a message (call back/handler function) after each modification of a Graph. More...

#include <ObservableGraph.h>

Inheritance diagram for tlp::GraphObserver:
Collaboration diagram for tlp::GraphObserver:

List of all members.

Classes

  • class RealGraphObserver

Public Member Functions

Friends


Detailed Description

That class receives a message (call back/handler function) after each modification of a Graph.

To receive a notification from an ObservableGraph, the GraphObserver must first be connected to the ObservableGraph. This is done by calling ObservableGraph::addGraphObserver.

Depending on which messages you want to receive, you need to override different functions of GraphObserver.

If manageObservables is set to true, the GraphObserver will automatically unregister from an ObservableGraph when deleted. (ie, unregistering is done automatically)

The Observer pattern is described pp293-304 of the book 'Design Patterns' by Gamma, Helm, Johnson, and Vlissides.


Constructor & Destructor Documentation

tlp::GraphObserver::GraphObserver (  )  [inline]
virtual tlp::GraphObserver::~GraphObserver (  )  [inline, virtual]
tlp::GraphObserver::GraphObserver ( const GraphObserver  )  [inline]

Member Function Documentation

virtual void tlp::GraphObserver::addEdge ( Graph ,
const   edge 
) [inline, virtual]

Reimplemented in tlp::DoubleProperty.

virtual void tlp::GraphObserver::addInheritedProperty ( Graph ,
const std::string &   
) [inline, virtual]
virtual void tlp::GraphObserver::addLocalProperty ( Graph ,
const std::string &   
) [inline, virtual]
virtual void tlp::GraphObserver::addNode ( Graph ,
const   node 
) [inline, virtual]

Reimplemented in tlp::DoubleProperty.

virtual void tlp::GraphObserver::addSubGraph ( Graph ,
Graph  
) [inline, virtual]

Reimplemented in tlp::DoubleProperty.

virtual void tlp::GraphObserver::afterDelInheritedProperty ( Graph ,
const std::string &   
) [inline, virtual]
virtual void tlp::GraphObserver::afterDelLocalProperty ( Graph ,
const std::string &   
) [inline, virtual]
virtual void tlp::GraphObserver::afterSetAttribute ( Graph ,
const std::string &   
) [inline, virtual]
virtual void tlp::GraphObserver::afterSetEnds ( Graph ,
const   edge 
) [inline, virtual]
virtual void tlp::GraphObserver::beforeDelInheritedProperty ( Graph ,
const std::string &   
) [inline, virtual]
virtual void tlp::GraphObserver::beforeDelLocalProperty ( Graph g,
const std::string &  pName 
) [inline, virtual]
virtual void tlp::GraphObserver::beforeSetAttribute ( Graph ,
const std::string &   
) [inline, virtual]
virtual void tlp::GraphObserver::beforeSetEnds ( Graph ,
const   edge 
) [inline, virtual]
virtual void tlp::GraphObserver::delEdge ( Graph ,
const   edge 
) [inline, virtual]

Reimplemented in tlp::DoubleProperty.

virtual void tlp::GraphObserver::delLocalProperty ( Graph ,
const std::string &   
) [inline, virtual]
virtual void tlp::GraphObserver::delNode ( Graph ,
const   node 
) [inline, virtual]

Reimplemented in tlp::DoubleProperty.

virtual void tlp::GraphObserver::delSubGraph ( Graph ,
Graph  
) [inline, virtual]

Reimplemented in tlp::DoubleProperty.

virtual void tlp::GraphObserver::destroy ( Graph  )  [inline, virtual]

Reimplemented in tlp::GraphProperty.

GraphObserver& tlp::GraphObserver::operator= ( const GraphObserver  )  [inline]
virtual void tlp::GraphObserver::removeAttribute ( Graph ,
const std::string &   
) [inline, virtual]
virtual void tlp::GraphObserver::reverseEdge ( Graph ,
const   edge 
) [inline, virtual]

Friends And Related Function Documentation

friend class Graph [friend]
friend class Observergraph [friend]


Tulip Software by LaBRI Visualization Team    2001 - 2011