Skip to content
Snippets Groups Projects
  1. Jan 29, 2016
  2. Nov 19, 2015
    • Carsten Gräser's avatar
      [cleanup] Move PriorityTag to typeutilities.hh · 7a4dbe08
      Carsten Gräser authored
      This removed the recently added prioritytag.hh
      header again. Having a separate header for each
      of these trivial helpers will only clutter the
      directory and make people lookup the correct
      header more often.
      7a4dbe08
    • Carsten Gräser's avatar
      Add typeutilities · a247658f
      Carsten Gräser authored
      This header should be used to collect all utilities for
      type computations, constraining overloads, and similar
      purposes, that are not type-traits.
      a247658f
  3. Nov 18, 2015
  4. Nov 17, 2015
    • Carsten Gräser's avatar
      [utility] Add TypeList class · 9ca79880
      Carsten Gräser authored
      This can be used to 'store' an argument pack and access
      its members. In contrast to a std::tuple<T...> which is
      a container of objects of types T... a TypeList<T...>
      only captures the types T... . Hence one can easily
      create TypeList objects and use them to pass types around
      or. e.g., in overload resolution where they can be used for
      tag-dispatch.
      
      This class is e.g. used in the concept checking facility
      I'll add soon.
      
      Notice that adding a template packer<T...> doing exactly
      the same has been proposed for the standard in N4115
      
        http://www.open-std.org/jtc1/sc22/wg21/docs/papers/2014/n4115.html
      9ca79880
  5. Nov 05, 2015
  6. Oct 30, 2015
  7. Oct 15, 2015
  8. Feb 06, 2015
    • Steffen Müthing's avatar
      [Utility] Add infrastructure to handle operator->() for both lvalues and proxies · 7623a530
      Steffen Müthing authored
      If an iterator facade (like entity iterators) wants to allow the
      embedded implementation to return either an (internally stored)
      reference or a temporary object and expose these two behaviors to enable
      performance optimizations, operator->() needs special handling: If the
      implementation returns a reference, operator->() in the facade can
      simply return the address of the referenced object, but if the returned
      object is a temporary, we need to capture and store it in a helper
      object to make sure it outlives the member access.
      
      This patch adds a little helper function that tansparently handles both
      cases.
      7623a530
  9. Dec 18, 2014
    • Jö Fahlke's avatar
      [threads] Introduce DUNE_ASSERT_CALL_ONCE and assertCallOnce(). · 92947aaf
      Jö Fahlke authored
      These check whether std::call_once() works and provide a helpful error message
      if it does not.  They should be used in any code that uses std::call_once().
      
      Call once may not work if one forgets to _link_ with -pthread (or similar
      options).  The nasty think about this is that linking still succeeds, so this
      can only be detected at run time.  We cannot (in general) run compiled
      programs during configure, since we may be cross-compiling, so whatever we get
      from configure is at best a guess.
      
      Even if configure detects the necessary flags correctly, there may still be
      errors in the build system such that the executable is linked without them.
      
      The reason to provide such a facility is that the bug is quite difficult to
      debug when it appears.  The error message is mangled due to a different bug,
      and is quite unhelpful anyway.  And then there is the fun with weak symbols...
      92947aaf
  10. Jul 18, 2014
  11. Feb 14, 2014
  12. Dec 18, 2013
  13. Dec 03, 2013
    • Christoph Gersbacher's avatar
      Implement read-only IdentityMatrix · 64df6274
      Christoph Gersbacher authored
      This implementation of an IdentityMatrix does not hold any data. It
      implements a reduced version of the DenseMatrix interface including a
      standard C++ cast operator to a Dune::FieldMatrix. This code illustrates
      the new forward capabilities of DenseMatrixAssigner.
      64df6274
  14. Oct 11, 2013
  15. Oct 05, 2013
  16. Oct 02, 2013
  17. Oct 01, 2013
    • Martin Nolte's avatar
      [c++11] add support for C++11 constexpr · 45990b69
      Martin Nolte authored
      As decided on the developer meeting in Aachen, we support (but do not
      rely on) the C++11 keyword constexpr. This patch adds an m4-check for
      constexpr and a header (cxx11.hh) defining a macro DUNE_CONSTEXPR either
      as constexpr or empty (depending on the compiler support for it). It is
      then used in FieldVector and FieldMatrix on size, rows, and cols.
      45990b69
  18. Mar 12, 2013
  19. Feb 19, 2013
  20. Sep 27, 2012
  21. Sep 20, 2012
  22. Sep 03, 2012
  23. Aug 31, 2012
  24. Aug 10, 2012
  25. Jun 19, 2012
  26. May 22, 2012
  27. May 19, 2012
  28. May 16, 2012
    • Markus Blatt's avatar
      Package configuration files and find_package use the regular dune · a5e49b88
      Markus Blatt authored
      modul name (lower case with dashes).
      
      These leads to kind of weired variabable names (dune-common_DIR,
      dune-common_LIBRARIES, etc.) but finds non-installes modules
      easier. You just sets CMAKE_PREFIX_PATH to the directory containing
      the modules.
      
      [[Imported from SVN: r6724]]
      a5e49b88
  29. Apr 30, 2012
  30. Apr 29, 2012
    • Markus Blatt's avatar
      Completed adaptation of duneproject. It now creates a complete · 3c418763
      Markus Blatt authored
      infrastructure to use the module with cmake.
      
      Currently, only an installed dune-common can be used, as the others
      lack the cmake confguration files. One has to provide the
      CMAKE_MODULE_PATH pointing to the directory where
      e.g. DuneMacros.cmake is installed (PREFIX/share/cmake/modules) and 
      DuneCommon_DIR pointing to PREFIXlib/cmake.
      
      The ${CMAKE_BINARY_DIR}/config.h.cmake of the project is created such
      that it includes section from modules that it depends on as well as
      the ${CMAKE_SOURCE_DIR}/config.h.cmake. This prevents user from
      creating a full file by hand.
      
      Renamed package configuration files according to the style of the 
      other modules.
      
      [[Imported from SVN: r6661]]
      3c418763
  31. Apr 22, 2012
  32. Apr 20, 2012
  33. Apr 11, 2012
  34. Apr 03, 2012
  35. Mar 14, 2012
    • Christoph Grüninger's avatar
      [CMake] · d0f02ad2
      Christoph Grüninger authored
      Create libdunecommon.la in the right directory.
      
      [[Imported from SVN: r6589]]
      d0f02ad2
Loading