Gecode::VarTypeProcessor< VTI, PC > Class Template Reference
[Programming variables]
Inherits Gecode::VarTypeProcessorBase.
Detailed Description
template<VarTypeId VTI, PropCond PC>
class Gecode::VarTypeProcessor< VTI, PC >
Variable type processor
Base class for variable type processor for variable type index VTI and maximum propagation condition PC.
Definition at line 128 of file core.icc.
Public Member Functions | |
VarTypeProcessor (void) | |
Constructor. | |
void | mec (ModEvent me1, ModEvent me2, ModEvent me3) |
Store combinations of modification events. | |
void | mepc (ModEvent me, PropCond pc) |
Store mapping between modification event and propagation condition. | |
void | enter (void) |
Register variable type processor with kernel. | |
virtual void | process (Space *home, VarBase *x) |
Process modified variables linked from x. | |
virtual void | update (Space *home, VarBase *x) |
Update copied variables linked from x. |
Constructor & Destructor Documentation
template<VarTypeId VTI, PropCond PC>
Gecode::VarTypeProcessor< VTI, PC >::VarTypeProcessor | ( | void | ) | [inline] |
Member Function Documentation
template<VarTypeId VTI, PropCond PC>
void Gecode::VarTypeProcessor< VTI, PC >::mec | ( | ModEvent | me1, | |
ModEvent | me2, | |||
ModEvent | me3 | |||
) | [inline] |
Store combinations of modification events.
The combination of me1 with me2 (and of me2 with me1) is stored to be me3.
Note that the following combinations are predefined
- Combination with ME_GEN_ASSIGNED is ME_GEN_ASSIGNED.
- Combination of an event with itself yields that event.
- Combination with ME_GEN_NONE yields the event itself.
template<VarTypeId VTI, PropCond PC>
void Gecode::VarTypeProcessor< VTI, PC >::mepc | ( | ModEvent | me, | |
PropCond | pc | |||
) | [inline] |
template<VarTypeId VTI, PropCond PC>
void Gecode::VarTypeProcessor< VTI, PC >::enter | ( | void | ) |
template<VarTypeId VTI, PropCond PC>
void Gecode::VarTypeProcessor< VTI, PC >::process | ( | Space * | home, | |
VarBase * | x | |||
) | [virtual] |
template<VarTypeId VTI, PropCond PC>
void Gecode::VarTypeProcessor< VTI, PC >::update | ( | Space * | home, | |
VarBase * | x | |||
) | [virtual] |
The documentation for this class was generated from the following file:
- gecode/kernel/core.icc (Revision: 3269)