Ase::GadgetImpl class

Base type for classes that have a Property.

Base classes

class ObjectImpl
Implementation type for classes with Property interfaces.
class CustomDataContainer
class Gadget virtual
Base type for classes that have a Property.
class Serializable virtual
Interface for serializable objects with Reflink support.

Public functions

auto _parent() const →  GadgetImpl* override
Retrieve parent container.
auto _project() const →  ProjectImpl*
Find Project in parent ancestry.
void _set_parent(GadgetImpl* parent) override
Assign parent container.
auto access_properties() →  PropertyS override
Retrieve handles for all properties.
auto access_property(String ident) →  PropertyP virtual
Retrieve handle for a Property.
template <class T>
auto del_custom_data(CustomDataKey<T>* key) →  bool
Delete the current contents of the custom keyed data member, invokes DataKey::destroy.
void emit_notify(const String& detail) override
Emit notify:detail, multiple notifications maybe coalesced if a CoalesceNotifies instance exists.
template <class T>
auto get_custom_data(CustomDataKey<T>* key) const →  T
Retrieve contents of the custom keyed data member, returns DataKey::fallback if nothing was set.
auto get_data(const String& key) const →  Value override
Retrieve session data.
auto get_value(String ident) →  Value
Get native property value.
template <class T>
auto has_custom_data(CustomDataKey<T>* key) const →  bool
Retrieve wether contents of the custom keyed data member exists.
auto list_properties() →  StringS virtual
List all property identifiers.
template <class T>
void set_custom_data(CustomDataKey<T>* key, T data)
Assign data to the custom keyed data member, deletes any previously set data.
auto set_data(const String& key, const Value& v) →  bool override
Assign session data, prefix ephemerals with '_'.
auto set_value(String ident, const Value& v) →  bool

Protected functions

void serialize(WritNode& xs) override
Serialize members and childern.