From dead2539353042317e853805de5f4f0d44aa559a Mon Sep 17 00:00:00 2001 From: Simon Hofmann Date: Thu, 5 Dec 2024 18:16:16 +0100 Subject: [PATCH] :art: Rename py_cartesian_cell_layout to py_cartesian_cell_level_layout to not colide with type name --- .../include/pyfiction/layouts/CellLevelLayout.hpp | 15 ++++++++------- 1 file changed, 8 insertions(+), 7 deletions(-) diff --git a/bindings/mnt/pyfiction/include/pyfiction/layouts/CellLevelLayout.hpp b/bindings/mnt/pyfiction/include/pyfiction/layouts/CellLevelLayout.hpp index cc9db28a4..37e9f3a1c 100644 --- a/bindings/mnt/pyfiction/include/pyfiction/layouts/CellLevelLayout.hpp +++ b/bindings/mnt/pyfiction/include/pyfiction/layouts/CellLevelLayout.hpp @@ -29,12 +29,13 @@ namespace pyfiction namespace detail { -class py_cartesian_cell_layout : public fiction::clocked_layout< - fiction::tile_based_layout>> +class py_cartesian_cell_level_layout + : public fiction::clocked_layout< + fiction::tile_based_layout>> { public: template - py_cartesian_cell_layout(std::string technology, Args... args) + py_cartesian_cell_level_layout(std::string technology, Args... args) { std::transform(technology.begin(), technology.end(), technology.begin(), ::tolower); @@ -67,12 +68,12 @@ inline void cell_level_layout(pybind11::module& m) * Cell-level clocked Cartesian layout. */ py::class_< - py_cartesian_cell_layout, + py_cartesian_cell_level_layout, fiction::clocked_layout>>>( m, "CellLevelLayout", DOC(fiction_cell_level_layout)) .def(py::init(), py::arg("technology"), DOC(fiction_cell_level_layout_cell_level_layout)) - .def(py::init&>(), py::arg("technology"), - py::arg("dimension"), DOC(fiction_cell_level_layout_cell_level_layout)) + .def(py::init&>(), + py::arg("technology"), py::arg("dimension"), DOC(fiction_cell_level_layout_cell_level_layout)) // .def(py::init( // [](const fiction::aspect_ratio& dimension, // const std::string& scheme_name, @@ -113,7 +114,7 @@ inline void cell_level_layout(pybind11::module& m) // py::arg("c"), DOC(fiction_cell_level_layout_is_po)) // .def("cells", - [](const py_cartesian_cell_layout& lyt) + [](const py_cartesian_cell_level_layout& lyt) { const auto apply = [](const auto& cell_layout) {