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
c11d8467
Commit
c11d8467
authored
Jul 03, 2012
by
Dominik Charousset
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
added local_actor::joined_groups
parent
ef4f4349
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
13 additions
and
0 deletions
+13
-0
cppa/local_actor.hpp
cppa/local_actor.hpp
+5
-0
src/local_actor.cpp
src/local_actor.cpp
+8
-0
No files found.
cppa/local_actor.hpp
View file @
c11d8467
...
...
@@ -297,6 +297,11 @@ class local_actor : public actor {
*/
virtual
void
on_exit
();
/**
* @brief Returns all joined groups of this actor.
*/
std
::
vector
<
group_ptr
>
joined_groups
();
// library-internal members and member functions that shall
// not appear in the documentation
...
...
src/local_actor.cpp
View file @
c11d8467
...
...
@@ -94,4 +94,12 @@ void local_actor::leave(const group_ptr& what) {
if
(
what
)
m_subscriptions
.
erase
(
what
);
}
std
::
vector
<
group_ptr
>
local_actor
::
joined_groups
()
{
std
::
vector
<
group_ptr
>
result
;
for
(
auto
&
kvp
:
m_subscriptions
)
{
result
.
emplace_back
(
kvp
.
first
);
}
return
result
;
}
}
// namespace cppa
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