MakerLabs ACM
received_message.h
Go to the documentation of this file.
1 /*
2  * Copyright Paul Reimer, 2018
3  *
4  * This work is licensed under the Creative Commons Attribution-NonCommercial-ShareAlike 4.0 Unported License.
5  * To view a copy of this license, visit
6  * https://creativecommons.org/licenses/by-nc-sa/4.0/
7  * or send a letter to
8  * Creative Commons, 444 Castro Street, Suite 900, Mountain View, California, 94041, USA.
9  */
10 
11 #pragma once
12 
13 #include "actor_model_generated.h"
14 
15 #include "mailbox.h"
16 
17 namespace ActorModel {
18 
19 class Mailbox;
20 
22 {
23 public:
25 
27  Mailbox& _mailbox,
28  const string_view& _message,
29  const bool verify = true
30  );
31 
32  ReceivedMessage() = delete;
33  ReceivedMessage(const ReceivedMessage&) = delete;
34 
36 
37  auto ref()
38  -> string_view;
39 
40 protected:
43  const bool verify;
44  bool verified = false;
45 };
46 
47 } // namespace ActorModel
Definition: mailbox.h:31
Definition: actor.cpp:17
bool verified
Definition: received_message.h:44
std::experimental::string_view string_view
Definition: actor_model.cpp:16
const bool verify
Definition: received_message.h:43
~ReceivedMessage()
Definition: received_message.cpp:34
std::experimental::string_view string_view
Definition: received_message.h:24
auto ref() -> string_view
Definition: received_message.cpp:40
Mailbox & mailbox
Definition: received_message.h:41
Definition: received_message.h:21
const string_view message
Definition: received_message.h:42