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
efd05221
Commit
efd05221
authored
Jul 28, 2014
by
Dominik Charousset
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Remove unused file
parent
8de46283
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
0 additions
and
73 deletions
+0
-73
libcaf_core/caf/primitive_type.hpp
libcaf_core/caf/primitive_type.hpp
+0
-73
No files found.
libcaf_core/caf/primitive_type.hpp
deleted
100644 → 0
View file @
8de46283
/******************************************************************************
* ____ _ _____ *
* / ___| / \ | ___| C++ *
* | | / _ \ | |_ Actor *
* | |___ / ___ \| _| Framework *
* \____/_/ \_|_| *
* *
* Copyright (C) 2011 - 2014 *
* Dominik Charousset <dominik.charousset (at) haw-hamburg.de> *
* *
* Distributed under the terms and conditions of the BSD 3-Clause License or *
* (at your option) under the terms and conditions of the Boost Software *
* License 1.0. See accompanying files LICENSE and LICENCE_ALTERNATIVE. *
* *
* If you did not receive a copy of the license files, see *
* http://opensource.org/licenses/BSD-3-Clause and *
* http://www.boost.org/LICENSE_1_0.txt. *
******************************************************************************/
#ifndef CAF_PRIMITIVE_TYPE_HPP
#define CAF_PRIMITIVE_TYPE_HPP
namespace
caf
{
/**
* @ingroup TypeSystem
* @brief Represents the type flag of
* {@link caf::primitive_variant primitive_variant}.
*
* Includes integers (signed and unsigned), floating points
* and strings (std::string, std::u16string and std::u32string).
* @relates primitive_variant
*/
enum
primitive_type
:
unsigned
char
{
pt_int8
,
/**< equivalent of @p std::int8_t */
pt_int16
,
/**< equivalent of @p std::int16_t */
pt_int32
,
/**< equivalent of @p std::int32_t */
pt_int64
,
/**< equivalent of @p std::int64_t */
pt_uint8
,
/**< equivalent of @p std::uint8_t */
pt_uint16
,
/**< equivalent of @p std::uint16_t */
pt_uint32
,
/**< equivalent of @p std::uint32_t */
pt_uint64
,
/**< equivalent of @p std::uint64_t */
pt_float
,
/**< equivalent of @p float */
pt_double
,
/**< equivalent of @p double */
pt_long_double
,
/**< equivalent of <tt>long double</tt> */
pt_u8string
,
/**< equivalent of @p std::string */
pt_u16string
,
/**< equivalent of @p std::u16string */
pt_u32string
,
/**< equivalent of @p std::u32string */
pt_atom
,
/**< equivalent of @p atom_value */
pt_null
/**< equivalent of @p void */
};
constexpr
const
char
*
primitive_type_names
[]
=
{
"pt_int8"
,
"pt_int16"
,
"pt_int32"
,
"pt_int64"
,
"pt_uint8"
,
"pt_uint16"
,
"pt_uint32"
,
"pt_uint64"
,
"pt_float"
,
"pt_double"
,
"pt_long_double"
,
"pt_u8string"
,
"pt_u16string"
,
"pt_u32string"
,
"pt_atom"
,
"pt_null"
};
/**
* @ingroup TypeSystem
* @brief Maps a #primitive_type value to its name.
* @param ptype Requestet @p primitive_type.
* @returns A C-string representation of @p ptype.
*/
constexpr
const
char
*
primitive_type_name
(
primitive_type
ptype
)
{
return
primitive_type_names
[
static_cast
<
int
>
(
ptype
)];
}
}
// namespace caf
#endif // CAF_PRIMITIVE_TYPE_HPP
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