Go to the documentation of this file. 1 #ifndef GRAPH_ANALYSIS_BASE_GRAPH_OBSERVER_HPP
2 #define GRAPH_ANALYSIS_BASE_GRAPH_OBSERVER_HPP
39 typedef shared_ptr<BaseGraphObserver>
Ptr;
46 throw std::runtime_error(
47 "BaseGraphObserver::notify(Vertex) not implemented");
52 throw std::runtime_error(
53 "BaseGraphObserver::notify(Edge) not implemented");
uint32_t GraphId
Definition: GraphElement.hpp:22
virtual void notify(const Vertex::Ptr &vertex, const EventType &event, const GraphId &origin)
Definition: BaseGraphObserver.hpp:43
@ TRANSACTION_START
Definition: BaseGraphObserver.hpp:29
shared_ptr< BaseGraphObserver > Ptr
Definition: BaseGraphObserver.hpp:39
Main namespace of the graph analysis library.
Definition: BFS.cpp:3
shared_ptr< Edge > Ptr
Definition: Edge.hpp:21
virtual void notify(const Edge::Ptr &edge, const EventType &event, const GraphId &origin)
Definition: BaseGraphObserver.hpp:49
@ EVENT_TYPE_ADDED
Definition: BaseGraphObserver.hpp:17
shared_ptr< Vertex > Ptr
Definition: Vertex.hpp:22
virtual void notify(const TransactionType &event, const GraphId &origin)
Definition: BaseGraphObserver.hpp:55
@ TRANSACTION_STOP
Definition: BaseGraphObserver.hpp:30
@ EVENT_TYPE_REMOVED
Definition: BaseGraphObserver.hpp:18
TransactionType
Transaction events These events are triggers for the notification system to allow transactions to be ...
Definition: BaseGraphObserver.hpp:27
virtual ~BaseGraphObserver()
Definition: BaseGraphObserver.hpp:41
EventType
Types of events for the observer. Example: notify(vertex, EVENT_TYPE_ADDED, ...) is called whenever a...
Definition: BaseGraphObserver.hpp:15
Virtual interface class for observing a base graph.
Definition: BaseGraphObserver.hpp:36