Skip to content
Flecs v4.1
flecs::_::builder< T, TDesc, Base, IBuilder, Components > Struct Template Reference

Public Types

using IBase = IBuilder<Base, Components...>

Public Member Functions

 builder (world_t *world, const char *name=nullptr)
 builder (const builder &other)
 builder (builder &&other) noexcept
 operator TDesc * ()
 operator const TDesc * () const
build () const
template<typename Func, typename... Each>
run (Func &&func, Each &&... each_func)
template<typename Func>
each (Func &&func)
template<typename Func>
run_each (Func &&func)

Protected Member Functions

world_tworld_v () override
void set_name (const char *name)

Protected Attributes

TDesc desc_
world_tworld_

Detailed Description

template<typename T, typename TDesc, typename Base, template< typename, typename... > class IBuilder, typename... Components>
struct flecs::_::builder< T, TDesc, Base, IBuilder, Components >

Definition at line 15 of file builder.hpp.

Member Typedef Documentation

◆ IBase

template<typename T, typename TDesc, typename Base, template< typename, typename... > class IBuilder, typename... Components>
using flecs::_::builder< T, TDesc, Base, IBuilder, Components >::IBase = IBuilder<Base, Components...>

Definition at line 16 of file builder.hpp.

Constructor & Destructor Documentation

◆ builder() [1/3]

template<typename T, typename TDesc, typename Base, template< typename, typename... > class IBuilder, typename... Components>
flecs::_::builder< T, TDesc, Base, IBuilder, Components >::builder ( world_t * world,
const char * name = nullptr )
inlineexplicit

Definition at line 18 of file builder.hpp.

◆ builder() [2/3]

template<typename T, typename TDesc, typename Base, template< typename, typename... > class IBuilder, typename... Components>
flecs::_::builder< T, TDesc, Base, IBuilder, Components >::builder ( const builder< T, TDesc, Base, IBuilder, Components > & other)
inline

Definition at line 24 of file builder.hpp.

◆ builder() [3/3]

template<typename T, typename TDesc, typename Base, template< typename, typename... > class IBuilder, typename... Components>
flecs::_::builder< T, TDesc, Base, IBuilder, Components >::builder ( builder< T, TDesc, Base, IBuilder, Components > && other)
inlinenoexcept

Definition at line 27 of file builder.hpp.

Member Function Documentation

◆ build()

template<typename T, typename TDesc, typename Base, template< typename, typename... > class IBuilder, typename... Components>
T flecs::_::builder< T, TDesc, Base, IBuilder, Components >::build ( ) const
inline

Definition at line 37 of file builder.hpp.

◆ each()

template<typename T, typename TDesc, typename Base, template< typename, typename... > class IBuilder, typename... Components>
template<typename Func>
T flecs::_::builder< T, TDesc, Base, IBuilder, Components >::each ( Func && func)
inline

Definition at line 53 of file builder.hpp.

◆ operator const TDesc *()

template<typename T, typename TDesc, typename Base, template< typename, typename... > class IBuilder, typename... Components>
flecs::_::builder< T, TDesc, Base, IBuilder, Components >::operator const TDesc * ( ) const
inline

Definition at line 33 of file builder.hpp.

◆ operator TDesc *()

template<typename T, typename TDesc, typename Base, template< typename, typename... > class IBuilder, typename... Components>
flecs::_::builder< T, TDesc, Base, IBuilder, Components >::operator TDesc * ( )
inline

Definition at line 29 of file builder.hpp.

◆ run()

template<typename T, typename TDesc, typename Base, template< typename, typename... > class IBuilder, typename... Components>
template<typename Func, typename... Each>
T flecs::_::builder< T, TDesc, Base, IBuilder, Components >::run ( Func && func,
Each &&... each_func )
inline

Definition at line 42 of file builder.hpp.

◆ run_each()

template<typename T, typename TDesc, typename Base, template< typename, typename... > class IBuilder, typename... Components>
template<typename Func>
T flecs::_::builder< T, TDesc, Base, IBuilder, Components >::run_each ( Func && func)
inline

Definition at line 59 of file builder.hpp.

◆ set_name()

template<typename T, typename TDesc, typename Base, template< typename, typename... > class IBuilder, typename... Components>
void flecs::_::builder< T, TDesc, Base, IBuilder, Components >::set_name ( const char * name)
inlineprotected

Definition at line 69 of file builder.hpp.

◆ world_v()

template<typename T, typename TDesc, typename Base, template< typename, typename... > class IBuilder, typename... Components>
world_t * flecs::_::builder< T, TDesc, Base, IBuilder, Components >::world_v ( )
inlineoverrideprotected

Definition at line 65 of file builder.hpp.

Member Data Documentation

◆ desc_

template<typename T, typename TDesc, typename Base, template< typename, typename... > class IBuilder, typename... Components>
TDesc flecs::_::builder< T, TDesc, Base, IBuilder, Components >::desc_
protected

Definition at line 79 of file builder.hpp.

◆ world_

template<typename T, typename TDesc, typename Base, template< typename, typename... > class IBuilder, typename... Components>
world_t* flecs::_::builder< T, TDesc, Base, IBuilder, Components >::world_
protected

Definition at line 80 of file builder.hpp.


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