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
d944d2a1
Commit
d944d2a1
authored
Feb 13, 2020
by
Dominik Charousset
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add covenience alias for typed actor views
parent
532a5087
Changes
3
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
6 additions
and
2 deletions
+6
-2
libcaf_core/caf/composed_behavior.hpp
libcaf_core/caf/composed_behavior.hpp
+1
-2
libcaf_core/caf/fwd.hpp
libcaf_core/caf/fwd.hpp
+1
-0
libcaf_core/caf/typed_actor.hpp
libcaf_core/caf/typed_actor.hpp
+4
-0
No files found.
libcaf_core/caf/composed_behavior.hpp
View file @
d944d2a1
...
@@ -38,8 +38,7 @@ public:
...
@@ -38,8 +38,7 @@ public:
using
broker_base
=
typename
handle_type
::
broker_base
;
using
broker_base
=
typename
handle_type
::
broker_base
;
using
self_pointer
=
using
self_pointer
=
typename
handle_type
::
pointer_view
;
typename
detail
::
tl_apply
<
signatures
,
typed_actor_pointer
>::
type
;
composed_behavior
()
:
self
(
nullptr
)
{
composed_behavior
()
:
self
(
nullptr
)
{
// nop
// nop
...
...
libcaf_core/caf/fwd.hpp
View file @
d944d2a1
...
@@ -71,6 +71,7 @@ template <class...> class delegated;
...
@@ -71,6 +71,7 @@ template <class...> class delegated;
template
<
class
...
>
class
result
;
template
<
class
...
>
class
result
;
template
<
class
...
>
class
typed_actor
;
template
<
class
...
>
class
typed_actor
;
template
<
class
...
>
class
typed_actor_pointer
;
template
<
class
...
>
class
typed_actor_pointer
;
template
<
class
...
>
class
typed_actor_view
;
template
<
class
...
>
class
typed_event_based_actor
;
template
<
class
...
>
class
typed_event_based_actor
;
template
<
class
...
>
class
typed_response_promise
;
template
<
class
...
>
class
typed_response_promise
;
template
<
class
...
>
class
variant
;
template
<
class
...
>
class
variant
;
...
...
libcaf_core/caf/typed_actor.hpp
View file @
d944d2a1
...
@@ -93,6 +93,10 @@ public:
...
@@ -93,6 +93,10 @@ public:
/// Identifies pointers to instances of this kind of actor.
/// Identifies pointers to instances of this kind of actor.
using
pointer
=
typed_event_based_actor
<
Sigs
...
>*
;
using
pointer
=
typed_event_based_actor
<
Sigs
...
>*
;
/// Allows a view to an actor implementing this messaging interface without
/// knowledge of the actual type..
using
pointer_view
=
typed_actor_pointer
<
Sigs
...
>
;
/// Identifies the base class for this kind of actor.
/// Identifies the base class for this kind of actor.
using
base
=
typed_event_based_actor
<
Sigs
...
>
;
using
base
=
typed_event_based_actor
<
Sigs
...
>
;
...
...
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