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

#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
 

Detailed Description

Definition at line 5045 of file constraint_solver.h.

Constructor & Destructor Documentation

◆ IntVarElement() [1/2]

operations_research::IntVarElement::IntVarElement ( )

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

--— IntVarElement --—

Definition at line 40 of file assignment.cc.

◆ IntVarElement() [2/2]

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

Definition at line 42 of file assignment.cc.

Member Function Documentation

◆ Bound()

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

Definition at line 5074 of file constraint_solver.h.

◆ Clone()

IntVarElement * operations_research::IntVarElement::Clone ( )

Definition at line 50 of file assignment.cc.

◆ Copy()

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

Definition at line 56 of file assignment.cc.

◆ DebugString()

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

Definition at line 100 of file assignment.cc.

◆ LoadFromProto()

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

Definition at line 66 of file assignment.cc.

◆ Max()

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

Definition at line 5067 of file constraint_solver.h.

◆ Min()

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

Definition at line 5065 of file constraint_solver.h.

◆ operator!=()

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

Definition at line 5086 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 77 of file assignment.cc.

◆ Reset()

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

Definition at line 44 of file assignment.cc.

◆ Restore()

void operations_research::IntVarElement::Restore ( )
inline

Definition at line 5057 of file constraint_solver.h.

◆ SetMax()

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

Definition at line 5068 of file constraint_solver.h.

◆ SetMin()

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

Definition at line 5066 of file constraint_solver.h.

◆ SetRange()

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

Definition at line 5075 of file constraint_solver.h.

◆ SetValue()

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

Definition at line 5079 of file constraint_solver.h.

◆ Store()

void operations_research::IntVarElement::Store ( )
inline

Definition at line 5053 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 5069 of file constraint_solver.h.

◆ Var()

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

Definition at line 5052 of file constraint_solver.h.

◆ WriteToProto()

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

Definition at line 92 of file assignment.cc.


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