Commit efd05221 authored by Dominik Charousset's avatar Dominik Charousset

Remove unused file

parent 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
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment