xentara-plugin v2.0.4
The Xentara Plugin Framework
|
A helper class that allows constructing read handles that return fixed values. More...
#include <xentara/data/ReadHandle.hpp>
Public Member Functions | |
FixedValue ()=delete | |
This class is not default constructible. | |
constexpr | FixedValue (const Type &value) |
Constructor theat sets the value. | |
constexpr | FixedValue (Type &&value) |
Constructor theat moves a value into the object. | |
template<class... Arguments> requires std::is_constructible_v<Type, Arguments &&...> | |
constexpr | FixedValue (std::in_place_t, Arguments &&...arguments) |
In-Place constructor. | |
template<class InitializerType , class... Arguments> requires std::is_constructible_v<Type, std::initializer_list<InitializerType> &, Arguments &&...> | |
constexpr | FixedValue (std::in_place_t, std::initializer_list< InitializerType > initializerList, Arguments &&...arguments) |
In-Place constructor that includes an initializer list. | |
constexpr const Type & | value () const & |
Gets the value. | |
constexpr Type & | value () & |
Gets the value. | |
constexpr Type && | value () && |
Gets the value. | |
constexpr const Type && | value () const && |
Gets the value. | |
A helper class that allows constructing read handles that return fixed values.
Type | The type of the value to store. The type must meet the following criteria:
|
|
delete |
This class is not default constructible.
|
explicitconstexpr |
Constructor theat sets the value.
|
explicitconstexpr |
Constructor theat moves a value into the object.
|
explicitconstexpr |
In-Place constructor.
This constructor creates a value in place using the given arguments
|
explicitconstexpr |
In-Place constructor that includes an initializer list.
This constructor creates a value in place using the given arguments
|
constexpr |
Gets the value.
|
constexpr |
Gets the value.
|
constexpr |
Gets the value.
|
constexpr |
Gets the value.