1 #ifndef _CORE_NETWORK_H_
2 #define _CORE_NETWORK_H_
11 #include "smaug/core/typedefs.h"
12 #include "smaug/core/operator.h"
13 #include "smaug/core/workspace.h"
25 void operator()(std::ostream& out,
const Vertex& v) {
26 Operator* op = get(boost::vertex_op, graph, v);
27 out <<
"[label=\"" << op->getName() <<
"\"]";
41 typedef std::map<std::string, Operator*> OperatorMap;
52 const OperatorMap& getOperators()
const {
return operators; }
56 const Graph& getGraph()
const {
return graph; }
57 void dumpDataflowGraph()
const;
59 void printSummary()
const;
60 bool validate()
const;
61 OperatorMap::iterator begin() {
return operators.begin(); }
62 OperatorMap::iterator end() {
return operators.end(); }
73 std::vector<Operator*> targetOps;