ActiveLib
Loading...
Searching...
No Matches
Active
Event
PostBox.h
1
6
#ifndef ACTIVE_EVENT_POST_BOX
7
#define ACTIVE_EVENT_POST_BOX
8
9
#include "Active/Event/Message.h"
10
11
namespace
active::event
{
12
18
class
PostBox
:
public
container::List
<Message> {
19
public
:
20
24
virtual
~PostBox
() =
default
;
25
26
// MARK: - Functions (mutating)
27
32
virtual
void
receive
(
Message
&& message) {
emplace_back
(std::move(message)); }
33
};
34
35
}
36
37
#endif
//ACTIVE_EVENT_POST_BOX
active::container::List
Definition
List.h:27
active::container::List< Message >::emplace_back
void emplace_back(Message &&item)
Definition
List.h:114
active::event::Message
Definition
Message.h:18
active::event::PostBox
Definition
PostBox.h:18
active::event::PostBox::~PostBox
virtual ~PostBox()=default
active::event::PostBox::receive
virtual void receive(Message &&message)
Definition
PostBox.h:32
active::event
Definition
Event.h:13
Generated by
1.10.0