OGLplus  (0.59.0) a C++ wrapper for rendering APIs

relations.hpp
1 #ifndef EAGINE_EXAMPLE_ECS_RELATIONS_HPP // NOLINT(llvm-header-guard)
9 #define EAGINE_EXAMPLE_ECS_RELATIONS_HPP
10 
11 #include "entity.hpp"
12 #include <eagine/ecs/component.hpp>
14 #include <eagine/identifier.hpp>
15 
16 namespace eagine {
17 //------------------------------------------------------------------------------
18 struct isotope : ecs::relation<isotope> {
19  static constexpr auto uid() noexcept {
20  return EAGINE_ID_V(Isotope);
21  }
22 };
23 //------------------------------------------------------------------------------
24 } // namespace eagine
25 
26 #endif
basic_string_span< const char > string_view
Alias for const string views.
Definition: string_span.hpp:116
#define EAGINE_ID_V(NAME)
Macro for constructing instances of eagine::identifier_t.
Definition: identifier.hpp:359
Common code is placed in this namespace.
Definition: eagine.hpp:21
static constexpr auto view(T *addr, S size) noexcept -> const_span< T >
Creates a view starting at the specified pointer and specified length.
Definition: span.hpp:458
auto string_replace(std::basic_string< C, T, A > &str, memory::basic_span< const C, P1, S1 > from, memory::basic_span< const C, P2, S2 > to) -> std::basic_string< C, T, A > &
Replaces all occurrences of from with to in the given string.
Definition: string_algo.hpp:26
constexpr const construct_from_t construct_from
The construct-from tag-dispatch constant.
Definition: selector.hpp:47
static auto operator<<(std::ostream &out, const identifier_name< M > &n) -> std::ostream &
Operator for writing identifier_name into output streams.
Definition: identifier.hpp:159

Copyright © 2015-2021 Matúš Chochlík.
<chochlik -at -gmail.com>
Documentation generated on Tue Apr 13 2021 by Doxygen (version 1.8.17).