3#ifndef _popfloat_gfloat_expr_util_hpp_
4#define _popfloat_gfloat_expr_util_hpp_
6#include <popfloat/experimental/GfloatExpr.hpp>
11namespace experimental {
13std::string roundTypeToString(RoundType rmode);
14std::string formatTypeToString(FormatType fmt);
15std::string srDensityTypeToString(SRDensityType dist);
16std::string specTypeToString(SpecType specType);
24template <>
struct VertexTemplateToString<popfloat::experimental::RoundType> {
25 static std::string to_string(
const popfloat::experimental::RoundType &rmode) {
26 return "popfloat::experimental::RoundType::" +
27 popfloat::experimental::roundTypeToString(rmode);
31template <>
struct VertexTemplateToString<popfloat::experimental::FormatType> {
32 static std::string to_string(
const popfloat::experimental::FormatType &fmt) {
33 return "popfloat::experimental::FormatType::" +
34 popfloat::experimental::formatTypeToString(fmt);
39struct VertexTemplateToString<popfloat::experimental::SRDensityType> {
41 to_string(
const popfloat::experimental::SRDensityType &dist) {
42 return "popfloat::experimental::SRDensityType::" +
43 popfloat::experimental::srDensityTypeToString(dist);
47template <>
struct VertexTemplateToString<popfloat::experimental::SpecType> {
48 static std::string to_string(
const popfloat::experimental::SpecType &spec) {
49 return "popfloat::experimental::SpecType::" +
50 popfloat::experimental::specTypeToString(spec);
Generate a string describing a vertex type.
Class representing device data types.
Definition: Type.hpp:42
General utility functions for building graphs.
Definition: GfloatExprUtil.hpp:23