From fcff203c23ccd4ced76dafe1496b8c83adb88ddc Mon Sep 17 00:00:00 2001 From: Miodrag Milanovic Date: Thu, 5 Jul 2018 10:13:29 +0200 Subject: typeof to decltype --- common/pybindings.cc | 36 ++++++++++++++++++------------------ common/pycontainers.h | 8 ++++---- 2 files changed, 22 insertions(+), 22 deletions(-) (limited to 'common') diff --git a/common/pybindings.cc b/common/pybindings.cc index 9bca307c..64055755 100644 --- a/common/pybindings.cc +++ b/common/pybindings.cc @@ -95,50 +95,50 @@ BOOST_PYTHON_MODULE(MODULE_NAME) class_("BaseCtx", no_init); auto ci_cls = class_>("CellInfo", no_init); - readwrite_wrapper, + readwrite_wrapper, conv_from_str>::def_wrap(ci_cls, "name"); - readwrite_wrapper, + readwrite_wrapper, conv_from_str>::def_wrap(ci_cls, "type"); - readonly_wrapper>::def_wrap( + readonly_wrapper>::def_wrap( ci_cls, "attrs"); - readonly_wrapper>::def_wrap( + readonly_wrapper>::def_wrap( ci_cls, "params"); - readonly_wrapper>::def_wrap( + readonly_wrapper>::def_wrap( ci_cls, "ports"); - readwrite_wrapper, + readwrite_wrapper, conv_from_str>::def_wrap(ci_cls, "bel"); - readwrite_wrapper, + readwrite_wrapper, pass_through>::def_wrap(ci_cls, "belStrength"); - readonly_wrapper>::def_wrap(ci_cls, + readonly_wrapper>::def_wrap(ci_cls, "pins"); auto pi_cls = class_>("PortInfo", no_init); - readwrite_wrapper, + readwrite_wrapper, conv_from_str>::def_wrap(pi_cls, "name"); - readonly_wrapper>::def_wrap(pi_cls, + readonly_wrapper>::def_wrap(pi_cls, "net"); - readwrite_wrapper, + readwrite_wrapper, pass_through>::def_wrap(pi_cls, "type"); typedef std::vector PortVector; typedef std::unordered_map WireMap; auto ni_cls = class_>("NetInfo", no_init); - readwrite_wrapper, + readwrite_wrapper, conv_from_str>::def_wrap(ni_cls, "name"); - readwrite_wrapper, + readwrite_wrapper, unwrap_context>::def_wrap(ni_cls, "driver"); - readonly_wrapper>::def_wrap( + readonly_wrapper>::def_wrap( ni_cls, "users"); - readonly_wrapper>::def_wrap(ni_cls, + readonly_wrapper>::def_wrap(ni_cls, "wires"); auto pr_cls = class_>("PortRef", no_init); - readonly_wrapper>::def_wrap(pr_cls, + readonly_wrapper>::def_wrap(pr_cls, "cell"); - readwrite_wrapper, + readwrite_wrapper, conv_from_str>::def_wrap(pr_cls, "port"); - readwrite_wrapper, + readwrite_wrapper, pass_through>::def_wrap(pr_cls, "budget"); def("parse_json", parse_json_shim); diff --git a/common/pycontainers.h b/common/pycontainers.h index f4251558..094706f7 100644 --- a/common/pycontainers.h +++ b/common/pycontainers.h @@ -200,7 +200,7 @@ template struct map_pair_wrapper { if (iter.second == 0) { iter.second++; - return object(PythonConversion::string_converter().to_str( + return object(PythonConversion::string_converter().to_str( iter.first.ctx, iter.first.base.first)); } else if (iter.second == 1) { iter.second++; @@ -233,7 +233,7 @@ template struct map_pair_wrapper static std::string first_getter(wrapped_pair &t) { - return PythonConversion::string_converter().to_str(t.ctx, t.base.first); + return PythonConversion::string_converter().to_str(t.ctx, t.base.first); } static typename value_conv::ret_type second_getter(wrapped_pair &t) { return value_conv()(t.ctx, t.base.second); } @@ -316,7 +316,7 @@ template struct map_pair_wrapper_uptr { if (iter.second == 0) { iter.second++; - return object(PythonConversion::string_converter().to_str( + return object(PythonConversion::string_converter().to_str( iter.first.ctx, iter.first.base.first)); } else if (iter.second == 1) { iter.second++; @@ -350,7 +350,7 @@ template struct map_pair_wrapper_uptr static std::string first_getter(wrapped_pair &t) { - return PythonConversion::string_converter().to_str(t.ctx, t.base.first); + return PythonConversion::string_converter().to_str(t.ctx, t.base.first); } static PythonConversion::ContextualWrapper second_getter(wrapped_pair &t) -- cgit v1.2.3