cfgfile 0.2.11
Loading...
Searching...
No Matches
cfgfile::constraint_min_max_t< T > Class Template Referencefinal

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 ()
 

Detailed Description

template<class T>
class cfgfile::constraint_min_max_t< T >

Constraint that allowed values to be in the given range: min <= value <= max.

Constructor & Destructor Documentation

◆ constraint_min_max_t()

template<class T >
cfgfile::constraint_min_max_t< T >::constraint_min_max_t ( const T min,
const T max 
)
inline

Construct constraint.

◆ ~constraint_min_max_t()

Member Function Documentation

◆ check()

template<class T >
bool cfgfile::constraint_min_max_t< T >::check ( const T value) const
inlineoverridevirtual

Check value for correctness.

Returns
Was check successful?
Return values
trueIf all is OK.
falseIf value doen't correspond to the constraint.

Implements cfgfile::constraint_t< T >.


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