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
196ae5f6
Commit
196ae5f6
authored
Aug 03, 2015
by
Dominik Charousset
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Remove dead code and simplify `uti_impl`
parent
90dc64c7
Changes
2
Expand all
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
112 additions
and
200 deletions
+112
-200
libcaf_core/caf/detail/uniform_type_info_map.hpp
libcaf_core/caf/detail/uniform_type_info_map.hpp
+1
-18
libcaf_core/src/uniform_type_info_map.cpp
libcaf_core/src/uniform_type_info_map.cpp
+111
-182
No files found.
libcaf_core/caf/detail/uniform_type_info_map.hpp
View file @
196ae5f6
...
@@ -45,24 +45,8 @@ class uniform_type_info;
...
@@ -45,24 +45,8 @@ class uniform_type_info;
namespace
caf
{
namespace
caf
{
namespace
detail
{
namespace
detail
{
// lookup table for integer types
extern
const
char
*
mapped_int_names
[][
2
];
template
<
class
T
>
constexpr
const
char
*
mapped_int_name
()
{
return
mapped_int_names
[
sizeof
(
T
)][
std
::
is_signed
<
T
>::
value
?
1
:
0
];
}
class
uniform_type_info_map_helper
;
// note: this class is implemented in uniform_type_info.cpp
class
uniform_type_info_map
{
class
uniform_type_info_map
{
friend
class
uniform_type_info_map_helper
;
friend
class
singleton_mixin
<
uniform_type_info_map
>
;
public:
public:
using
pointer
=
const
uniform_type_info
*
;
using
pointer
=
const
uniform_type_info
*
;
virtual
~
uniform_type_info_map
();
virtual
~
uniform_type_info_map
();
...
@@ -79,12 +63,11 @@ public:
...
@@ -79,12 +63,11 @@ public:
static
uniform_type_info_map
*
create_singleton
();
static
uniform_type_info_map
*
create_singleton
();
inline
void
dispose
()
{
delete
this
;
}
void
dispose
();
void
stop
();
void
stop
();
virtual
void
initialize
()
=
0
;
virtual
void
initialize
()
=
0
;
};
};
}
// namespace detail
}
// namespace detail
...
...
libcaf_core/src/uniform_type_info_map.cpp
View file @
196ae5f6
This diff is collapsed.
Click to expand it.
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