Function set_scope

Summary

#include <include/flecs/addons/cpp/world.hpp>

(1) flecs::entity set_scope(const flecs::entity_t scope) const

(2) template <typename T>
    flecs::entity set_scope() const

Function overload

Synopsis

#include <include/flecs/addons/cpp/world.hpp>

flecs::entity set_scope(const flecs::entity_t scope) const

Description

Set current scope.

Parameters

scope - The scope to set.

Returns
The current scope;
See
ecs_set_scope

Mentioned in

Source

Lines 66-68 in include/flecs/addons/cpp/impl/world.hpp. Line 485 in include/flecs/addons/cpp/world.hpp.

inline flecs::entity world::set_scope(const flecs::entity_t s) const {
    return flecs::entity(ecs_set_scope(m_world, s));
}

Synopsis

#include <include/flecs/addons/cpp/world.hpp>

template <typename T>
flecs::entity set_scope() const

Description

Same as set_scope but with type.

Mentioned in

Source

Lines 74-77 in include/flecs/addons/cpp/impl/world.hpp. Line 498 in include/flecs/addons/cpp/world.hpp.

template <typename T>
inline flecs::entity world::set_scope() const {
    return set_scope( _::cpp_type<T>::id(m_world) ); 
}