Public Types | Public Member Functions | Private Attributes | List of all members
urcl::Limited< T > Class Template Reference

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

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

data_
 
const T lower_
 
const T upper_
 

Detailed Description

template<class T>
class urcl::Limited< T >

Helper class that represents a numeric value with a lower and an upper boundary.

Template Parameters
Tany type for which a comparison exists.

Definition at line 63 of file tool_communication.h.

Member Typedef Documentation

template<class T>
using urcl::Limited< T >::Datatype = T

Definition at line 69 of file tool_communication.h.

Constructor & Destructor Documentation

template<class T>
urcl::Limited< T >::Limited ( )
delete
template<class T>
urcl::Limited< T >::~Limited ( )
default
template<class T>
urcl::Limited< T >::Limited ( const T  lower,
const T  upper 
)
inline

Create a new Limited object.

Parameters
lowerLower boundary used for this Limited object
upperUpper boundary used for this Limited object

Definition at line 77 of file tool_communication.h.

Member Function Documentation

template<class T>
T urcl::Limited< T >::getData ( ) const
inline

Returns the data stored in this object.

Definition at line 104 of file tool_communication.h.

template<class T>
void urcl::Limited< T >::setData ( const T  data)
inline

Set the data field with a given value.

If the given value is out of the configured range, an exception is thrown.

Parameters
data

Definition at line 89 of file tool_communication.h.

Member Data Documentation

template<class T>
T urcl::Limited< T >::data_
private

Definition at line 110 of file tool_communication.h.

template<class T>
const T urcl::Limited< T >::lower_
private

Definition at line 111 of file tool_communication.h.

template<class T>
const T urcl::Limited< T >::upper_
private

Definition at line 112 of file tool_communication.h.


The documentation for this class was generated from the following file:


ur_client_library
Author(s): Thomas Timm Andersen, Simon Rasmussen, Felix Exner, Lea Steffen, Tristan Schnell
autogenerated on Sun May 9 2021 02:16:26