LLDB mainline
Public Member Functions | Private Member Functions | Friends | List of all members
lldb_private::EventData Class Referenceabstract

#include <Event.h>

Inheritance diagram for lldb_private::EventData:
Inheritance graph
[legend]

Public Member Functions

 EventData ()
 
virtual ~EventData ()
 
virtual llvm::StringRef GetFlavor () const =0
 
virtual LogGetLogChannel ()
 
virtual void Dump (Stream *s) const
 

Private Member Functions

virtual bool ForwardEventToPendingListeners (Event *event_ptr)
 This will be queried for a Broadcaster with a primary and some secondary listeners after the primary listener pulled the event from the event queue and ran its DoOnRemoval, right before the event is delivered.
 
virtual void DoOnRemoval (Event *event_ptr)
 
 EventData (const EventData &)=delete
 
const EventDataoperator= (const EventData &)=delete
 

Friends

class Event
 

Detailed Description

Definition at line 36 of file Event.h.

Constructor & Destructor Documentation

◆ EventData() [1/2]

EventData::EventData ( )
default

◆ ~EventData()

EventData::~EventData ( )
virtualdefault

◆ EventData() [2/2]

lldb_private::EventData::EventData ( const EventData )
privatedelete

Member Function Documentation

◆ DoOnRemoval()

virtual void lldb_private::EventData::DoOnRemoval ( Event event_ptr)
inlineprivatevirtual

◆ Dump()

void EventData::Dump ( Stream s) const
virtual

◆ ForwardEventToPendingListeners()

virtual bool lldb_private::EventData::ForwardEventToPendingListeners ( Event event_ptr)
inlineprivatevirtual

This will be queried for a Broadcaster with a primary and some secondary listeners after the primary listener pulled the event from the event queue and ran its DoOnRemoval, right before the event is delivered.

If it returns true, the event will also be forwarded to the secondary listeners, and if false, event propagation stops at the primary listener. Some broadcasters (particularly the Process broadcaster) fetch events on a private Listener, and then forward the event to the Public Listeners after some processing. The Process broadcaster does not want to forward to the secondary listeners at the private processing stage.

Reimplemented in lldb_private::Process::ProcessEventData.

Definition at line 60 of file Event.h.

◆ GetFlavor()

virtual llvm::StringRef lldb_private::EventData::GetFlavor ( ) const
pure virtual

◆ GetLogChannel()

virtual Log * lldb_private::EventData::GetLogChannel ( )
inlinevirtual

Reimplemented in lldb_private::Breakpoint::BreakpointEventData.

Definition at line 46 of file Event.h.

◆ operator=()

const EventData & lldb_private::EventData::operator= ( const EventData )
privatedelete

Friends And Related Function Documentation

◆ Event

friend class Event
friend

Definition at line 37 of file Event.h.


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