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"
35#include "storage/UsedFeatures.h"
119 void write_graphviz(
const std::string& filename, ActiongraphStyleCallbacks* style_callbacks)
const;
137 std::vector<std::string> get_commit_actions_as_strings()
const;
139 void generate_compound_actions();
140 std::vector<const CompoundAction*> get_compound_actions()
const;
146 Impl& get_impl() {
return *impl; }
147 const Impl& get_impl()
const {
return *impl; }
151 const std::unique_ptr<Impl> impl;
The actiongraph has all actions including the dependencies among them to get from one devicegraph to ...
Definition: Actiongraph.h:61
Actiongraph(const Storage &storage, Devicegraph *lhs, Devicegraph *rhs)
Calculate the actiongraph to get from the LHS (left-hand side) to the RHS (right-hand side) devicegra...
void print_graph() const
Print the actiongraph on cout.
uf_t used_features() const
Calculates a bit-field with the used features of the actiongraph.
size_t num_actions() const
Return the number of actions in the actiongraph.
const Devicegraph * get_devicegraph(Side side) const
Get the left or right devicegraph for which the actiongraph was constructed.
const Storage & get_storage() const
Get the storage object for which the actiongraph was constructed.
void write_graphviz(const std::string &filename, ActiongraphStyleCallbacks *style_callbacks) const
Writes the actiongraph in graphviz format.
bool empty() const
Check whether the actiongraph is empty.
void write_graphviz(const std::string &filename, GraphvizFlags flags=GraphvizFlags::NAME, GraphvizFlags tooltip_flags=GraphvizFlags::NONE) const
Writes the actiongraph in graphviz format.
void print_order() const
Print the order of the actions on cout.
std::vector< const Action::Base * > get_commit_actions() const
Sorted according to dependencies among actions.
The main container of the libstorage-ng.
Definition: Devicegraph.h:170
The main entry point to libstorage.
Definition: Storage.h:413
The storage namespace.
Definition: Actiongraph.h:39
uint64_t uf_t
Type for used features.
Definition: UsedFeatures.h:63
GraphvizFlags
Bitfield to control graphviz output.
Definition: Graphviz.h:45