Function world

Summary

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

(1) explicit world()

(2) explicit world(int argc, char *argv[])

(3) explicit world(world_t *w)

(4) world(const world &obj)=delete

(5) world(world &&obj)

Function overload

Synopsis

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

explicit world()

Description

Create world.

Mentioned in

Source

Lines 95-97 in include/flecs/addons/cpp/world.hpp.

explicit world() 
    : m_world( ecs_init() )
    , m_owned( true ) { init_builtin_components(); }

Synopsis

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

explicit world(int argc, char *argv[])

Description

Create world with command line arguments. Currently command line arguments are not interpreted, but they may be used in the future to configure Flecs parameters.

Mentioned in

Source

Lines 103-105 in include/flecs/addons/cpp/world.hpp.

explicit world(int argc, char *argv[])
    : m_world( ecs_init_w_args(argc, argv) )
    , m_owned( true ) { init_builtin_components(); }

Synopsis

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

explicit world(world_t *w)

Description

Create world from C world.

Mentioned in

Source

Lines 109-111 in include/flecs/addons/cpp/world.hpp.

explicit world(world_t *w)
    : m_world( w ) 
    , m_owned( false ) { }

Synopsis

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

world(const world &obj)=delete

Description

Not allowed to copy a world. May only take a reference.

Mentioned in

Source

Line 115 in include/flecs/addons/cpp/world.hpp.

Synopsis

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

world(world &&obj)

Description

No description yet.

Mentioned in

Source

Lines 117-122 in include/flecs/addons/cpp/world.hpp.

world(world&& obj) {
    m_world = obj.m_world;
    m_owned = obj.m_owned;
    obj.m_world = nullptr;
    obj.m_owned = false;
}