Skip to content

Core.Delegate (Visera.Core.Delegate)

Core.Delegate provides delegate types: Unicast and Multicast. For callbacks, events, and decoupling callers from implementers; bind free functions, member functions, or callable objects and invoke at the right time. Differs from Types.Function: delegates focus on binding a set of receivers and event-style invocation; Function is a single callable wrapper.

Responsibilities

  • Unicast: Single target; invocation triggers one callback; for get/set-style callbacks or single listener.
  • Multicast: Multiple targets; invocation triggers all bound callbacks in order; for event bus, signal-slot, or observer pattern.
  • Supports bind/unbind, empty check, and type-safe signatures (template or predefined function type).

Submodules

Module Description
Unicast Unicast delegate: single-target callback.
Multicast Multicast delegate: multiple targets invoked in order.

See also