Function delete_with

Summary

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

(1) void delete_with(id_t the_id) const

(2) void delete_with(entity_t first, entity_t second) const

(3) template <typename T>
    void delete_with() const

(4) template <typename First, typename Second>
    void delete_with() const

Function overload

Synopsis

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

void delete_with(id_t the_id) const

Description

Delete all entities with specified id.

Mentioned in

Source

Lines 711-713 in include/flecs/addons/cpp/world.hpp.

void delete_with(id_t the_id) const {
    ecs_delete_with(m_world, the_id);
}

Synopsis

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

void delete_with(entity_t first, entity_t second) const

Description

Delete all entities with specified pair.

Mentioned in

Source

Lines 716-718 in include/flecs/addons/cpp/world.hpp.

void delete_with(entity_t first, entity_t second) const {
    delete_with(ecs_pair(first, second));
}

Synopsis

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

template <typename T>
void delete_with() const

Description

Delete all entities with specified component.

Mentioned in

Source

Lines 721-724 in include/flecs/addons/cpp/world.hpp.

template <typename T>
void delete_with() const {
    delete_with(_::cpp_type<T>::id(m_world));
}

Synopsis

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

template <typename First, typename Second>
void delete_with() const

Description

Delete all entities with specified pair.

Mentioned in

Source

Lines 727-730 in include/flecs/addons/cpp/world.hpp.

template <typename First, typename Second>
void delete_with() const {
    delete_with(_::cpp_type<First>::id(m_world), _::cpp_type<Second>::id(m_world));
}