Skip to content
Snippets Groups Projects
  1. Sep 19, 2023
  2. Dec 14, 2019
  3. Feb 01, 2019
  4. Nov 12, 2017
    • Gerhard Raven's avatar
      Modernize HistoDef · a7dfca4c
      Gerhard Raven authored
      - remove virtual function destructor, qualify as final
      - implement binary operator as friend functions
      - implement less than using std::tie
      a7dfca4c
  5. Sep 26, 2017
  6. Sep 18, 2017
  7. Oct 13, 2015
  8. Aug 10, 2015
  9. Jul 26, 2015
    • Gerhard Raven's avatar
      Modernize GaudiKernel · 130aae2c
      Gerhard Raven authored
         - prefer std::unique_ptr over raw pointer and explicit delete
         - declare implementations 'override' instead of 'virtual'
         - replace trivial constructors/destructors with = default
         - make sure const methods only return const access to members,
           add non-const reference only in non-const methods
         - prefer to contain vectors by value instead of (owned) pointer
           to avoid an extra indirection
         - make initialization of const objects constexpr
         - simplify constructors
         - add move constructor where appropriate
         - declare class which is contained by value in std::vector as 'final'
           and remove virtual destructor (inheriting from this is not used,
           and would have lead to slicing)
         - pass sink arguments by value and std::move them
         - prefer std::vector of std::list (as data member, when appropriate)
         - prefer STL algorithms over raw loops
         - prefer emplace_back over push_back
         - replace 0 by nullptr when appropriate
         - prefer std::copy_n over memcpy (compiler will use memcpy anyway)
         - prefer auto and range-based for loops
         - avoid comparing pointers to 0
         - prefer std::vector::clear over std::vector::erase( begin, end)
      
      Note that the changes are such that all interfaces are source code
      level compatible, i.e. one can recompile client code 'as-is' without
      changes.
      130aae2c
  10. Jul 22, 2011
  11. Apr 20, 2010
  12. Oct 22, 2009
Loading