Initializing help system before first use

ConstraintDefinition

Base class for all constraints. More...

Public Member Functions

virtual auto  getName () const -> std::optional< std::string >
  Get the name of this constraint.
 
virtual auto  setConstraintName (std::optional< std::string > newName) -> ConstraintDefinition< C > &final
  Set the name of this constraint.
 

Detailed Description

template<typename C>
class xpress::objects::ConstraintDefinition< C >

Base class for all constraints.

This is a mostly opaque class that usually is short-lived and only saves as data container during the creation of constraints.

One thing that is common to all constraints in Xpress is that they have a name. This property is accesible from the getName() and setName() functions in this class.

Since
44.00

Member Function Documentation

getName()

template<typename C >
auto xpress::objects::ConstraintDefinition< C >::getName ( ) const -> std::optional<std::string>
inlinevirtual

setConstraintName()

template<typename C >
auto xpress::objects::ConstraintDefinition< C >::setConstraintName ( std::optional< std::string > newName ) -> ConstraintDefinition<C>&
inlinefinalvirtual

Set the name of this constraint.

Parameters
newName New name.
Returns
Always returns this instance.
Since
44.00

The documentation for this class was generated from the following file:
  • xpress_objects.hpp

© 2001-2025 Fair Isaac Corporation. All rights reserved. This documentation is the property of Fair Isaac Corporation (“FICO”). Receipt or possession of this documentation does not convey rights to disclose, reproduce, make derivative works, use, or allow others to use it except solely for internal evaluation purposes to determine whether to purchase a license to the software described in this documentation, or as otherwise set forth in a written software license agreement between you and FICO (or a FICO affiliate). Use of this documentation and the software described in it must conform strictly to the foregoing permitted uses, and no other use is permitted.