|
cfgfile 0.2.11
|
Constraint that allowed values to be in the given range: min <= value <= max. More...
#include <constraint_min_max.hpp>
Inheritance diagram for cfgfile::constraint_min_max_t< T >:
Collaboration diagram for cfgfile::constraint_min_max_t< T >:Public Member Functions | |
| constraint_min_max_t (const T &min, const T &max) | |
| Construct constraint. | |
| ~constraint_min_max_t () | |
| bool | check (const T &value) const override |
| Check value for correctness. | |
Public Member Functions inherited from cfgfile::constraint_t< T > | |
| constraint_t () | |
| Construct constraint. | |
| virtual | ~constraint_t () |
Constraint that allowed values to be in the given range: min <= value <= max.
Construct constraint.
|
inline |
|
inlineoverridevirtual |
Check value for correctness.
| true | If all is OK. |
| false | If value doen't correspond to the constraint. |
Implements cfgfile::constraint_t< T >.