UIntPointerParameter class. A uint parameter class that wraps an external uint variable.
More...
#include <UIntPointerParameter.hpp>
|
| UIntPointerParameter (const std::string name, uint *valuePointer, const uint minimumValue, const uint maximumValue) |
| UIntPointerParameter constructor with a uint pointer.
|
|
| UIntPointerParameter (std::string name, std::atomic< uint > *atomicValuePointer, const uint minimumValue, const uint maximumValue) |
| UIntPointerParameter constructor with an atomic uint pointer.
|
|
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.
|
|
|
enum class | Type { Float
, Bool
, Int
, UInt
} |
|
Type | type |
|
std::string | name |
|
UIntPointerParameter class. A uint parameter class that wraps an external uint variable.
◆ UIntPointerParameter() [1/2]
switchboard::UIntPointerParameter::UIntPointerParameter |
( |
const std::string | name, |
|
|
uint * | valuePointer, |
|
|
const uint | minimumValue, |
|
|
const uint | maximumValue ) |
UIntPointerParameter constructor with a uint pointer.
- Parameters
-
name | The name of the parameter. |
valuePointer | Pointer to the boolean value. |
minimumValue | Minimum value for the parameter. |
maximumValue | Maximum value for the parameter. |
◆ UIntPointerParameter() [2/2]
switchboard::UIntPointerParameter::UIntPointerParameter |
( |
std::string | name, |
|
|
std::atomic< uint > * | atomicValuePointer, |
|
|
const uint | minimumValue, |
|
|
const uint | maximumValue ) |
UIntPointerParameter constructor with an atomic uint pointer.
- Parameters
-
name | The name of the parameter. |
atomicValuePointer | Atomic pointer to the boolean value. |
minimumValue | Minimum value for the parameter. |
maximumValue | Maximum value for the parameter. |
◆ getMaximumValue()
uint switchboard::UIntPointerParameter::getMaximumValue |
( |
| ) |
const |
|
overridevirtual |
◆ getMinimumValue()
uint switchboard::UIntPointerParameter::getMinimumValue |
( |
| ) |
const |
|
overridevirtual |
◆ getValue()
uint switchboard::UIntPointerParameter::getValue |
( |
| ) |
const |
|
overridevirtual |
◆ setValue()
void switchboard::UIntPointerParameter::setValue |
( |
const uint | newValue | ) |
|
|
overridevirtual |