Function entity

Summary

#include <include/flecs/addons/cpp/utils/enum.hpp>

(1) flecs::entity entity() const

(2) flecs::entity entity(int value) const

(3) flecs::entity entity(E value) const

Function overload

Synopsis

#include <include/flecs/addons/cpp/utils/enum.hpp>

flecs::entity entity() const

Description

No description yet.

Source

Lines 152-155 in include/flecs/addons/cpp/impl/world.hpp. Line 234 in include/flecs/addons/cpp/utils/enum.hpp.

template <typename E>
inline flecs::entity enum_data<E>::entity() const {
    return flecs::entity(world_, impl_.id);
}

Synopsis

#include <include/flecs/addons/cpp/utils/enum.hpp>

flecs::entity entity(int value) const

Description

No description yet.

Source

Lines 157-160 in include/flecs/addons/cpp/impl/world.hpp. Line 235 in include/flecs/addons/cpp/utils/enum.hpp.

template <typename E>
inline flecs::entity enum_data<E>::entity(int value) const {
    return flecs::entity(world_, impl_.constants[value].id);
}

Synopsis

#include <include/flecs/addons/cpp/utils/enum.hpp>

flecs::entity entity(E value) const

Description

No description yet.

Source

Lines 162-165 in include/flecs/addons/cpp/impl/world.hpp. Line 236 in include/flecs/addons/cpp/utils/enum.hpp.

template <typename E>
inline flecs::entity enum_data<E>::entity(E value) const {
    return flecs::entity(world_, impl_.constants[static_cast<int>(value)].id);
}