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
1bd98d28
Commit
1bd98d28
authored
Jan 06, 2016
by
Dominik Charousset
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Use lowercase strings for atom constants
parent
60c07ea1
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
46 additions
and
49 deletions
+46
-49
libcaf_core/caf/atom.hpp
libcaf_core/caf/atom.hpp
+46
-49
No files found.
libcaf_core/caf/atom.hpp
View file @
1bd98d28
...
...
@@ -70,77 +70,74 @@ std::string to_string(const atom_constant<V>&) {
template
<
atom_value
V
>
const
atom_constant
<
V
>
atom_constant
<
V
>::
value
=
atom_constant
<
V
>
{};
///
Generic 'ADD' atom
for request operations.
using
add_atom
=
atom_constant
<
atom
(
"
ADD
"
)
>
;
///
Used
for request operations.
using
add_atom
=
atom_constant
<
atom
(
"
add
"
)
>
;
///
Generic 'GET' atom
for request operations.
using
get_atom
=
atom_constant
<
atom
(
"
GET
"
)
>
;
///
Used
for request operations.
using
get_atom
=
atom_constant
<
atom
(
"
get
"
)
>
;
///
Generic 'PUT' atom
for request operations.
using
put_atom
=
atom_constant
<
atom
(
"
PUT
"
)
>
;
///
Used
for request operations.
using
put_atom
=
atom_constant
<
atom
(
"
put
"
)
>
;
///
Generic 'UPDATE' atom, e.g., or signalizing updates
in a key-value store.
using
update_atom
=
atom_constant
<
atom
(
"
UPDATE
"
)
>
;
///
Used for signalizing updates, e.g.,
in a key-value store.
using
update_atom
=
atom_constant
<
atom
(
"
update
"
)
>
;
///
Generic 'DELETE' atom
for request operations.
using
delete_atom
=
atom_constant
<
atom
(
"
DELETE
"
)
>
;
///
Used
for request operations.
using
delete_atom
=
atom_constant
<
atom
(
"
delete
"
)
>
;
///
Generic 'OK' atom
for response messages.
using
ok_atom
=
atom_constant
<
atom
(
"
OK
"
)
>
;
///
Used
for response messages.
using
ok_atom
=
atom_constant
<
atom
(
"
ok
"
)
>
;
/// Marker 'SYS' atom for prefixing messages to a forwarding chain
/// to address an otherwise transparent actor.
using
sys_atom
=
atom_constant
<
atom
(
"SYS"
)
>
;
/// Used for triggering system-level message handling.
using
sys_atom
=
atom_constant
<
atom
(
"sys"
)
>
;
///
Generic 'JOIN' atom, e.g.,
for signaling group subscriptions.
using
join_atom
=
atom_constant
<
atom
(
"
JOIN
"
)
>
;
///
Used
for signaling group subscriptions.
using
join_atom
=
atom_constant
<
atom
(
"
join
"
)
>
;
///
Generic 'LEAVE' atom, e.g.,
for signaling group unsubscriptions.
using
leave_atom
=
atom_constant
<
atom
(
"
LEAVE
"
)
>
;
///
Used
for signaling group unsubscriptions.
using
leave_atom
=
atom_constant
<
atom
(
"
leave
"
)
>
;
/// Generic 'FORWARD' atom, e.g., for signaling an actor that it
/// should drop the first element and forward the remainder to
/// a list of predefined receivers.
using
forward_atom
=
atom_constant
<
atom
(
"FORWARD"
)
>
;
/// Used for signaling forwarding paths.
using
forward_atom
=
atom_constant
<
atom
(
"forward"
)
>
;
///
Generic 'FLUSH' atom, e.g., used by `aout`
.
using
flush_atom
=
atom_constant
<
atom
(
"
FLUSH
"
)
>
;
///
Used for buffer management
.
using
flush_atom
=
atom_constant
<
atom
(
"
flush
"
)
>
;
///
Generic 'REDIRECT' atom, e.g., used by `aout`
.
using
redirect_atom
=
atom_constant
<
atom
(
"
REDIRECT
"
)
>
;
///
Used for I/O redirection
.
using
redirect_atom
=
atom_constant
<
atom
(
"
redirect
"
)
>
;
///
Generic 'LINK' atom
for link requests over network.
using
link_atom
=
atom_constant
<
atom
(
"
LINK
"
)
>
;
///
Used
for link requests over network.
using
link_atom
=
atom_constant
<
atom
(
"
link
"
)
>
;
///
Generic 'UNLINK' atom
for removing networked links.
using
unlink_atom
=
atom_constant
<
atom
(
"
UNLINK
"
)
>
;
///
Used
for removing networked links.
using
unlink_atom
=
atom_constant
<
atom
(
"
unlink
"
)
>
;
///
Generic 'PUBLISH' atom, e.g.,
for publishing actors at a given port.
using
publish_atom
=
atom_constant
<
atom
(
"
PUBLISH
"
)
>
;
///
Used
for publishing actors at a given port.
using
publish_atom
=
atom_constant
<
atom
(
"
publish
"
)
>
;
///
Generic 'UNPUBLISH' atom, e.g.,
for removing an actor/port mapping.
using
unpublish_atom
=
atom_constant
<
atom
(
"
UNPUBLISH
"
)
>
;
///
Used
for removing an actor/port mapping.
using
unpublish_atom
=
atom_constant
<
atom
(
"
unpublish
"
)
>
;
///
Generic 'PUBLISH' atom, e.g., for publishing actors at a given port
.
using
subscribe_atom
=
atom_constant
<
atom
(
"
SUBSCRIBE
"
)
>
;
///
Used for signalizing group membership
.
using
subscribe_atom
=
atom_constant
<
atom
(
"
subscribe
"
)
>
;
///
Generic 'UNPUBLISH' atom, e.g., for removing an actor/port mapping
.
using
unsubscribe_atom
=
atom_constant
<
atom
(
"
UNSUBSCRIB
"
)
>
;
///
Used for withdrawing group membership
.
using
unsubscribe_atom
=
atom_constant
<
atom
(
"
unsubscrib
"
)
>
;
///
Generic 'CONNECT' atom, e.g., for connecting to remote CAF instance
s.
using
connect_atom
=
atom_constant
<
atom
(
"
CONNECT
"
)
>
;
///
Used for establishing network connection
s.
using
connect_atom
=
atom_constant
<
atom
(
"
connect
"
)
>
;
///
Generic 'OPEN' atom, e.g., for opening a port or file
.
using
open_atom
=
atom_constant
<
atom
(
"
OPEN
"
)
>
;
///
Used for opening ports or files
.
using
open_atom
=
atom_constant
<
atom
(
"
open
"
)
>
;
///
Generic 'CLOSE' atom, e.g., for closing a port or file
.
using
close_atom
=
atom_constant
<
atom
(
"
CLOSE
"
)
>
;
///
Used for closing ports or files
.
using
close_atom
=
atom_constant
<
atom
(
"
close
"
)
>
;
///
Generic 'SPAWN' atom, e.g.,
for spawning remote actors.
using
spawn_atom
=
atom_constant
<
atom
(
"
SPAWN
"
)
>
;
///
Used
for spawning remote actors.
using
spawn_atom
=
atom_constant
<
atom
(
"
spawn
"
)
>
;
///
Atom to signalize an actor to migrate its state to another actor
.
using
migrate_atom
=
atom_constant
<
atom
(
"
MIGRATE
"
)
>
;
///
Used for migrating actors to other nodes
.
using
migrate_atom
=
atom_constant
<
atom
(
"
migrate
"
)
>
;
}
// 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