Generated on Sun Feb 17 15:25:23 2019 for Gecode by doxygen 1.6.3

Gecode::Int::Extensional::Compact< View, pos > Class Template Reference

Base class for compact table propagator. More...

#include <extensional.hh>

List of all members.

Classes

class  CTAdvisor
 Advisor for updating current table. More...
class  LostSupports
 Iterator over lost supports. More...
class  ValidSupports
 Iterator over valid supports. More...

Public Member Functions

virtual PropCost cost (const Space &home, const ModEventDelta &med) const
 Cost function.
size_t dispose (Space &home)
 Delete propagator and return its size.

Protected Types

typedef TupleSet::Range Range
 Range type for supports.

Protected Member Functions

 Compact (Space &home, Compact &p)
 Constructor for cloning p.
 Compact (Home home, const TupleSet &ts)
 Constructor for posting.
template<class Table >
void setup (Space &home, Table &table, ViewArray< View > &x)
 Setup the actual table.
template<class Table >
bool full (const Table &table) const
 Check whether the table covers the whole Cartedion product.
const Rangerange (CTAdvisor &a, int n)
 Find range for n.
const BitSetDatasupports (CTAdvisor &a, int n)
 Return supports for value n.

Protected Attributes

const unsigned int n_words
 Number of words in supports.
TupleSet ts
 The tuple set.
Council< CTAdvisorc
 The advisor council.

Testing the number of unassigned variables



bool all (void) const
 Whether all variables are assigned.
bool atmostone (void) const
 Whether at most one variable is unassigned.

Detailed Description

template<class View, bool pos>
class Gecode::Int::Extensional::Compact< View, pos >

Base class for compact table propagator.

Definition at line 362 of file extensional.hh.


Member Typedef Documentation


Constructor & Destructor Documentation

template<class View , bool pos>
Gecode::Int::Extensional::Compact< View, pos >::Compact ( Space home,
Compact< View, pos > &  p 
) [inline, protected]

Constructor for cloning p.

Definition at line 335 of file compact.hpp.

template<class View , bool pos>
Gecode::Int::Extensional::Compact< View, pos >::Compact ( Home  home,
const TupleSet ts 
) [inline, protected]

Constructor for posting.

Definition at line 342 of file compact.hpp.


Member Function Documentation

template<class View , bool pos>
bool Gecode::Int::Extensional::Compact< View, pos >::all ( void   )  const [inline, protected]

Whether all variables are assigned.

Definition at line 320 of file compact.hpp.

template<class View , bool pos>
bool Gecode::Int::Extensional::Compact< View, pos >::atmostone ( void   )  const [inline, protected]

Whether at most one variable is unassigned.

Definition at line 326 of file compact.hpp.

template<class View, bool pos>
template<class Table >
void Gecode::Int::Extensional::Compact< View, pos >::setup ( Space home,
Table &  table,
ViewArray< View > &  x 
) [inline, protected]

Setup the actual table.

Definition at line 350 of file compact.hpp.

template<class View , bool pos>
template<class Table >
bool Gecode::Int::Extensional::Compact< View, pos >::full ( const Table &  table  )  const [inline, protected]

Check whether the table covers the whole Cartedion product.

Definition at line 379 of file compact.hpp.

template<class View , bool pos>
const Compact< View, pos >::Range * Gecode::Int::Extensional::Compact< View, pos >::range ( CTAdvisor a,
int  n 
) [inline, protected]

Find range for n.

Definition at line 116 of file compact.hpp.

template<class View , bool pos>
const BitSetData * Gecode::Int::Extensional::Compact< View, pos >::supports ( CTAdvisor a,
int  n 
) [inline, protected]

Return supports for value n.

Definition at line 148 of file compact.hpp.

template<class View , bool pos>
PropCost Gecode::Int::Extensional::Compact< View, pos >::cost ( const Space home,
const ModEventDelta med 
) const [inline, virtual]

Cost function.

Implements Gecode::Propagator.

Definition at line 391 of file compact.hpp.

template<class View , bool pos>
size_t Gecode::Int::Extensional::Compact< View, pos >::dispose ( Space home  )  [inline, virtual]

Member Data Documentation

template<class View, bool pos>
const unsigned int Gecode::Int::Extensional::Compact< View, pos >::n_words [protected]

Number of words in supports.

Definition at line 465 of file extensional.hh.

template<class View, bool pos>
TupleSet Gecode::Int::Extensional::Compact< View, pos >::ts [protected]

The tuple set.

Definition at line 467 of file extensional.hh.

template<class View, bool pos>
Council<CTAdvisor> Gecode::Int::Extensional::Compact< View, pos >::c [protected]

The advisor council.

Definition at line 469 of file extensional.hh.


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