49 #ifndef ZOLTAN2_GRAPHCMETRICS_HPP 50 #define ZOLTAN2_GRAPHCMETRICS_HPP 59 template <
typename scalar_t>
76 virtual void printLine(std::ostream &os)
const;
101 template <
typename scalar_t>
105 template <
typename scalar_t>
111 template <
typename scalar_t>
114 os << std::setw(20) <<
" ";
115 os << std::setw(12) <<
"total" << std::setw(12) <<
"max";
119 template <
typename scalar_t>
122 std::string label( this->getName() );
124 os << std::setw(20) << label;
125 os << std::setw(12) << std::setprecision(4) << this->getMetricValue(
"global sum");
126 os << std::setw(12) << std::setprecision(4) << this->getMetricValue(
"global maximum");
scalar_t getMetricValue(const std::string &metric_name) const
GraphMetrics()
Constructor.
static void printHeader(std::ostream &os)
Print a standard header.
virtual const std::vector< std::string > & getMetrics() const
GraphMetrics(std::string mname)
Constructor.
void setMetricValue(const std::string &metric_name, scalar_t value) const
static std::string static_metricTypeName_
void setGlobalMax(scalar_t x)
Set the global maximum across parts.
virtual void printLine(std::ostream &os) const
Print a standard line of data that fits under the header.
scalar_t getGlobalMax() const
Get the global maximum of edge cuts per part across all parts.
void setValue(int enumIndex, scalar_t value)
virtual const std::string & getMetricType() const
Get the class type of the metric.
void setGlobalSum(scalar_t x)
Set the global sum.
static std::vector< std::string > static_metricNames_
Defines the GraphModel interface.
scalar_t getGlobalSum() const
Get the global sum of edge cuts for all parts.
#define GRAPH_METRICS_TYPE_NAME