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
a127cac1
Commit
a127cac1
authored
Mar 06, 2015
by
Dominik Charousset
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add `actor::is_remove` convenience function
parent
e036adcc
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
9 additions
and
0 deletions
+9
-0
libcaf_core/caf/actor.hpp
libcaf_core/caf/actor.hpp
+5
-0
libcaf_core/src/actor.cpp
libcaf_core/src/actor.cpp
+4
-0
No files found.
libcaf_core/caf/actor.hpp
View file @
a127cac1
...
@@ -147,6 +147,11 @@ class actor : detail::comparable<actor>,
...
@@ -147,6 +147,11 @@ class actor : detail::comparable<actor>,
*/
*/
actor_addr
address
()
const
;
actor_addr
address
()
const
;
/**
* Returns whether this is an handle to a remote actor.
*/
bool
is_remote
()
const
;
actor_id
id
()
const
;
actor_id
id
()
const
;
void
swap
(
actor
&
other
);
void
swap
(
actor
&
other
);
...
...
libcaf_core/src/actor.cpp
View file @
a127cac1
...
@@ -58,6 +58,10 @@ actor_addr actor::address() const {
...
@@ -58,6 +58,10 @@ actor_addr actor::address() const {
return
m_ptr
?
m_ptr
->
address
()
:
actor_addr
{};
return
m_ptr
?
m_ptr
->
address
()
:
actor_addr
{};
}
}
bool
actor
::
is_remote
()
const
{
return
m_ptr
?
m_ptr
->
is_remote
()
:
false
;
}
actor_id
actor
::
id
()
const
{
actor_id
actor
::
id
()
const
{
return
(
m_ptr
)
?
m_ptr
->
id
()
:
0
;
return
(
m_ptr
)
?
m_ptr
->
id
()
:
0
;
}
}
...
...
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