11 #include <framework/pcore/Mergeable.h>
58 auto* otherMergeable =
static_cast<const SetMergeable*
>(other);
59 for (
const auto& element : otherMergeable->get()) {
Abstract base class for objects that can be merged.
Wrap an STL set to make it mergeable.
SetMergeable(Args &&... params)
Constructor, forwards all arguments to T constructor.
const T & get() const
Get the wrapped standard object.
virtual void merge(const Mergeable *other) override
Merge object 'other' into this one.
T & get()
Get the wrapped standard object.
T m_wrapped
Wrapped object.
virtual void clear() override
Clear content of this object (e.g.
ClassDefOverride(SetMergeable, 1)
Wrap an STL set to make it mergeable.
Abstract base class for different kinds of events.