ReplacingRefreshDeferrerAccumulator

template <class T>
class ReplacingRefreshDeferrerAccumulator

Accumulator which simply replaces the current value by an incoming new one.

This accumulator takes the ownership of all params passed to it and deletes them automatically if not needed anymore!

Template Parameters
  • T: The type of the param to store

Inherits from RefreshDeferrerAccumulator

Public Functions

ReplacingRefreshDeferrerAccumulator(bool replaceIfNull = true)

Parameters
  • Determines: whether, if nullptr is passed, the current value should be replaced or kept.

~ReplacingRefreshDeferrerAccumulator()