Contents

class

SushiEngine::EventBus::IBus

Registers channels, publishes events and manages subscriptions.

Declared in
engine/foundation/event_bus/include/SushiEngine/event_bus/bus_interface.hpp

Public Methods

register_channel

Registers the channel for one event type, or returns the existing one.

find_channel

Finds the channel registered for id.

publish

Appends one event to the channel for the next drain of each phase.

publish_immediate

Calls every live subscriber of the channel now, on the main thread.

subscribe

Adds a subscriber that the drain of its phase calls per batch.

unsubscribe

Removes one subscription; no call reaches it after this returns.

unsubscribe_owner

Removes every subscription owner made.

has_subscribers

Whether channel currently has at least one live subscriber.

Protected member functions

~IBus

Forbids deleting a bus through this interface.