Skip to content
Flecs v4.1
mixin.inl
Go to the documentation of this file.
1/**
2 * @file addons/cpp/mixins/component/mixin.inl
3 * @brief Component mixin.
4 */
5
6/** Find or register a component.
7 *
8 * @ingroup cpp_components
9 * @memberof flecs::world
10 */
11template <typename T, typename... Args>
12flecs::component<T> component(Args &&... args) const;
13
14/** Find or register an untyped component.
15 * Method available on the flecs::world class.
16 *
17 * @ingroup cpp_components
18 * @memberof flecs::world
19 */
20template <typename... Args>
21flecs::untyped_component component(Args &&... args) const;
Component class.
Untyped component class.
flecs::untyped_component component(Args &&... args) const
Find or register an untyped component.
flecs::component< T > component(Args &&... args) const
Find or register a component.