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
7685fb63
Commit
7685fb63
authored
Mar 07, 2018
by
Dominik Charousset
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add documentation
parent
90e338f3
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
13 additions
and
5 deletions
+13
-5
libcaf_core/caf/stream_source_trait.hpp
libcaf_core/caf/stream_source_trait.hpp
+7
-3
libcaf_core/caf/stream_stage_trait.hpp
libcaf_core/caf/stream_stage_trait.hpp
+6
-2
No files found.
libcaf_core/caf/stream_source_trait.hpp
View file @
7685fb63
...
...
@@ -23,7 +23,9 @@
namespace
caf
{
template
<
class
F
>
/// Deduces the output type and the state type for a stream source from its
/// `pull` implementation.
template
<
class
Pull
>
struct
stream_source_trait
;
template
<
class
State
,
class
T
>
...
...
@@ -32,9 +34,11 @@ struct stream_source_trait<void (State&, downstream<T>&, size_t)> {
using
state
=
State
;
};
template
<
class
F
>
/// Convenience alias for extracting the function signature from `Pull` and
/// passing it to `stream_source_trait`.
template
<
class
Pull
>
using
stream_source_trait_t
=
stream_source_trait
<
typename
detail
::
get_callable_trait
<
F
>::
fun_sig
>
;
stream_source_trait
<
typename
detail
::
get_callable_trait
<
Pull
>::
fun_sig
>
;
}
// namespace caf
...
...
libcaf_core/caf/stream_stage_trait.hpp
View file @
7685fb63
...
...
@@ -55,6 +55,8 @@ struct stream_stage_trait_invoke_all {
template
<
class
F
>
struct
stream_stage_trait
;
/// Deduces the input type, output type and the state type for a stream stage
/// from its `process` implementation.
template
<
class
State
,
class
In
,
class
Out
>
struct
stream_stage_trait
<
void
(
State
&
,
downstream
<
Out
>&
,
In
)
>
{
using
state
=
State
;
...
...
@@ -73,9 +75,11 @@ struct stream_stage_trait<void (State&, downstream<Out>&, std::vector<In>&&)> {
// -- convenience alias --------------------------------------------------------
template
<
class
F
>
/// Convenience alias for extracting the function signature from `Process` and
/// passing it to `stream_stage_trait`.
template
<
class
Process
>
using
stream_stage_trait_t
=
stream_stage_trait
<
typename
detail
::
get_callable_trait
<
F
>::
fun_sig
>
;
stream_stage_trait
<
typename
detail
::
get_callable_trait
<
Process
>::
fun_sig
>
;
}
// namespace caf
...
...
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