UIntCallbackParameter class. A uint parameter class that wraps a getter and a setter methods.
More...
#include <UIntCallbackParameter.hpp>
|
typedef uint(T::* | UIntGetter) () const |
|
typedef void(T::* | UIntSetter) (uint) |
|
enum class | Type { Float
, Bool
, Int
, UInt
} |
|
|
| UIntCallbackParameter (const std::string name, T *instance, UIntGetter getter, UIntSetter setter, const uint minimumValue, const uint maximumValue) |
| UIntCallbackParameter constructor.
|
|
uint | getValue () const override |
| Gets the current value of the parameter.
|
|
void | setValue (const uint newValue) override |
| Sets a new value for the parameter.
|
|
uint | getMinimumValue () const override |
| Gets the minimum value for the parameter.
|
|
uint | getMaximumValue () const override |
| Gets the maximum value for the parameter.
|
|
| UIntParameter (const std::string name) |
| UIntParameter constructor.
|
|
virtual | ~UIntParameter ()=default |
| UIntParameter destructor.
|
|
| Parameter (const Type type, const std::string name) |
|
virtual | ~Parameter ()=default |
| Parameter destructor.
|
|
const std::string & | getName () const |
| Gets the name of the parameter.
|
|
Type | getType () const |
| Gets the type of the parameter.
|
|
|
Type | type |
|
std::string | name |
|
template<typename T>
class switchboard::UIntCallbackParameter< T >
UIntCallbackParameter class. A uint parameter class that wraps a getter and a setter methods.
◆ UIntCallbackParameter()
template<typename T >
switchboard::UIntCallbackParameter< T >::UIntCallbackParameter |
( |
const std::string | name, |
|
|
T * | instance, |
|
|
UIntGetter | getter, |
|
|
UIntSetter | setter, |
|
|
const uint | minimumValue, |
|
|
const uint | maximumValue ) |
|
inline |
UIntCallbackParameter constructor.
- Parameters
-
name | The name of the parameter. |
instance | Pointer to the instance that the getter and setter methods belong to. |
getter | The getter method for the parameter. |
setter | The setter method for the parameter. |
minimumValue | Minimum value for the parameter. |
maximumValue | Maximum value for the parameter. |
◆ getMaximumValue()
◆ getMinimumValue()
◆ getValue()
◆ setValue()