template class EE::UI::UIDataBindHolderKV

Overview

Keyed owner for heterogeneous UIDataBind instances with stable heap addresses. More…

#include <uidatabind.hpp>

template <typename... Ts>
class UIDataBindHolderKV {
public:
    // typedefs

    typedef std::variant<std::unique_ptr<UIDataBind<Ts>>...> UIDataBindVariant;

    // methods

    UIDataBindHolderKV& hold(std::string key, UIDataBindVariant&& ptr);
    UIDataBindHolderKV& operator+=(std::pair<std::string, UIDataBindVariant&&> pair);
    void clear();
};

Detailed Documentation

Keyed owner for heterogeneous UIDataBind instances with stable heap addresses.

Replacing a key destroys its previous binding and disconnects that binding’s widget listeners.