24 #ifndef STORAGE_ACTIONGRAPH_H 25 #define STORAGE_ACTIONGRAPH_H 31 #include <boost/noncopyable.hpp> 33 #include "storage/Graphviz.h" 34 #include "storage/CompoundAction.h" 66 const Storage& get_storage()
const;
68 const Devicegraph* get_devicegraph(Side side)
const;
70 void print_graph()
const;
79 void write_graphviz(
const std::string& filename, ActiongraphStyleCallbacks* style_callbacks)
const;
91 void print_order()
const;
95 size_t num_actions()
const;
103 std::vector<std::string> get_commit_actions_as_strings()
const;
105 void generate_compound_actions();
106 std::vector<const CompoundAction*> get_compound_actions()
const;
112 Impl& get_impl() {
return *impl; }
113 const Impl& get_impl()
const {
return *impl; }
117 const std::unique_ptr<Impl> impl;
GraphvizFlags
Bitfield to control graphviz output.
Definition: Graphviz.h:44
std::vector< const Action::Base * > get_commit_actions() const
Sorted according to dependencies among actions.
Actiongraph(const Storage &storage, Devicegraph *lhs, Devicegraph *rhs)
The master container of the libstorage.
Definition: Devicegraph.h:153
Definition: Actiongraph.h:55
The main entry point to libstorage.
Definition: Storage.h:259
The storage namespace.
Definition: Actiongraph.h:37
void write_graphviz(const std::string &filename, ActiongraphStyleCallbacks *style_callbacks) const
Writes the actiongraph in graphviz format.