diff --git a/src/demeter/common/utils.hpp b/src/demeter/common/utils.hpp index 34f0500..47c0411 100644 --- a/src/demeter/common/utils.hpp +++ b/src/demeter/common/utils.hpp @@ -13,4 +13,13 @@ namespace Demeter { void CheckOpenMP(); +// auto watch = +// [&](std::vector, +// std::reference_wrapper, +// std::reference_wrapper>>&& vec) { +// for (const auto& v : vec) { +// std::visit([](auto&& v) { std::cout << v.get() << std::endl; }, v); +// } +// }; + } // namespace Demeter diff --git a/src/demeter/model/lattice.cpp b/src/demeter/model/lattice.cpp index 7d8ae62..313dd30 100644 --- a/src/demeter/model/lattice.cpp +++ b/src/demeter/model/lattice.cpp @@ -4,10 +4,8 @@ namespace Demeter { std::string Lattice::print() const { std::ostringstream s; s << "Lattice:" << name_ << "\n"; - // if cell, print the cells, else print the cells inside the lattices - + // print names in a matrix view // for (const auto& c : components_) { - // s += c.get().print(false); // } return s.str(); } diff --git a/src/demeter/model/lattice.hpp b/src/demeter/model/lattice.hpp index 7e2809e..977396d 100644 --- a/src/demeter/model/lattice.hpp +++ b/src/demeter/model/lattice.hpp @@ -25,6 +25,8 @@ class Lattice { } std::string print() const; + std::string_view name() const { return name_; } + private: std::vector components_; // TODO use matrix