Generated on Thu Apr 11 13:59:52 2019 for Gecode by doxygen 1.6.3

Gecode::Float::MinusView Class Reference
[Float views]

Minus float view. More...

#include <view.hpp>

List of all members.

Related Functions

(Note that these are not member functions.)



template<class Char , class Traits >
std::basic_ostream< Char,
Traits > & 
operator<< (std::basic_ostream< Char, Traits > &os, const MinusView &x)
 Print float minus view.

Constructors and initialization



 MinusView (void)
 Default constructor.
 MinusView (const FloatView &y)
 Initialize with float view y.

Value access



FloatVal domain (void) const
 Return domain.
FloatNum min (void) const
 Return minimum of domain.
FloatNum max (void) const
 Return maximum of domain.
FloatNum med (void) const
 Return median of domain (closest representation).
FloatVal val (void) const
 Return assigned value.
FloatNum size (void) const
 Return size of domain (distance between maximum and minimum).

Domain tests



bool zero_in (void) const
 Test whether 0 is contained in domain.
bool in (FloatNum n) const
 Test whether n is contained in domain.
bool in (const FloatVal &n) const
 Test whether n is contained in domain.

Domain update by value



ModEvent lq (Space &home, int n)
 Restrict domain values to be less or equal than n.
ModEvent lq (Space &home, FloatNum n)
 Restrict domain values to be less or equal than n.
ModEvent lq (Space &home, FloatVal n)
 Restrict domain values to be less or equal than n.
ModEvent gq (Space &home, int n)
 Restrict domain values to be greater or equal than n.
ModEvent gq (Space &home, FloatNum n)
 Restrict domain values to be greater or equal than n.
ModEvent gq (Space &home, FloatVal n)
 Restrict domain values to be greater or equal than n.
ModEvent eq (Space &home, int n)
 Restrict domain values to be equal to n.
ModEvent eq (Space &home, FloatNum n)
 Restrict domain values to be equal to n.
ModEvent eq (Space &home, const FloatVal &n)
 Restrict domain values to be equal to n.

Delta information for advisors



FloatNum min (const Delta &d) const
 Return minimum value just pruned.
FloatNum max (const Delta &d) const
 Return maximum value just pruned.

View-dependent propagator support



static ModEventDelta med (ModEvent me)
 Translate modification event me to modification event delta for view.

View comparison



bool operator== (const MinusView &x, const MinusView &y)
 Test whether views x and y are the same.
bool operator!= (const MinusView &x, const MinusView &y)
 Test whether views x and y are not the same.

Detailed Description

Minus float view.

A minus float view $m$ for an float view $x$ provides operations such that $m$ behaves as $-x$.

Definition at line 154 of file view.hpp.


Constructor & Destructor Documentation

Gecode::Float::MinusView::MinusView ( void   )  [inline]

Default constructor.

Definition at line 43 of file minus.hpp.

Gecode::Float::MinusView::MinusView ( const FloatView y  )  [inline, explicit]

Initialize with float view y.

Definition at line 45 of file minus.hpp.


Member Function Documentation

FloatVal Gecode::Float::MinusView::domain ( void   )  const [inline]

Return domain.

Definition at line 53 of file minus.hpp.

FloatNum Gecode::Float::MinusView::min ( void   )  const [inline]

Return minimum of domain.

Definition at line 57 of file minus.hpp.

FloatNum Gecode::Float::MinusView::max ( void   )  const [inline]

Return maximum of domain.

Definition at line 61 of file minus.hpp.

FloatNum Gecode::Float::MinusView::med ( void   )  const [inline]

Return median of domain (closest representation).

Definition at line 65 of file minus.hpp.

FloatVal Gecode::Float::MinusView::val ( void   )  const [inline]

Return assigned value.

Throws an exception of type Float::ValOfUnassignedVar if variable is not yet assigned.

Definition at line 69 of file minus.hpp.

FloatNum Gecode::Float::MinusView::size ( void   )  const [inline]

Return size of domain (distance between maximum and minimum).

Definition at line 74 of file minus.hpp.

bool Gecode::Float::MinusView::zero_in ( void   )  const [inline]

Test whether 0 is contained in domain.

Definition at line 84 of file minus.hpp.

bool Gecode::Float::MinusView::in ( FloatNum  n  )  const [inline]

Test whether n is contained in domain.

Definition at line 88 of file minus.hpp.

bool Gecode::Float::MinusView::in ( const FloatVal n  )  const [inline]

Test whether n is contained in domain.

Definition at line 92 of file minus.hpp.

ModEvent Gecode::Float::MinusView::lq ( Space home,
int  n 
) [inline]

Restrict domain values to be less or equal than n.

Definition at line 102 of file minus.hpp.

ModEvent Gecode::Float::MinusView::lq ( Space home,
FloatNum  n 
) [inline]

Restrict domain values to be less or equal than n.

Definition at line 106 of file minus.hpp.

ModEvent Gecode::Float::MinusView::lq ( Space home,
FloatVal  n 
) [inline]

Restrict domain values to be less or equal than n.

Definition at line 110 of file minus.hpp.

ModEvent Gecode::Float::MinusView::gq ( Space home,
int  n 
) [inline]

Restrict domain values to be greater or equal than n.

Definition at line 115 of file minus.hpp.

ModEvent Gecode::Float::MinusView::gq ( Space home,
FloatNum  n 
) [inline]

Restrict domain values to be greater or equal than n.

Definition at line 119 of file minus.hpp.

ModEvent Gecode::Float::MinusView::gq ( Space home,
FloatVal  n 
) [inline]

Restrict domain values to be greater or equal than n.

Definition at line 123 of file minus.hpp.

ModEvent Gecode::Float::MinusView::eq ( Space home,
int  n 
) [inline]

Restrict domain values to be equal to n.

Definition at line 128 of file minus.hpp.

ModEvent Gecode::Float::MinusView::eq ( Space home,
FloatNum  n 
) [inline]

Restrict domain values to be equal to n.

Definition at line 132 of file minus.hpp.

ModEvent Gecode::Float::MinusView::eq ( Space home,
const FloatVal n 
) [inline]

Restrict domain values to be equal to n.

Definition at line 136 of file minus.hpp.

FloatNum Gecode::Float::MinusView::min ( const Delta d  )  const [inline]

Return minimum value just pruned.

Definition at line 146 of file minus.hpp.

FloatNum Gecode::Float::MinusView::max ( const Delta d  )  const [inline]

Return maximum value just pruned.

Definition at line 150 of file minus.hpp.

ModEventDelta Gecode::Float::MinusView::med ( ModEvent  me  )  [inline, static]

Translate modification event me to modification event delta for view.

Reimplemented from Gecode::DerivedView< FloatView >.

Definition at line 156 of file minus.hpp.


Friends And Related Function Documentation

template<class Char , class Traits >
std::basic_ostream< Char, Traits > & operator<< ( std::basic_ostream< Char, Traits > &  os,
const MinusView x 
) [related]

Print float minus view.

Definition at line 64 of file print.hpp.

bool operator== ( const MinusView x,
const MinusView y 
) [related]

Test whether views x and y are the same.

Definition at line 165 of file minus.hpp.

bool operator!= ( const MinusView x,
const MinusView y 
) [related]

Test whether views x and y are not the same.

Definition at line 169 of file minus.hpp.


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