guillaume 2026.6.1
A C++ UI framework designed for modern desktop and extended reality (XR) applications.
Loading...
Searching...
No Matches
guillaume::ecs::EntityBuilderManagerFiller< BuilderTypes > Class Template Reference

An EntityBuilderManager that creates one builder of each listed type when it is constructed. More...

#include <headers/guillaume/ecs/entity_builder_manager_filler.hpp>

Inheritance diagram for guillaume::ecs::EntityBuilderManagerFiller< BuilderTypes >:
Collaboration diagram for guillaume::ecs::EntityBuilderManagerFiller< BuilderTypes >:

Public Member Functions

 EntityBuilderManagerFiller (ComponentRegistry &componentRegistry, EntityRegistry &entityRegistry)
 Create the manager and one builder of each listed type, all working on the same pair of registries.
virtual ~EntityBuilderManagerFiller (void)=default
 Destroy the manager and the builders it holds.
Public Member Functions inherited from guillaume::ecs::EntityBuilderManager
template<InheritFromEntityBuilder BuilderType>
void addBuilder (ComponentRegistry &componentRegistry, EntityRegistry &entityRegistry)
 Create a builder of a given type and keep it.
 EntityBuilderManager (void)
 Create a manager with no builder.
virtual ~EntityBuilderManager (void)
 Destroy the manager and the builders it holds.
template<InheritFromEntityBuilder BuilderType>
BuilderType & getBuilder (void)
 Get the builder of a given type.

Detailed Description

template<InheritFromEntityBuilder... BuilderTypes>
class guillaume::ecs::EntityBuilderManagerFiller< BuilderTypes >

An EntityBuilderManager that creates one builder of each listed type when it is constructed.

Scene uses it to make the builder of every widget of the library available from Scene::getBuilderManager.

builders(componentRegistry, entityRegistry);
auto &text = builders.getBuilder<entities::Text::Builder>();
An EntityBuilderManager that creates one builder of each listed type when it is constructed.
Configures, creates and registers Button widgets.
Definition button.hpp:97
Configures Text widgets and registers them in the scene's entity registry.
Definition text.hpp:98
Template Parameters
BuilderTypesThe builder types to create. Each must appear once and be constructible from the two registries.
See also
EntityBuilderManager

Definition at line 49 of file entity_builder_manager_filler.hpp.

Constructor & Destructor Documentation

◆ EntityBuilderManagerFiller()

template<InheritFromEntityBuilder... BuilderTypes>
guillaume::ecs::EntityBuilderManagerFiller< BuilderTypes >::EntityBuilderManagerFiller ( ComponentRegistry & componentRegistry,
EntityRegistry & entityRegistry )

Create the manager and one builder of each listed type, all working on the same pair of registries.

Parameters
componentRegistryThe registry in which the builders create components. It must outlive the manager.
entityRegistryThe registry in which the builders register entities. It must outlive the manager.
Exceptions
std::runtime_errorWhen a builder type is listed twice.

The documentation for this class was generated from the following file: