Google OR-Tools v9.14
a fast and portable software suite for combinatorial optimization
Loading...
Searching...
No Matches
operations_research::IntVarElement Class Reference

Detailed Description

Definition at line 5144 of file constraint_solver.h.

#include <constraint_solver.h>

Inheritance diagram for operations_research::IntVarElement:
operations_research::AssignmentElement

Public Member Functions

 IntVarElement ()
 --------------— Solutions ---------------------—
 IntVarElement (IntVar *var)
void Reset (IntVar *var)
IntVarElementClone ()
void Copy (const IntVarElement &element)
IntVarVar () const
void Store ()
void Restore ()
void LoadFromProto (const IntVarAssignment &int_var_assignment_proto)
void WriteToProto (IntVarAssignment *int_var_assignment_proto) const
int64_t Min () const
void SetMin (int64_t m)
int64_t Max () const
void SetMax (int64_t m)
int64_t Value () const
bool Bound () const
void SetRange (int64_t l, int64_t u)
void SetValue (int64_t v)
std::string DebugString () const
bool operator== (const IntVarElement &element) const
bool operator!= (const IntVarElement &element) const
Public Member Functions inherited from operations_research::AssignmentElement
 AssignmentElement ()
void Activate ()
void Deactivate ()
bool Activated () const

Constructor & Destructor Documentation

◆ IntVarElement() [1/2]

operations_research::IntVarElement::IntVarElement ( )

--------------— Solutions ---------------------—

--— IntVarElement --—

Definition at line 39 of file assignment.cc.

◆ IntVarElement() [2/2]

operations_research::IntVarElement::IntVarElement ( IntVar * var)
explicit

Definition at line 41 of file assignment.cc.

Member Function Documentation

◆ Bound()

bool operations_research::IntVarElement::Bound ( ) const
inline

Definition at line 5173 of file constraint_solver.h.

◆ Clone()

IntVarElement * operations_research::IntVarElement::Clone ( )

Definition at line 49 of file assignment.cc.

◆ Copy()

void operations_research::IntVarElement::Copy ( const IntVarElement & element)

Definition at line 55 of file assignment.cc.

◆ DebugString()

std::string operations_research::IntVarElement::DebugString ( ) const

Definition at line 99 of file assignment.cc.

◆ LoadFromProto()

void operations_research::IntVarElement::LoadFromProto ( const IntVarAssignment & int_var_assignment_proto)

Definition at line 65 of file assignment.cc.

◆ Max()

int64_t operations_research::IntVarElement::Max ( ) const
inline

Definition at line 5166 of file constraint_solver.h.

◆ Min()

int64_t operations_research::IntVarElement::Min ( ) const
inline

Definition at line 5164 of file constraint_solver.h.

◆ operator!=()

bool operations_research::IntVarElement::operator!= ( const IntVarElement & element) const
inline

Definition at line 5185 of file constraint_solver.h.

◆ operator==()

bool operations_research::IntVarElement::operator== ( const IntVarElement & element) const

If both elements are deactivated, then they are equal, regardless of their min and max.

Definition at line 76 of file assignment.cc.

◆ Reset()

void operations_research::IntVarElement::Reset ( IntVar * var)

Definition at line 43 of file assignment.cc.

◆ Restore()

void operations_research::IntVarElement::Restore ( )
inline

Definition at line 5156 of file constraint_solver.h.

◆ SetMax()

void operations_research::IntVarElement::SetMax ( int64_t m)
inline

Definition at line 5167 of file constraint_solver.h.

◆ SetMin()

void operations_research::IntVarElement::SetMin ( int64_t m)
inline

Definition at line 5165 of file constraint_solver.h.

◆ SetRange()

void operations_research::IntVarElement::SetRange ( int64_t l,
int64_t u )
inline

Definition at line 5174 of file constraint_solver.h.

◆ SetValue()

void operations_research::IntVarElement::SetValue ( int64_t v)
inline

Definition at line 5178 of file constraint_solver.h.

◆ Store()

void operations_research::IntVarElement::Store ( )
inline

Definition at line 5152 of file constraint_solver.h.

◆ Value()

int64_t operations_research::IntVarElement::Value ( ) const
inline

Get the value from an unbound int var assignment element.

Definition at line 5168 of file constraint_solver.h.

◆ Var()

IntVar * operations_research::IntVarElement::Var ( ) const
inline

Definition at line 5151 of file constraint_solver.h.

◆ WriteToProto()

void operations_research::IntVarElement::WriteToProto ( IntVarAssignment * int_var_assignment_proto) const

Definition at line 91 of file assignment.cc.


The documentation for this class was generated from the following files: