31#ifndef CFGFILE__CONSTRAINT_ONE_OF_HPP__INCLUDED
32#define CFGFILE__CONSTRAINT_ONE_OF_HPP__INCLUDED
66 m_list.insert( value );
73 m_list.erase( value );
83 bool check(
const T & value )
const override
85 return ( m_list.find( value ) != m_list.cend() );
Constraint that allowed values to be in the given list of values.
Definition constraint_one_of.hpp:51
~constraint_one_of_t()
Definition constraint_one_of.hpp:58
bool check(const T &value) const override
Check value for correctness.
Definition constraint_one_of.hpp:83
void add_value(const T &value)
Add value to the list of values of the constraint.
Definition constraint_one_of.hpp:64
void remove_value(const T &value)
Add value to the list of values of the constraint.
Definition constraint_one_of.hpp:71
constraint_one_of_t()
Construct constraint.
Definition constraint_one_of.hpp:54
Base class for constraints.
Definition constraint.hpp:43