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

# Gecode::Float::Linear::Lin< P, N, pc > Class Template Reference

Base-class for n-ary linear propagators. More...

`#include <linear.hh>`

List of all members.

## Public Member Functions

virtual PropCost cost (const Space &home, const ModEventDelta &med) const
Cost function (defined as low linear).
virtual void reschedule (Space &home)
Schedule function.
virtual size_t dispose (Space &home)
Delete propagator and return its size.

## Protected Member Functions

Lin (Space &home, Lin< P, N, pc > &p)
Constructor for cloning p.
Lin (Home home, ViewArray< P > &x, ViewArray< N > &y, FloatVal c)
Constructor for creation.

## Protected Attributes

ViewArray< P > x
Array of positive views.
ViewArray< N > y
Array of negative views.
FloatVal c
Constant value.

## Related Functions

(Note that these are not member functions.)

template<class View >
void bounds_p (ModEventDelta med, ViewArray< View > &x, FloatVal &c, FloatNum &sl, FloatNum &su)
Compute bounds information for positive views.
template<class View >
void bounds_n (ModEventDelta med, ViewArray< View > &y, FloatVal &c, FloatNum &sl, FloatNum &su)
Compute bounds information for negative views.

## Detailed Description

### template<class P, class N, PropCond pc> class Gecode::Float::Linear::Lin< P, N, pc >

Base-class for n-ary linear propagators.

Positive views are of type P whereas negative views are of type N.

Definition at line 57 of file linear.hh.

## Constructor & Destructor Documentation

template<class P, class N, PropCond pc>
 Gecode::Float::Linear::Lin< P, N, pc >::Lin ( Space & home, Lin< P, N, pc > & p ) ` [inline, protected]`

Constructor for cloning p.

Definition at line 52 of file nary.hpp.

template<class P, class N, PropCond pc>
 Gecode::Float::Linear::Lin< P, N, pc >::Lin ( Home home, ViewArray< P > & x, ViewArray< N > & y, FloatVal c ) ` [inline, protected]`

Constructor for creation.

Definition at line 44 of file nary.hpp.

## Member Function Documentation

template<class P , class N , PropCond pc>
 PropCost Gecode::Float::Linear::Lin< P, N, pc >::cost ( const Space & home, const ModEventDelta & med ) const` [inline, virtual]`

Cost function (defined as low linear).

Implements Gecode::Propagator.

Definition at line 60 of file nary.hpp.

template<class P , class N , PropCond pc>
 void Gecode::Float::Linear::Lin< P, N, pc >::reschedule ( Space & home ) ` [inline, virtual]`

Schedule function.

Implements Gecode::Propagator.

Definition at line 66 of file nary.hpp.

template<class P , class N , PropCond pc>
 size_t Gecode::Float::Linear::Lin< P, N, pc >::dispose ( Space & home ) ` [inline, virtual]`

Delete propagator and return its size.

Reimplemented from Gecode::Actor.

Definition at line 73 of file nary.hpp.

## Friends And Related Function Documentation

template<class View >
 void bounds_p ( ModEventDelta med, ViewArray< View > & x, FloatVal & c, FloatNum & sl, FloatNum & su ) ` [related]`

Compute bounds information for positive views.

template<class View >
 void bounds_n ( ModEventDelta med, ViewArray< View > & y, FloatVal & c, FloatNum & sl, FloatNum & su ) ` [related]`

Compute bounds information for negative views.

## Member Data Documentation

template<class P, class N, PropCond pc>
 ViewArray

Gecode::Float::Linear::Lin< P, N, pc >::x` [protected]`

Array of positive views.

Definition at line 60 of file linear.hh.

template<class P, class N, PropCond pc>
 ViewArray Gecode::Float::Linear::Lin< P, N, pc >::y` [protected]`

Array of negative views.

Definition at line 62 of file linear.hh.

template<class P, class N, PropCond pc>
 FloatVal Gecode::Float::Linear::Lin< P, N, pc >::c` [protected]`

Constant value.

Definition at line 64 of file linear.hh.

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