template<typename T>
cubos::core::reflection::ConstructibleTrait::Builder class

Builder for ConstructibleTrait.

Constructors, destructors, conversion operators

Builder()
Constructs.
Builder(ConstructibleTrait trait)
Constructs.

Public functions

auto build() && -> ConstructibleTrait
Returns the constructed trait.
auto withDefaultConstructor() && -> Builder
Sets the default constructor of the type.
auto withCopyConstructor() && -> Builder
Sets the copy constructor of the type.
auto withMoveConstructor() && -> Builder
Sets the move constructor of the type.
auto withBasicConstructors() && -> Builder
Sets the default, copy and move constructors of the type.
template<typename... Args>
auto withCustomConstructor(std::initializer_list<std::string> argNames) && -> Builder
Adds a custom constructor to the type.

Function documentation

template<typename T>
ConstructibleTrait cubos::core::reflection::ConstructibleTrait::Builder<T>::build() &&

Returns the constructed trait.

Returns Constructed trait.

template<typename T>
Builder cubos::core::reflection::ConstructibleTrait::Builder<T>::withDefaultConstructor() &&

Sets the default constructor of the type.

Returns Builder.

template<typename T>
Builder cubos::core::reflection::ConstructibleTrait::Builder<T>::withCopyConstructor() &&

Sets the copy constructor of the type.

Returns Builder.

template<typename T>
Builder cubos::core::reflection::ConstructibleTrait::Builder<T>::withMoveConstructor() &&

Sets the move constructor of the type.

Returns Builder.

template<typename T>
Builder cubos::core::reflection::ConstructibleTrait::Builder<T>::withBasicConstructors() &&

Sets the default, copy and move constructors of the type.

Returns Builder.

template<typename T> template<typename... Args>
Builder cubos::core::reflection::ConstructibleTrait::Builder<T>::withCustomConstructor(std::initializer_list<std::string> argNames) &&

Adds a custom constructor to the type.

Parameters
argNames Names of the arguments to the constructor.
Returns Builder.