1 /* Icinga 2 | (c) 2012 Icinga GmbH | GPLv2+ */
3 #ifndef DEPENDENCYGRAPH_H
4 #define DEPENDENCYGRAPH_H
6 #include "base/i2-base.hpp"
7 #include "base/object.hpp"
8 #include <boost/thread/mutex.hpp>
14 * A graph that tracks dependencies between objects.
21 static void AddDependency(Object *parent, Object *child);
22 static void RemoveDependency(Object *parent, Object *child);
23 static std::vector<Object::Ptr> GetParents(const Object::Ptr& child);
28 static boost::mutex m_Mutex;
29 static std::map<Object *, std::map<Object *, int> > m_Dependencies;
34 #endif /* DEPENDENCYGRAPH_H */