Skip to content
Snippets Groups Projects

Add a new type to CxxUtils for arrays of optional values

All threads resolved!

This merge request adds a type to the CxxUtils package, the OptionalArray, which for a given template type T wraps the std::array<std::optional<T>> type. It adds several useful helper methods which make the type more ergonomic to use. This can be used later in applications such as the Trk::TrackSummary, or other places where an array of optional values is required.

I've done my best to add comments and tests for maintainability.

This merge request doesn't change any existing code, and should thus not break anything.

Merge request reports

Pipeline #1987300 passed

Pipeline passed for 370388fa on sswatman:enhancement/optional_array

Merged by Edward MoyseEdward Moyse 4 years ago (Oct 14, 2020 5:58pm UTC)

Merge details

  • Changes merged into master with 404bac6f.
  • Did not delete the source branch.

Activity

Filter activity
  • Approvals
  • Assignees & reviewers
  • Comments (from bots)
  • Comments (from users)
  • Commits & branches
  • Edits
  • Labels
  • Lock status
  • Mentions
  • Merge request status
  • Tracking
  • Sigh --- if you hit the wrong button, jira shows you the comments but doesn't show them to anyone else...

  • I guess is gitlab start review etc new buttons ?

  • Marking this as user action required now that an expert review has occured.

  • added 2 commits

    • bf68cc38 - Add a CxxUtils type for arrays of optionals
    • d53e0526 - Add tests for new OptionalArray type

    Compare with previous version

  • This merge request affects 1 package:

    • Control/CxxUtils

    Adding @ssnyder ,@rbianchi as watchers

  • added 1 commit

    • 370388fa - Add accessors to underlying containers

    Compare with previous version

  • resolved all threads

  • This merge request affects 1 package:

    • Control/CxxUtils

    Adding @ssnyder ,@rbianchi as watchers

  • :white_check_mark: CI Result SUCCESS (hash d53e0526)

    Athena AthSimulation AthGeneration AnalysisBase
    externals :white_check_mark: :white_check_mark: :white_check_mark: :white_check_mark:
    cmake :white_check_mark: :white_check_mark: :white_check_mark: :white_check_mark:
    make :white_check_mark: :white_check_mark: :white_check_mark: :white_check_mark:
    required tests :white_check_mark: :white_check_mark: :white_check_mark: :white_check_mark:
    optional tests :white_check_mark: :white_check_mark: :white_check_mark: :white_check_mark:

    Full details available on this CI monitor view
    :white_check_mark: Athena: number of compilation errors 0, warnings 0
    :white_check_mark: AthSimulation: number of compilation errors 0, warnings 0
    :white_check_mark: AthGeneration: number of compilation errors 0, warnings 0
    :white_check_mark: AnalysisBase: number of compilation errors 0, warnings 0
    :pencil: For experts only: Jenkins output [CI-MERGE-REQUEST-CC7 21455]

  • :white_check_mark: CI Result SUCCESS (hash 370388fa)

    Athena AthSimulation AthGeneration AnalysisBase
    externals :white_check_mark: :white_check_mark: :white_check_mark: :white_check_mark:
    cmake :white_check_mark: :white_check_mark: :white_check_mark: :white_check_mark:
    make :white_check_mark: :white_check_mark: :white_check_mark: :white_check_mark:
    required tests :white_check_mark: :white_check_mark: :white_check_mark: :white_check_mark:
    optional tests :white_check_mark: :white_check_mark: :white_check_mark: :white_check_mark:

    Full details available on this CI monitor view
    :white_check_mark: Athena: number of compilation errors 0, warnings 0
    :white_check_mark: AthSimulation: number of compilation errors 0, warnings 0
    :white_check_mark: AthGeneration: number of compilation errors 0, warnings 0
    :white_check_mark: AnalysisBase: number of compilation errors 0, warnings 0
    :pencil: For experts only: Jenkins output [CI-MERGE-REQUEST-CC7 21457]

  • Looks good to me, adding review-pending-expert again to approve.

    Cheers, Volker (L1)

  • ping @ssnyder can you take another look (as I guess you are the expert here)

  • Looks good to me.

  • merged

  • Edward Moyse mentioned in commit 404bac6f

    mentioned in commit 404bac6f

  • Please register or sign in to reply
    Loading