EnTT: src/entt/core/fwd.hpp Source File

EnTT 3.16.0

Loading...
Searching...
No Matches
fwd.hpp
1#ifndef ENTT_CORE_FWD_HPP
2#define ENTT_CORE_FWD_HPP
3
4#include <cstddef>
5#include <cstdint>
6#include "../config/config.h"
7
8namespace entt {
9
11 enum class any_policy : std::uint8_t {
13 empty,
15 dynamic,
17 embedded,
19 ref,
21 cref
22};
23
24// NOLINTNEXTLINE(cppcoreguidelines-avoid-c-arrays, modernize-avoid-c-arrays)
25template<std::size_t Len = sizeof(double[2]), std::size_t = alignof(double[2])>
26class basic_any;
27
29 using id_type = ENTT_ID_TYPE;
30
32 using any = basic_any<>;
33
34template<typename, typename>
35class compressed_pair;
36
37template<typename>
38class basic_hashed_string;
39
41 using hashed_string = basic_hashed_string<char>;
42
44 using hashed_wstring = basic_hashed_string<wchar_t>;
45
46// NOLINTNEXTLINE(bugprone-forward-declaration-namespace)
47struct type_info;
48
49} // namespace entt
50
51#endif
entt::basic_any<>
entt::basic_hashed_string
Zero overhead unique identifier.
Definition hashed_string.hpp:58
entt::compressed_pair
A compressed pair.
Definition compressed_pair.hpp:87
entt
EnTT default namespace.
Definition dense_map.hpp:22
entt::hashed_string
basic_hashed_string< char > hashed_string
Aliases for common character types.
Definition fwd.hpp:41
entt::id_type
std::uint32_t id_type
Alias declaration for type identifiers.
Definition fwd.hpp:29
entt::any
basic_any<> any
Alias declaration for the most common use case.
Definition fwd.hpp:32
entt::hashed_wstring
basic_hashed_string< wchar_t > hashed_wstring
Aliases for common character types.
Definition fwd.hpp:44
entt::any_policy
any_policy
Possible modes of an any object.
Definition fwd.hpp:11
entt::any_policy::ref
@ ref
Aliasing mode, non-const reference.
Definition fwd.hpp:19
entt::any_policy::cref
@ cref
Const aliasing mode, const reference.
Definition fwd.hpp:21
entt::any_policy::embedded
@ embedded
Owning mode, embedded element.
Definition fwd.hpp:17
entt::any_policy::empty
@ empty
Default mode, no element available.
Definition fwd.hpp:13
entt::any_policy::dynamic
@ dynamic
Owning mode, dynamically allocated element.
Definition fwd.hpp:15
entt::type_info
Implementation specific information about a type.
Definition type_info.hpp:141