Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
A
Actor Framework
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Metrics
Environments
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
cpp-libs
Actor Framework
Commits
66e8e0a3
Commit
66e8e0a3
authored
Apr 16, 2017
by
Dominik Charousset
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Streamline actor_system::message_types
parent
d6460a6d
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
9 additions
and
16 deletions
+9
-16
libcaf_core/caf/actor_system.hpp
libcaf_core/caf/actor_system.hpp
+9
-16
No files found.
libcaf_core/caf/actor_system.hpp
View file @
66e8e0a3
...
@@ -37,6 +37,7 @@
...
@@ -37,6 +37,7 @@
#include "caf/actor_config.hpp"
#include "caf/actor_config.hpp"
#include "caf/spawn_options.hpp"
#include "caf/spawn_options.hpp"
#include "caf/group_manager.hpp"
#include "caf/group_manager.hpp"
#include "caf/is_typed_actor.hpp"
#include "caf/abstract_actor.hpp"
#include "caf/abstract_actor.hpp"
#include "caf/actor_registry.hpp"
#include "caf/actor_registry.hpp"
#include "caf/string_algorithms.hpp"
#include "caf/string_algorithms.hpp"
...
@@ -204,15 +205,9 @@ public:
...
@@ -204,15 +205,9 @@ public:
/// A message passing interface (MPI) in run-time checkable representation.
/// A message passing interface (MPI) in run-time checkable representation.
using
mpi
=
std
::
set
<
std
::
string
>
;
using
mpi
=
std
::
set
<
std
::
string
>
;
inline
mpi
message_types
(
detail
::
type_list
<
scoped_actor
>
)
const
{
template
<
class
T
,
return
mpi
{};
class
E
=
typename
std
::
enable_if
<!
is_typed_actor
<
T
>
::
value
>::
type
>
}
mpi
message_types
(
detail
::
type_list
<
T
>
)
const
{
inline
mpi
message_types
(
detail
::
type_list
<
actor
>
)
const
{
return
mpi
{};
}
inline
mpi
message_types
(
detail
::
type_list
<
strong_actor_ptr
>
)
const
{
return
mpi
{};
return
mpi
{};
}
}
...
@@ -223,13 +218,11 @@ public:
...
@@ -223,13 +218,11 @@ public:
return
result
;
return
result
;
}
}
inline
mpi
message_types
(
const
actor
&
)
const
{
template
<
class
T
,
return
mpi
{};
class
E
=
}
typename
std
::
enable_if
<!
detail
::
is_type_list
<
T
>
::
value
>::
type
>
mpi
message_types
(
const
T
&
)
const
{
template
<
class
...
Ts
>
detail
::
type_list
<
T
>
token
;
mpi
message_types
(
const
typed_actor
<
Ts
...
>&
)
const
{
detail
::
type_list
<
typed_actor
<
Ts
...
>>
token
;
return
message_types
(
token
);
return
message_types
(
token
);
}
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment