Function take

Summary

#include <include/flecs/addons/cpp/mixins/snapshot/impl.hpp>

(1) void take()

(2) template <typename F>
    void take(const F &f)

Function overload

Synopsis

#include <include/flecs/addons/cpp/mixins/snapshot/impl.hpp>

void take()

Description

No description yet.

Source

Lines 38-44 in include/flecs/addons/cpp/mixins/snapshot/impl.hpp.

void take() {
    if (m_snapshot) {
        ecs_snapshot_free(m_snapshot);
    }
    m_snapshot = ecs_snapshot_take(m_world.c_ptr());
}

Synopsis

#include <include/flecs/addons/cpp/mixins/snapshot/impl.hpp>

template <typename F>
void take(const F &f)

Description

No description yet.

Source

Lines 46-55 in include/flecs/addons/cpp/mixins/snapshot/impl.hpp.

template <typename F>
void take(const F& f) {
    if (m_snapshot) {
        ecs_snapshot_free(m_snapshot);
    }
    ecs_iter_t it = ecs_filter_iter(m_world, f.c_ptr());
    m_snapshot = ecs_snapshot_take_w_iter(&it);
}