setConstraint overloads
Declared in <balcl_typeinfo.h>
Put the specified constraint on the value of the described option, replacing any constraint that had been in effect (if any). The behavior is undefined unless the described option is not a flag and the balcl::OptionValue type of the described option corresponds to the type of constraint. Note that two distinct objects that have the same constraint put on them will compare unequal unless the constraint is shared among them, which can be done by: ` aTypeInfo.setConstraint(anotherTypeInfo.constraint()); `
void
setConstraint(Constraint::CharConstraint const& constraint);
» more...
Put the specified constraint on the value of the described option.
void
setConstraint(Constraint::DateConstraint const& constraint);
» more...
Put the specified constraint on the value of the described option.
void
setConstraint(Constraint::DatetimeConstraint const& constraint);
» more...
Put the specified constraint on the value of the described option.
void
setConstraint(Constraint::DoubleConstraint const& constraint);
» more...
Put the specified constraint on the value of the described option.
void
setConstraint(Constraint::Int64Constraint const& constraint);
» more...
Put the specified constraint on the value of the described option.
void
setConstraint(Constraint::IntConstraint const& constraint);
» more...
Put the specified constraint on the value of the described option.
void
setConstraint(Constraint::StringConstraint const& constraint);
» more...
Put the specified constraint on the value of the described option.
void
setConstraint(Constraint::TimeConstraint const& constraint);
» more...
Set the constraint of the described option to the specified constraint. The behavior is undefined unless the option associated with constraint has the same type as the option associated with this object. Note that the linked variable, if any, is unchanged by this method.
void
setConstraint(bsl::shared_ptr<TypeInfoConstraint> const& constraint);
» more...