Function remove_all

Summary

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

(1) void remove_all(id_t the_id) const

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

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

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

Function overload

Synopsis

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

void remove_all(id_t the_id) const

Description

Remove all instances of specified id.

Mentioned in

Source

Lines 733-735 in include/flecs/addons/cpp/world.hpp.

void remove_all(id_t the_id) const {
    ecs_remove_all(m_world, the_id);
}

Synopsis

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

void remove_all(entity_t first, entity_t second) const

Description

Remove all instances of specified pair.

Mentioned in

Source

Lines 738-740 in include/flecs/addons/cpp/world.hpp.

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

Synopsis

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

template <typename T>
void remove_all() const

Description

Remove all instances of specified component.

Mentioned in

Source

Lines 743-746 in include/flecs/addons/cpp/world.hpp.

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

Synopsis

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

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

Description

Remove all instances of specified pair.

Mentioned in

Source

Lines 749-752 in include/flecs/addons/cpp/world.hpp.

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