Template Class ValuesConstraint
Defined in File values_constraint.hpp
Inheritance Relationships
Base Type
public ecl::Constraint< T >
(Template Class Constraint)
Class Documentation
-
template<class T>
class ValuesConstraint : public ecl::Constraint<T> A Constraint that constrains the Arg to only those values specified in the constraint.
Public Functions
-
ValuesConstraint(std::vector<T> &allowed)
Constructor.
- Parameters:
allowed – - vector of allowed values.
-
inline virtual ~ValuesConstraint()
Virtual destructor.
-
virtual std::string description() const
Returns a description of the Constraint.
-
virtual std::string shortID() const
Returns the short ID for the Constraint.
-
ValuesConstraint(std::vector<T> &allowed)