Skip to content
Snippets Groups Projects
  1. Oct 20, 2022
  2. Oct 06, 2022
  3. Sep 23, 2022
  4. Aug 06, 2022
  5. Jul 18, 2022
  6. Jul 08, 2022
  7. Jun 14, 2022
  8. Jun 01, 2022
  9. May 23, 2022
  10. Apr 25, 2022
  11. Mar 19, 2022
  12. Mar 18, 2022
    • Samuel Burbulla's avatar
      Add auto-clean up of dune-py modules. · 8ad1aff9
      Samuel Burbulla authored and Andreas Dedner's avatar Andreas Dedner committed
      Add info command.g
      Add `python -m dune info` command.
      
      Add fix-dunepy command.
      
      Check if 'cmake .' returns 0.
      
      Add --ccfiles flag for listing .cc files.
      
      [fix] issue with comment line in CMakeLists.txt being removed by fix command
      
      add a --force to the fix-dunepy command which simply removes the whole dune-py
      8ad1aff9
  13. Mar 17, 2022
  14. Feb 28, 2022
    • Carsten Gräser's avatar
      Add utilities for working with `std::reference_wrapper` · da4bd702
      Carsten Gräser authored
      This adds three utilities (stolen from dune-functions) and a
      corresponding test for working with `std::reference_wrapper`:
      
      * `IsReferenceWrapper_v<T>` allows to check if `T` is an instantiation of `std::reference_wrapper`
      * The function `resolveRef(t)` either returns `t.get()` or `t`
        depending on whether `t` is a `std::reference_wrapper` or a plain
        l-value reference.
      * `ResolveRef_t<T>` provides the resolved type for `T`.
      
      These utilities allow to support storing data members of classes by value _or_
      reference transparently suing the following pattern. The class always stores
      values, but supports passing `std::ref(...)` to opt-in store-by-reference.
      Handling the latter can be done without boilerplate code using the
      provided utilities:
      
      ```cpp
      template<class StoredT>
      struct SomeWrapper {
      
        using T = ResolveRef_t<StoredT>;
      
        SomeWrapper(const StoredT& t) : t_(t) {}
      
        void callFoo() const {
          resolveRef(t_).foo();
        }
      
        StoredT t_;
      };
      
      [...]
      
      // Store t by value
      auto w1 = SomeWrapper(t);
      w1.callFoo();
      
      // Store t by reference
      auto w2 = SomeWrapper(std::cref(t));
      w2.callFoo();
      ```
      da4bd702
  15. Jan 21, 2022
  16. Nov 05, 2021
  17. Nov 04, 2021
  18. Oct 30, 2021
  19. Oct 24, 2021
  20. Oct 21, 2021
  21. Oct 15, 2021
  22. Oct 14, 2021
  23. Sep 24, 2021
  24. Aug 31, 2021
  25. Aug 13, 2021
  26. Jul 18, 2021
  27. Jul 12, 2021
  28. Jul 08, 2021
Loading