libstorage-ng
Public Member Functions | List of all members
storage::Actiongraph Class Reference
Inheritance diagram for storage::Actiongraph:
[legend]
Collaboration diagram for storage::Actiongraph:
[legend]

Public Member Functions

 Actiongraph (const Storage &storage, Devicegraph *lhs, Devicegraph *rhs)
 
const Storageget_storage () const
 
const Devicegraphget_devicegraph (Side side) const
 
void print_graph () const
 
void write_graphviz (const std::string &filename, ActiongraphStyleCallbacks *style_callbacks) const
 Writes the actiongraph in graphviz format. More...
 
void write_graphviz (const std::string &filename, GraphvizFlags flags=GraphvizFlags::NAME, GraphvizFlags tooltip_flags=GraphvizFlags::NONE) const
 Writes the actiongraph in graphviz format. More...
 
void print_order () const
 
bool empty () const
 
size_t num_actions () const
 
std::vector< const Action::Base * > get_commit_actions () const
 Sorted according to dependencies among actions.
 
std::vector< std::string > get_commit_actions_as_strings () const
 
void generate_compound_actions ()
 
std::vector< const CompoundAction * > get_compound_actions () const
 
Impl & get_impl ()
 
const Impl & get_impl () const
 

Constructor & Destructor Documentation

◆ Actiongraph()

storage::Actiongraph::Actiongraph ( const Storage storage,
Devicegraph lhs,
Devicegraph rhs 
)
Exceptions
Exception

Member Function Documentation

◆ write_graphviz() [1/2]

void storage::Actiongraph::write_graphviz ( const std::string &  filename,
ActiongraphStyleCallbacks *  style_callbacks 
) const

Writes the actiongraph in graphviz format.

The style_callbacks are used to define graphviz attributes for the graph, nodes and edges, e.g. label, color and shape.

Exceptions
Exception

◆ write_graphviz() [2/2]

void storage::Actiongraph::write_graphviz ( const std::string &  filename,
GraphvizFlags  flags = GraphvizFlags::NAME,
GraphvizFlags  tooltip_flags = GraphvizFlags::NONE 
) const

Writes the actiongraph in graphviz format.

Deprecated in favor of write_graphviz(const std::string&, ActiongraphStyleCallbacks*).

Exceptions
Exception

The documentation for this class was generated from the following file: