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
27746169
Commit
27746169
authored
Nov 13, 2011
by
neverlord
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
documentation
parent
b7159f4d
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
6 deletions
+7
-6
cppa/cppa.hpp
cppa/cppa.hpp
+7
-6
No files found.
cppa/cppa.hpp
View file @
27746169
...
@@ -99,7 +99,7 @@
...
@@ -99,7 +99,7 @@
* @p libcppa uses a copy-on-write optimization for its message
* @p libcppa uses a copy-on-write optimization for its message
* passing implementation.
* passing implementation.
*
*
* {@link tuple Tuples} should @b always be used with by-value semantic,
* {@link
cppa::
tuple Tuples} should @b always be used with by-value semantic,
* since tuples use a copy-on-write smart pointer internally. Let's assume two
* since tuples use a copy-on-write smart pointer internally. Let's assume two
* tuple @p x and @p y, whereas @p y is a copy of @p x:
* tuple @p x and @p y, whereas @p y is a copy of @p x:
*
*
...
@@ -376,14 +376,14 @@ void receive_loop(invoke_rules&& rules, Head&& head, Tail&&... tail)
...
@@ -376,14 +376,14 @@ void receive_loop(invoke_rules&& rules, Head&& head, Tail&&... tail)
* <b>Usage example:</b>
* <b>Usage example:</b>
* @code
* @code
* int i = 0;
* int i = 0;
* receive_while([&]() { return (++i < 10); })
* receive_while([&]() { return (++i <
=
10); })
* (
* (
* on<int>() >> int_fun,
* on<int>() >> int_fun,
* on<float>() >> float_fun
* on<float>() >> float_fun
* );
* );
* @endcode
* @endcode
* @param stmt Lambda expression, functor or function returning a @c bool.
* @param stmt Lambda expression, functor or function returning a @c bool.
* @returns A functor
that takes invoke rules
.
* @returns A functor
implementing the loop
.
*/
*/
template
<
typename
Statement
>
template
<
typename
Statement
>
detail
::
receive_while_helper
<
Statement
>
detail
::
receive_while_helper
<
Statement
>
...
@@ -410,7 +410,7 @@ receive_while(Statement&& stmt)
...
@@ -410,7 +410,7 @@ receive_while(Statement&& stmt)
* .until([&]() { return (++i >= 10); };
* .until([&]() { return (++i >= 10); };
* @endcode
* @endcode
* @param args Invoke rules to handle received messages.
* @param args Invoke rules to handle received messages.
* @returns A functor providing the @c until function.
* @returns A functor providing the @c until
member
function.
*/
*/
template
<
typename
...
Args
>
template
<
typename
...
Args
>
detail
::
do_receive_helper
do_receive
(
Args
&&
...
args
)
detail
::
do_receive_helper
do_receive
(
Args
&&
...
args
)
...
@@ -439,7 +439,7 @@ inline actor_ptr& last_sender()
...
@@ -439,7 +439,7 @@ inline actor_ptr& last_sender()
#ifdef CPPA_DOCUMENTATION
#ifdef CPPA_DOCUMENTATION
/**
/**
* @brief Send a message to @p whom.
* @brief Send
s
a message to @p whom.
*
*
* Sends the tuple <tt>{ arg0, args... }</tt> as a message to @p whom.
* Sends the tuple <tt>{ arg0, args... }</tt> as a message to @p whom.
* @param whom Receiver of the message.
* @param whom Receiver of the message.
...
@@ -457,9 +457,10 @@ void send(channel_ptr& whom, const Arg0& arg0, const Args&... args);
...
@@ -457,9 +457,10 @@ void send(channel_ptr& whom, const Arg0& arg0, const Args&... args);
* self() << make_tuple(1, 2, 3);
* self() << make_tuple(1, 2, 3);
* @endcode
* @endcode
*
*
* Sends the tuple @what as a message to @p whom.
* Sends the tuple @
p
what as a message to @p whom.
* @param whom Receiver of the message.
* @param whom Receiver of the message.
* @param what Content of the message.
* @param what Content of the message.
* @returns @p whom.
*/
*/
channel_ptr
&
operator
<<
(
channel_ptr
&
whom
,
const
any_tuple
&
what
);
channel_ptr
&
operator
<<
(
channel_ptr
&
whom
,
const
any_tuple
&
what
);
...
...
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