Anklang 0.3.0-460-gc4ef46ba
ASE — Anklang Sound Engine (C++)

« « « Anklang Documentation
Loading...
Searching...
No Matches
Classes | Public Member Functions | Friends | List of all members
Ase::EmittableImpl Class Reference

Implementation type for classes with Event subscription. More...

#include "object.hh"

Inheritance diagram for Ase::EmittableImpl:
[legend]

Classes

struct  EventDispatcher
 

Public Member Functions

ASE_USE_RESULT Connection on_event (const String &eventselector, const EventHandler &eventhandler) override
 
void emit_event (const String &type, const String &detail, const ValueR fields={}) override
 
void emit_notify (const String &detail) override
 Emit notify:detail, multiple notifications maybe coalesced if a CoalesceNotifies instance exists.
 
- Public Member Functions inherited from Ase::Emittable
void js_trigger (const String &eventselector, JsTrigger callback)
 
- Public Member Functions inherited from std::enable_shared_from_this< SharedBase >
enable_shared_from_this (T... args)
 
operator= (T... args)
 
shared_from_this (T... args)
 
weak_from_this (T... args)
 
~enable_shared_from_this (T... args)
 

Friends

class EventConnection
 

Additional Inherited Members

- Public Attributes inherited from Ase::Emittable
const EventHandlereventhandler
 

Detailed Description

Implementation type for classes with Event subscription.

Definition at line 11 of file object.hh.

Constructor & Destructor Documentation

◆ ~EmittableImpl()

Ase::EmittableImpl::~EmittableImpl ( )
protectedvirtual

Definition at line 173 of file object.cc.

Member Function Documentation

◆ emit_event()

void Ase::EmittableImpl::emit_event ( const String type,
const String detail,
const ValueR  fields = {} 
)
overridevirtual

Implements Ase::Emittable.

Definition at line 192 of file object.cc.

◆ emit_notify()

void Ase::EmittableImpl::emit_notify ( const String detail)
overridevirtual

◆ on_event()

Emittable::Connection Ase::EmittableImpl::on_event ( const String eventselector,
const EventHandler eventhandler 
)
override

Definition at line 181 of file object.cc.

Friends And Related Symbol Documentation

◆ EventConnection

friend class EventConnection
friend

Definition at line 14 of file object.hh.


The documentation for this class was generated from the following files: