|
cfgfile 0.2.11
|
Base class for constraints. More...
#include <constraint.hpp>
Inheritance diagram for cfgfile::constraint_t< T >:Public Member Functions | |
| constraint_t () | |
| Construct constraint. | |
| virtual | ~constraint_t () |
| virtual bool | check (const T &value) const =0 |
| Check value for correctness. | |
|
inline |
Construct constraint.
|
inlinevirtual |
Check value for correctness.
| true | If all is OK. |
| false | If value doen't correspond to the constraint. |
Implemented in cfgfile::constraint_min_max_t< T >, and cfgfile::constraint_one_of_t< T >.