Generated on Tue Apr 18 10:23:27 2017 for Gecode by doxygen 1.6.3

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

Float view for float variables. 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 FloatView &x)
 Print float variable view.

Constructors and initialization



 FloatView (void)
 Default constructor.
 FloatView (const FloatVar &y)
 Initialize from float variable y.
 FloatView (FloatVarImp *y)
 Initialize from float variable 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.

Detailed Description

Float view for float variables.

Definition at line 56 of file view.hpp.


Constructor & Destructor Documentation

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

Default constructor.

Definition at line 47 of file float.hpp.

Gecode::Float::FloatView::FloatView ( const FloatVar y  )  [inline]

Initialize from float variable y.

Definition at line 49 of file float.hpp.

Gecode::Float::FloatView::FloatView ( FloatVarImp y  )  [inline]

Initialize from float variable y.

Definition at line 52 of file float.hpp.


Member Function Documentation

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

Return domain.

Definition at line 60 of file float.hpp.

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

Return minimum of domain.

Definition at line 64 of file float.hpp.

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

Return maximum of domain.

Definition at line 68 of file float.hpp.

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

Return median of domain (closest representation).

Definition at line 72 of file float.hpp.

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

Return assigned value.

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

Definition at line 76 of file float.hpp.

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

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

Definition at line 81 of file float.hpp.

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

Test whether 0 is contained in domain.

Definition at line 91 of file float.hpp.

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

Test whether n is contained in domain.

Definition at line 95 of file float.hpp.

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

Test whether n is contained in domain.

Definition at line 99 of file float.hpp.

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

Restrict domain values to be less or equal than n.

Definition at line 109 of file float.hpp.

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

Restrict domain values to be less or equal than n.

Definition at line 113 of file float.hpp.

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

Restrict domain values to be less or equal than n.

Definition at line 117 of file float.hpp.

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

Restrict domain values to be greater or equal than n.

Definition at line 122 of file float.hpp.

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

Restrict domain values to be greater or equal than n.

Definition at line 126 of file float.hpp.

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

Restrict domain values to be greater or equal than n.

Definition at line 130 of file float.hpp.

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

Restrict domain values to be equal to n.

Definition at line 135 of file float.hpp.

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

Restrict domain values to be equal to n.

Definition at line 139 of file float.hpp.

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

Restrict domain values to be equal to n.

Definition at line 143 of file float.hpp.

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

Return minimum value just pruned.

Definition at line 154 of file float.hpp.

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

Return maximum value just pruned.

Definition at line 158 of file float.hpp.

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

Translate modification event me to modification event delta for view.

Reimplemented from Gecode::VarImpView< FloatVar >.

Definition at line 164 of file float.hpp.


Friends And Related Function Documentation

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

Print float variable view.

Definition at line 62 of file print.hpp.


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