Validate an input argument's value against the constraint's list of values
void Validate( INT_T scalarValue, LPCTSTR pszArgName ) const; void Validate( const std::vector<INT_T>& vectorValue, LPCTSTR pszArgName ) const; void Validate( const ple::imtx<INT_T>& matrixValue, LPCTSTR pszArgName ) const; |
A scalar input value.
If this is not a member of the constraint's list of values,
an exception of type CXlRuntimeException
will be thrown, and an error message will be returned, e.g.
Expected one of 1, 2, 3 for X
.
The name of the argument being validated.
A vector input value.
If any item in the vector is not a member of the constraint's list of values,
an exception of type CXlRuntimeException
will be thrown, and an error message will be returned, e.g.
Expected one of 1, 2, 3 for X[12]
.
A matrix input value.
If any item in the matrix is not a member of the constraint's list of values,
an exception of type CXlRuntimeException
will be thrown, and an error message will be returned, e.g.
Expected one of 1, 2, 3 for X[3, 4]
.
Header: xlvaluelistconstraint.h
CXlValueListConstraint<INT_T> Class | CXlValueListConstraint<INT_T> Methods