Helper class that represents a numeric value with a lower and an upper boundary. More...
#include <tool_communication.h>
Public Types | |
using | Datatype = T |
Public Member Functions | |
T | getData () const |
Returns the data stored in this object. More... | |
Limited ()=delete | |
Limited (const T lower, const T upper) | |
Create a new Limited object. More... | |
void | setData (const T data) |
Set the data field with a given value. More... | |
~Limited ()=default | |
Private Attributes | |
T | data_ |
const T | lower_ |
const T | upper_ |
Helper class that represents a numeric value with a lower and an upper boundary.
T | any type for which a comparison exists. |
Definition at line 63 of file tool_communication.h.
using urcl::Limited< T >::Datatype = T |
Definition at line 69 of file tool_communication.h.
|
delete |
|
default |
|
inline |
Create a new Limited object.
lower | Lower boundary used for this Limited object |
upper | Upper boundary used for this Limited object |
Definition at line 77 of file tool_communication.h.
|
inline |
Returns the data stored in this object.
Definition at line 104 of file tool_communication.h.
|
inline |
Set the data field with a given value.
If the given value is out of the configured range, an exception is thrown.
data |
Definition at line 89 of file tool_communication.h.
|
private |
Definition at line 110 of file tool_communication.h.
|
private |
Definition at line 111 of file tool_communication.h.
|
private |
Definition at line 112 of file tool_communication.h.