Skip to content
Snippets Groups Projects
  1. Nov 19, 2015
    • Carsten Gräser's avatar
      [concept][test] Add test for concept checking facility · b6f9a597
      Carsten Gräser authored
      This also adds two test utilities from dune-functions
      that are both used in this test.
      
      * TestSuite: A helper class to organize checks in tests
        in a unified way and more readable way.
      * CollectorStream: A simple stream that allows to collect
        data and forward it to its creator using a callback.
        Used by testsuite.hh
      
      Since can also be used for tests in other modules they
      are installed in dune/common/test. However, CollectorStream
      is not strictly related to tests and may also be moved directly
      to dune/common/.
      b6f9a597
    • Carsten Gräser's avatar
      Adjust include to moved PriorityTag · b42d77ab
      Carsten Gräser authored
      b42d77ab
    • 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
  2. Nov 18, 2015
    • Carsten Gräser's avatar
      6dcef08d
    • Carsten Gräser's avatar
      Install new header concept.hh · f2569b50
      Carsten Gräser authored
      f2569b50
    • Carsten Gräser's avatar
      [concept] Add concept check utilities · 4c4699e2
      Carsten Gräser authored
      The main feature of this header is the constexpr function
      models(). The result of
      
        models<C, T1, ..., TN>()
      
      indicated if the concept C is modeled by the collection
      (T1, ..., TN) of types. A concept is a list of valid
      expressions that a type must support. Concepts can refine
      other concepts to inherit all requirements from those
      base concepts.
      
      Besides the concept check function itself, the header contains
      some helper functions of the form require requireFoo for additional
      checks. The purpose of those functions is to transform a non-satisfied
      condition Foo to a substitution failure, such that the corresponding
      expression is not valid. E.g.,
      
        requireConvertible<R>(t.f())
      
      is not valid unless the result of t.f() is convertible to R.
      4c4699e2
  3. Nov 17, 2015
  4. Nov 15, 2015
    • Christian Engwer's avatar
      Merge branch 'feature/gitlab-readable-contribution-and-licensing-guide' into 'master' · 633391ff
      Christian Engwer authored
      GitLab readable contribution guide, license and README
      
      Adding the `.md` extension enables rendering of the files, which is much nicer.
      
      Also ported the contribution guide from the User Wiki.
      
      Renamed COPYING to LICENSE.md because that is the name that GitLab looks for to display it nicely on the project starting page.
      
      If this one is accepted, I will do the same for the other core modules.
      
      See merge request !5
      633391ff
  5. Nov 13, 2015
  6. Nov 09, 2015
  7. Nov 06, 2015
  8. Nov 05, 2015
    • Carsten Gräser's avatar
      Mention new header priorotytag.hh · d939f910
      Carsten Gräser authored
      d939f910
    • Carsten Gräser's avatar
      [utility] Add PriorityTag class · c8a17dc5
      Carsten Gräser authored
      This allows to give priorities to otherwise ambiguous
      overloads. It's main use is to make multiple overloads
      work, when only some are ruled out via SFINAE. This is
      e.g. used in the concepts check that I'll move to
      dune-common soon.
      
      The implemention is trivial but makes such applications
      more readable and idiomatic compared to other approaches
      where, e.g., null pointers are passed to overloads
      have T* and void* dummy arguments.
      
      Due to it's simplicity a separate header may not be justified,
      but none of the existing seems to fit.
      c8a17dc5
  9. Nov 04, 2015
  10. Nov 02, 2015
  11. Oct 31, 2015
  12. Oct 30, 2015
  13. Oct 26, 2015
    • Dominic Kempf's avatar
      [CMake][Doc] Add some useful error messages to the CMake doc · a37c2ef5
      Dominic Kempf authored
      Previously, the script that splits the in-module documentation
      into parts exited with cryptic error messages that gave no hint
      on where the typo happened. It now prints the offending line.
      a37c2ef5
    • Dominic Kempf's avatar
      Implement some functionality for dune_cmake_sphinx_doc for custom docs. · 0a4d31eb
      Dominic Kempf authored
      In dune-testtools we built a sphinx cmake documentation which is customized
      quite a bit. With the core functionality being in dune-common, it is hard
      to maintain it twice. I have therefore added some options to the dune-common
      doc infrastructure, that are beneficial downstream.
      
      You can now:
      * provide custom rst sources
      * provide a custom sphinx-build conf file
      * limit the documentation to the current module, instead of adding all requirements automatically
      
      The defaults of all those parameters result in an unchanged behaviour
      (compared to before this commit).
      0a4d31eb
    • Dominic Kempf's avatar
      5f1603f5
    • Dominic Kempf's avatar
      [CMake] Introduce DUNE_BUILD_TESTS_ON_MAKE_ALL · 6d49f917
      Dominic Kempf authored
      As talked about on the developer meeting, a configure
      switch should allow to build the tests during make all.
      You can either set it through your opts file or activate
      it on a per module level. If not active, you have to run
      
      make build_tests && make test
      
      to run the test suite.
      6d49f917
    • Dominic Kempf's avatar
      [CMake] REENABLE_ADD_TEST -> DUNE_REENABLE_ADD_TEST · 5d409f4a
      Dominic Kempf authored
      We should always use the DUNE_ prefix for our cmake
      variables, to avoid scoping clashes and to stay consistent.
      
      Sorry for not doing this immediately, it was an oversight.
      5d409f4a
Loading