Function modified

Summary

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

(1) template <typename T>
    void modified() const

(2) template <typename First, typename Second>
    void modified() const

(3) template <typename First>
    void modified(entity_t second) const

(4) void modified(entity_t first, entity_t second) const

(5) void modified(entity_t comp) const

Function overload

Synopsis

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

template <typename T>
void modified() const

Description

Signal that component was modified.

Template Parameters

T - component that was modified.

Source

Lines 148-153 in include/flecs/addons/cpp/entity.hpp.

template <typename T>
void modified() const {
    auto comp_id = _::cpp_type<T>::id(m_world);
    ecs_assert(_::cpp_type<T>::size() != 0, ECS_INVALID_PARAMETER, NULL);
    this->modified(comp_id);
} 

Synopsis

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

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

Description

Signal that the first element of a pair was modified.

Template Parameters

First - The first part of the pair.

Second - the second part of the pair.

Source

Lines 160-163 in include/flecs/addons/cpp/entity.hpp.

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

Synopsis

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

template <typename First>
void modified(entity_t second) const

Description

Signal that the first part of a pair was modified.

Template Parameters

First - The first part of the pair.

Parameters

second - The second element of the pair.

Source

Lines 170-175 in include/flecs/addons/cpp/entity.hpp.

template <typename First>
void modified(entity_t second) const {
    auto first = _::cpp_type<First>::id(m_world);
    ecs_assert(_::cpp_type<First>::size() != 0, ECS_INVALID_PARAMETER, NULL);
    this->modified(first, second);
}

Synopsis

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

void modified(entity_t first, entity_t second) const

Description

Signal that a pair has modified (untyped). If neither the first or second element of the pair are a component, the operation will fail.

Parameters

first - The first element of the pair.

second - The second element of the pair.

Source

Lines 184-186 in include/flecs/addons/cpp/entity.hpp.

void modified(entity_t first, entity_t second) const {
    this->modified(ecs_pair(first, second));
}

Synopsis

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

void modified(entity_t comp) const

Description

Signal that component was modified.

Parameters

comp - component that was modified.

Source

Lines 192-194 in include/flecs/addons/cpp/entity.hpp.

void modified(entity_t comp) const {
    ecs_modified_id(m_world, m_id, comp);
}