Generated on Sat Jun 2 2018 07:17:44 for Gecode by doxygen 1.8.13
Gecode::Int::Extensional::Compact< View > Class Template Reference

Base class for compact table propagator. More...

#include <extensional.hh>

Classes

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

Public Member Functions

size_t dispose (Space &home)
 Delete propagator and return its size. More...
 
- Public Member Functions inherited from Gecode::Propagator
virtual void reschedule (Space &home)=0
 Schedule function. More...
 
virtual ExecStatus propagate (Space &home, const ModEventDelta &med)=0
 Propagation function. More...
 
virtual PropCost cost (const Space &home, const ModEventDelta &med) const =0
 Cost function. More...
 
ModEventDelta modeventdelta (void) const
 Return the modification event delta. More...
 
virtual ExecStatus advise (Space &home, Advisor &a, const Delta &d)
 Advise function. More...
 
virtual void advise (Space &home, Advisor &a)
 Run advisor a to be run on failure in failed space. More...
 
double afc (void) const
 Return the accumlated failure count. More...
 
unsigned int id (void) const
 Return propagator id. More...
 
PropagatorGroup group (void) const
 Return group propagator belongs to. More...
 
void group (PropagatorGroup g)
 Add propagator to group g. More...
 
bool disabled (void) const
 Whether propagator is currently disabled. More...
 
- Public Member Functions inherited from Gecode::Actor
virtual Actorcopy (Space &home)=0
 Create copy. More...
 
virtual ~Actor (void)
 To avoid warnings. More...
 

Protected Types

typedef TupleSet::Range Range
 Range type for supports. More...
 

Protected Member Functions

 Compact (Space &home, Compact &p)
 Constructor for cloning p. More...
 
 Compact (Home home, ViewArray< View > &x, const TupleSet &ts)
 Constructor for posting. More...
 
const Rangerange (CTAdvisor &a, int n)
 Find range for n. More...
 
const BitSetDatasupports (CTAdvisor &a, int n)
 Return supports for value n. More...
 
- Protected Member Functions inherited from Gecode::Propagator
 Propagator (Home home)
 Constructor for posting. More...
 
 Propagator (Space &home, Propagator &p)
 Constructor for cloning p. More...
 
Propagatorfwd (void) const
 Return forwarding pointer during copying. More...
 
Kernel::GPI::Infogpi (void)
 Provide access to global propagator information. More...
 

Protected Attributes

int unassigned
 Number of unassigned views. More...
 
const unsigned int n_words
 Number of words in supports. More...
 
Status status
 Propagator status. More...
 
TupleSet ts
 The tuple set. More...
 
Council< CTAdvisorc
 The advisor council. More...
 

Status management

enum  StatusType { SINGLE = 0, MULTIPLE = 1, NONE = 2, PROPAGATING = 3 }
 Type of status. More...
 

Additional Inherited Members

- Static Public Member Functions inherited from Gecode::Actor
static void * operator new (size_t s)
 Not used. More...
 
static void operator delete (void *p)
 Not used. More...
 
static void * operator new (size_t s, Space &home)
 Allocate memory from space. More...
 
static void operator delete (void *p, Space &home)
 No-op for exceptions. More...
 

Detailed Description

template<class View>
class Gecode::Int::Extensional::Compact< View >

Base class for compact table propagator.

Definition at line 347 of file extensional.hh.

Member Typedef Documentation

◆ Range

template<class View>
typedef TupleSet::Range Gecode::Int::Extensional::Compact< View >::Range
protected

Range type for supports.

Definition at line 350 of file extensional.hh.

Member Enumeration Documentation

◆ StatusType

template<class View>
enum Gecode::Int::Extensional::Compact::StatusType
protected

Type of status.

Enumerator
SINGLE 

A single view has been touched.

MULTIPLE 

Multiple view have been touched.

NONE 

No view has been touched.

PROPAGATING 

The propagator is currently running.

Definition at line 381 of file extensional.hh.

Constructor & Destructor Documentation

◆ Compact() [1/2]

template<class View >
Gecode::Int::Extensional::Compact< View >::Compact ( Space home,
Compact< View > &  p 
)
inlineprotected

Constructor for cloning p.

Definition at line 279 of file compact.hpp.

◆ Compact() [2/2]

template<class View >
Gecode::Int::Extensional::Compact< View >::Compact ( Home  home,
ViewArray< View > &  x,
const TupleSet ts 
)
inlineprotected

Constructor for posting.

Definition at line 287 of file compact.hpp.

Member Function Documentation

◆ range()

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

Find range for n.

Definition at line 149 of file compact.hpp.

◆ supports()

template<class View >
const BitSetData * Gecode::Int::Extensional::Compact< View >::supports ( CTAdvisor a,
int  n 
)
inlineprotected

Return supports for value n.

Definition at line 170 of file compact.hpp.

◆ dispose()

template<class View >
size_t Gecode::Int::Extensional::Compact< View >::dispose ( Space home)
inlinevirtual

Delete propagator and return its size.

Reimplemented from Gecode::Actor.

Reimplemented in Gecode::Int::Extensional::CompactTable< View, Table >.

Definition at line 296 of file compact.hpp.

Member Data Documentation

◆ unassigned

template<class View>
int Gecode::Int::Extensional::Compact< View >::unassigned
protected

Number of unassigned views.

Definition at line 467 of file extensional.hh.

◆ n_words

template<class View>
const unsigned int Gecode::Int::Extensional::Compact< View >::n_words
protected

Number of words in supports.

Definition at line 469 of file extensional.hh.

◆ status

template<class View>
Status Gecode::Int::Extensional::Compact< View >::status
protected

Propagator status.

Definition at line 471 of file extensional.hh.

◆ ts

template<class View>
TupleSet Gecode::Int::Extensional::Compact< View >::ts
protected

The tuple set.

Definition at line 473 of file extensional.hh.

◆ c

template<class View>
Council<CTAdvisor> Gecode::Int::Extensional::Compact< View >::c
protected

The advisor council.

Definition at line 475 of file extensional.hh.


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