OR-Tools  8.0
BooleanVarabstract

Detailed Description

Definition at line 1944 of file constraint_solveri.h.

Public Member Functions

 BooleanVar (Solver *const s, const std::string &name="")
 
 ~BooleanVar () override
 
int64 Min () const override
 
void SetMin (int64 m) override
 
int64 Max () const override
 
void SetMax (int64 m) override
 
void SetRange (int64 mi, int64 ma) override
 
bool Bound () const override
 
int64 Value () const override
 
void RemoveValue (int64 v) override
 
void RemoveInterval (int64 l, int64 u) override
 
void WhenBound (Demon *d) override
 
void WhenRange (Demon *d) override
 
void WhenDomain (Demon *d) override
 
uint64 Size () const override
 
bool Contains (int64 v) const override
 
IntVarIterator * MakeHoleIterator (bool reversible) const override
 
IntVarIterator * MakeDomainIterator (bool reversible) const override
 
std::string DebugString () const override
 
int VarType () const override
 
IntVar * IsEqual (int64 constant) override
 
IntVar * IsDifferent (int64 constant) override
 
IntVar * IsGreaterOrEqual (int64 constant) override
 
IntVar * IsLessOrEqual (int64 constant) override
 
virtual void RestoreValue ()=0
 
std::string BaseName () const override
 
int RawValue () const
 

Static Public Attributes

static const int kUnboundBooleanVarValue = 2
 

Protected Attributes

int value_
 
SimpleRevFIFO< Demon * > bound_demons_
 
SimpleRevFIFO< Demon * > delayed_bound_demons_
 

Constructor & Destructor Documentation

◆ BooleanVar()

BooleanVar ( Solver *const  s,
const std::string &  name = "" 
)
inlineexplicit

Definition at line 1948 of file constraint_solveri.h.

◆ ~BooleanVar()

~BooleanVar ( )
inlineoverride

Definition at line 1951 of file constraint_solveri.h.

Member Function Documentation

◆ BaseName()

std::string BaseName ( ) const
inlineoverride

Definition at line 1981 of file constraint_solveri.h.

◆ Bound()

bool Bound ( ) const
inlineoverride

Definition at line 1958 of file constraint_solveri.h.

◆ Contains()

bool Contains ( int64  v) const
override

Definition at line 127 of file expressions.cc.

◆ DebugString()

std::string DebugString ( ) const
override

Definition at line 173 of file expressions.cc.

◆ IsDifferent()

IntVar * IsDifferent ( int64  constant)
override

Definition at line 142 of file expressions.cc.

◆ IsEqual()

IntVar * IsEqual ( int64  constant)
override

Definition at line 131 of file expressions.cc.

◆ IsGreaterOrEqual()

IntVar * IsGreaterOrEqual ( int64  constant)
override

Definition at line 153 of file expressions.cc.

◆ IsLessOrEqual()

IntVar * IsLessOrEqual ( int64  constant)
override

Definition at line 163 of file expressions.cc.

◆ MakeDomainIterator()

IntVarIterator * MakeDomainIterator ( bool  reversible) const
override

Definition at line 6319 of file expressions.cc.

◆ MakeHoleIterator()

IntVarIterator * MakeHoleIterator ( bool  reversible) const
override

Definition at line 6316 of file expressions.cc.

◆ Max()

int64 Max ( ) const
inlineoverride

Definition at line 1955 of file constraint_solveri.h.

◆ Min()

int64 Min ( ) const
inlineoverride

Definition at line 1953 of file constraint_solveri.h.

◆ RawValue()

int RawValue ( ) const
inline

Definition at line 1983 of file constraint_solveri.h.

◆ RemoveInterval()

void RemoveInterval ( int64  l,
int64  u 
)
override

Definition at line 102 of file expressions.cc.

◆ RemoveValue()

void RemoveValue ( int64  v)
override

Definition at line 90 of file expressions.cc.

◆ RestoreValue()

virtual void RestoreValue ( )
pure virtual

◆ SetMax()

void SetMax ( int64  m)
override

Definition at line 73 of file expressions.cc.

◆ SetMin()

void SetMin ( int64  m)
override

Definition at line 67 of file expressions.cc.

◆ SetRange()

void SetRange ( int64  mi,
int64  ma 
)
override

Definition at line 79 of file expressions.cc.

◆ Size()

uint64 Size ( ) const
override

Definition at line 123 of file expressions.cc.

◆ Value()

int64 Value ( ) const
inlineoverride

Definition at line 1959 of file constraint_solveri.h.

◆ VarType()

int VarType ( ) const
inlineoverride

Definition at line 1973 of file constraint_solveri.h.

◆ WhenBound()

void WhenBound ( Demon *  d)
override

Definition at line 113 of file expressions.cc.

◆ WhenDomain()

void WhenDomain ( Demon *  d)
inlineoverride

Definition at line 1967 of file constraint_solveri.h.

◆ WhenRange()

void WhenRange ( Demon *  d)
inlineoverride

Definition at line 1966 of file constraint_solveri.h.

Member Data Documentation

◆ bound_demons_

SimpleRevFIFO<Demon*> bound_demons_
protected

Definition at line 1987 of file constraint_solveri.h.

◆ delayed_bound_demons_

SimpleRevFIFO<Demon*> delayed_bound_demons_
protected

Definition at line 1988 of file constraint_solveri.h.

◆ kUnboundBooleanVarValue

const int kUnboundBooleanVarValue = 2
static

Definition at line 1946 of file constraint_solveri.h.

◆ value_

int value_
protected

Definition at line 1986 of file constraint_solveri.h.


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