53 os << GetPointer<constant_o>(
from_port)->get_value();
80 const auto* edge_info = Cget_edge_info<cg_edge_info>(e, *
g);
81 bool is_critical =
false;
84 is_critical = edge_info->is_critical;
88 out <<
"[color=red, ";
92 out <<
"[color=blue, ";
96 out <<
"[color=yellow, ";
100 out <<
"[color=green, ";
104 THROW_ERROR(std::string(
"InconsistentDataStructure"));
109 edge_info->print(out);
124 out <<
"[color=" << (is_critical ?
"red" :
"blue") <<
",shape=Msquare";
int GetSelector() const
Return the selector of this graph.
#define GET_TYPE(data, vertex_index)
Helper macro returning the type associated with a node.
#define GET_OPERATION(data, vertex_index)
Helper macro returning the operation associated with a node.
const std::string & get_id() const
Return the identifier associated with the structural_object.
#define GET_NAME(data, vertex_index)
Helper macro returning the name associated with a node.
Node, edge and graph description of the graph associated with a structural description.
structural_objectRef to_port
destination port/channel to the edge is attached
exceptions managed by PandA
#define CHANNEL_SELECTOR
Channel line selector.
#define TYPE_EXIT
constant identifying the node type of an exit node.
void operator()(std::ostream &out, const EdgeDescriptor &e) const
cg_edge_writer(const graph *_g)
#define DATA_SELECTOR
Data line selector.
boost::graph_traits< graph >::vertex_descriptor vertex
vertex definition.
General class used to describe a graph in PandA.
virtual enum so_kind get_kind() const =0
Virtual function used to find the real type of a structural_object instance.
#define THROW_ERROR(str_expr)
helper function used to throw an error in a standard way
void print(std::ostream &os) const
Print the information associated with the current node of the graph.
This class describes all classes used to represent a structural object.
const structural_objectRef get_owner() const
Return the owner.
void operator()(std::ostream &out, const vertex &v) const
#define GET_CRITICAL(data, node_index)
#define TYPE_ENTRY
constant identifying the node type of an entry node.
structural_objectRef from_port
port from which the edge is generated
cg_label_writer(const graph *_g)
#define CLOCK_SELECTOR
Clock line selector.
boost::graph_traits< graph >::edge_descriptor EdgeDescriptor
edge definition.