Skip to content

Small tweaks to Condition derivation code

Gerhard Raven requested to merge tweak-detdesc into master
  • ConditionAccessHolder: use std::queue instead of std::list (as std::queue has by default the same element validity guarantees as std::list on push and pop -- iterator invalidation doesn't matter here -- and offers the minimal interface required)
  • ConditionDerivation: take a span instead of a vector as c'tor argument
  • IConditionDerivationMgr: use span instead of vector, add forwarding function which takes a single element
  • ConditionUpdateContext: add const to map value -- updaters should not be allowed to change the ParamValidObject which they are provided with!
  • adapt code to the above, and avoid copying VP sensors in a loop...
Edited by Marco Cattaneo

Merge request reports