Go to the documentation of this file. 1 #ifndef GRAPH_ANALYSIS_TRANSACTION_OBSERVER_HPP__
2 #define GRAPH_ANALYSIS_TRANSACTION_OBSERVER_HPP__
5 #include <boost/pointer_cast.hpp>
6 #include <boost/shared_ptr.hpp>
59 typedef shared_ptr<TransactionObserver>
Ptr;
83 std::vector<ObserverEvent> mEvents;
85 int mTransactionLevel;
uint32_t GraphId
Definition: GraphElement.hpp:22
virtual ~TransactionObserver()
Definition: TransactionObserver.cpp:39
GraphId origin
Definition: TransactionObserver.hpp:14
bool inTransaction()
return true if a transaction is currently running
Definition: TransactionObserver.cpp:80
TransactionObserver(BaseGraphObserver::Ptr &observer)
Definition: TransactionObserver.cpp:35
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
GraphElement::Ptr element
Definition: TransactionObserver.hpp:13
EventType event
Definition: TransactionObserver.hpp:15
static TransactionObserver::Ptr getInstance(BaseGraphObserver::Ptr &observer)
Definition: TransactionObserver.cpp:30
shared_ptr< GraphElement > Ptr
Definition: GraphElement.hpp:46
shared_ptr< Vertex > Ptr
Definition: Vertex.hpp:22
ObserverEvent()
Definition: TransactionObserver.cpp:5
shared_ptr< TransactionObserver > Ptr
Definition: TransactionObserver.hpp:59
Definition: TransactionObserver.hpp:11
bool match(const ObserverEvent &other) const
return true if a match is found between two events
Definition: TransactionObserver.cpp:12
A transaction observer.
Definition: TransactionObserver.hpp:56
TransactionType
Transaction events These events are triggers for the notification system to allow transactions to be ...
Definition: BaseGraphObserver.hpp:27
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
virtual void notify(const Vertex::Ptr &vertex, const EventType &event, const GraphId &origin)
Definition: TransactionObserver.cpp:41