Tulip  4.2.0
Better Visualization Through Research
 All Classes Namespaces Files Functions Variables Enumerations Enumerator Properties Groups Pages
tlp::GraphEvent Class Reference

#include <Graph.h>

Inherits tlp::Event.

Public Types

enum  GraphEventType {
  TLP_ADD_NODE = 0, TLP_DEL_NODE = 1, TLP_ADD_EDGE = 2, TLP_DEL_EDGE = 3,
  TLP_REVERSE_EDGE = 4, TLP_BEFORE_SET_ENDS = 5, TLP_AFTER_SET_ENDS = 6, TLP_ADD_NODES = 7,
  TLP_ADD_EDGES = 8, TLP_BEFORE_ADD_DESCENDANTGRAPH = 9, TLP_AFTER_ADD_DESCENDANTGRAPH = 10, TLP_BEFORE_DEL_DESCENDANTGRAPH = 11,
  TLP_AFTER_DEL_DESCENDANTGRAPH = 12, TLP_BEFORE_ADD_SUBGRAPH = 13, TLP_AFTER_ADD_SUBGRAPH = 14, TLP_BEFORE_DEL_SUBGRAPH = 15,
  TLP_AFTER_DEL_SUBGRAPH = 16, TLP_ADD_LOCAL_PROPERTY = 17, TLP_BEFORE_DEL_LOCAL_PROPERTY = 18, TLP_AFTER_DEL_LOCAL_PROPERTY = 19,
  TLP_ADD_INHERITED_PROPERTY = 20, TLP_BEFORE_DEL_INHERITED_PROPERTY = 21, TLP_AFTER_DEL_INHERITED_PROPERTY = 22, TLP_BEFORE_SET_ATTRIBUTE = 23,
  TLP_AFTER_SET_ATTRIBUTE = 24, TLP_REMOVE_ATTRIBUTE = 25, TLP_BEFORE_ADD_LOCAL_PROPERTY = 26, TLP_BEFORE_ADD_INHERITED_PROPERTY = 27
}
 
- Public Types inherited from tlp::Event
enum  EventType { TLP_DELETE = 0, TLP_MODIFICATION, TLP_INFORMATION, TLP_INVALID }
 

Public Member Functions

 GraphEvent (const Graph &g, GraphEventType graphEvtType, unsigned int id, Event::EventType evtType=Event::TLP_MODIFICATION)
 
 GraphEvent (const Graph &g, GraphEventType graphEvtType, const std::vector< node > &nodes, Event::EventType evtType=Event::TLP_MODIFICATION)
 
 GraphEvent (const Graph &g, GraphEventType graphEvtType, const std::vector< edge > &edges, Event::EventType evtType=Event::TLP_MODIFICATION)
 
 GraphEvent (const Graph &g, GraphEventType graphEvtType, const Graph *sg)
 
 GraphEvent (const Graph &g, GraphEventType graphEvtType, const std::string &str, Event::EventType evtType=Event::TLP_MODIFICATION)
 
const std::string & getAttributeName () const
 
edge getEdge () const
 
const std::vector< edge > & getEdges () const
 
GraphgetGraph () const
 
node getNode () const
 
const std::vector< node > & getNodes () const
 
const std::string & getPropertyName () const
 
const GraphgetSubGraph () const
 
GraphEventType getType () const
 
- Public Member Functions inherited from tlp::Event
 Event (const Observable &sender, EventType type)
 
Observablesender () const
 
EventType type () const
 

Protected Attributes

GraphEventType evtType
 
union {
const std::vector< edge > * edges
 
unsigned int eltId
 
std::string * name
 
const std::vector< node > * nodes
 
const GraphsubGraph
 
info
 

Detailed Description

Event class for specific events on Graph

Definition at line 1513 of file Graph.h.