Generated on Mon Aug 25 11:35:51 2008 for Gecode by doxygen 1.5.6

Gecode::Int::Element::Int< ViewA, ViewB > Class Template Reference
[Integer propagators]

#include <element.hh>

Inherits Gecode::Propagator.

List of all members.


Detailed Description

template<class ViewA, class ViewB>
class Gecode::Int::Element::Int< ViewA, ViewB >

Element propagator for array of integers

Requires

Definition at line 70 of file element.hh.


Public Member Functions

virtual Actorcopy (Space *home, bool share)
 Perform copying during cloning.
virtual PropCost cost (ModEventDelta med) const
 Const function (return PC_BINARY_HI).
virtual ExecStatus propagate (Space *home, ModEventDelta med)
 Perform propagation.
virtual Reflection::ActorSpec spec (const Space *home, Reflection::VarMap &m) const
 Specification for this propagator.
virtual size_t allocated (void) const
 Return size of index-value map.
virtual size_t dispose (Space *home)
 Delete propagator and return its size.

Static Public Member Functions

static void post (Space *home, Reflection::VarMap &vars, const Reflection::ActorSpec &spec)
 Post propagator according to specification.
static Support::Symbol ati (void)
 Mangled name of this propagator.
static ExecStatus post (Space *home, IntSharedArray &i, ViewA x0, ViewB x1)
 Post propagator for $i_{x_0}=x_1$.

Protected Member Functions

 Int (Space *home, bool shared, Int &p)
 Constructor for cloning p.
 Int (Space *home, IntSharedArray &i, ViewA x0, ViewB x1)
 Constructor for creation.

Protected Attributes

ViewA x0
 View for index.
ViewB x1
 View for result.
IntSharedArray c
 Shared array of integer values.
IdxValMapivm
 Cache for index-value map.

Constructor & Destructor Documentation

template<class ViewA, class ViewB>
Gecode::Int::Element::Int< ViewA, ViewB >::Int ( Space home,
bool  shared,
Int< ViewA, ViewB > &  p 
) [inline, protected]

Constructor for cloning p.

Definition at line 369 of file int.icc.

template<class ViewA, class ViewB>
Gecode::Int::Element::Int< ViewA, ViewB >::Int ( Space home,
IntSharedArray i,
ViewA  x0,
ViewB  x1 
) [inline, protected]

Constructor for creation.

Definition at line 326 of file int.icc.


Member Function Documentation

template<class ViewA, class ViewB>
Actor * Gecode::Int::Element::Int< ViewA, ViewB >::copy ( Space home,
bool  share 
) [inline, virtual]

Perform copying during cloning.

Implements Gecode::Actor.

Definition at line 378 of file int.icc.

template<class ViewA, class ViewB>
PropCost Gecode::Int::Element::Int< ViewA, ViewB >::cost ( ModEventDelta  med  )  const [inline, virtual]

Const function (return PC_BINARY_HI).

Implements Gecode::Propagator.

Definition at line 384 of file int.icc.

template<class ViewA, class ViewB>
ExecStatus Gecode::Int::Element::Int< ViewA, ViewB >::propagate ( Space home,
ModEventDelta  med 
) [inline, virtual]

Perform propagation.

Implements Gecode::Propagator.

Definition at line 420 of file int.icc.

template<class ViewA, class ViewB>
Reflection::ActorSpec Gecode::Int::Element::Int< ViewA, ViewB >::spec ( const Space home,
Reflection::VarMap m 
) const [inline, virtual]

Specification for this propagator.

Reimplemented from Gecode::Actor.

Definition at line 396 of file int.icc.

template<class ViewA, class ViewB>
void Gecode::Int::Element::Int< ViewA, ViewB >::post ( Space home,
Reflection::VarMap vars,
const Reflection::ActorSpec spec 
) [inline, static]

Post propagator according to specification.

Definition at line 405 of file int.icc.

template<class ViewA, class ViewB>
Support::Symbol Gecode::Int::Element::Int< ViewA, ViewB >::ati ( void   )  [inline, static]

Mangled name of this propagator.

Definition at line 390 of file int.icc.

template<class ViewA, class ViewB>
ExecStatus Gecode::Int::Element::Int< ViewA, ViewB >::post ( Space home,
IntSharedArray i,
ViewA  x0,
ViewB  x1 
) [inline, static]

Post propagator for $i_{x_0}=x_1$.

Definition at line 349 of file int.icc.

template<class ViewA, class ViewB>
size_t Gecode::Int::Element::Int< ViewA, ViewB >::allocated ( void   )  const [inline, virtual]

Return size of index-value map.

Reimplemented from Gecode::Actor.

Definition at line 363 of file int.icc.

template<class ViewA, class ViewB>
size_t Gecode::Int::Element::Int< ViewA, ViewB >::dispose ( Space home  )  [inline, virtual]

Delete propagator and return its size.

Reimplemented from Gecode::Actor.

Definition at line 335 of file int.icc.


Member Data Documentation

template<class ViewA, class ViewB>
ViewA Gecode::Int::Element::Int< ViewA, ViewB >::x0 [protected]

View for index.

Definition at line 73 of file element.hh.

template<class ViewA, class ViewB>
ViewB Gecode::Int::Element::Int< ViewA, ViewB >::x1 [protected]

View for result.

Definition at line 75 of file element.hh.

template<class ViewA, class ViewB>
IntSharedArray Gecode::Int::Element::Int< ViewA, ViewB >::c [protected]

Shared array of integer values.

Definition at line 77 of file element.hh.

template<class ViewA, class ViewB>
IdxValMap* Gecode::Int::Element::Int< ViewA, ViewB >::ivm [protected]

Cache for index-value map.

Definition at line 79 of file element.hh.


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