StressExtensional Class Reference
[Scripts for stress tests]
Inherits Example.
Detailed Description
Example: Stress extensional propagatorCreates a huge DFA specifying that all values are pairwise distinct and use the DFA for propagation.
Definition at line 49 of file stress-extensional.cc.
Public Types | |
typedef Support::DynamicArray < DFA::Transition > | Transitions |
Type definition as abbreviation. | |
Public Member Functions | |
void | permute (int i_state, int i, int n, int p, Transitions &t, int &n_t, int &n_state) |
Create all states for permutation of symbols. | |
DFA | construct (int n) |
Construct a distinct DFA for n values. | |
StressExtensional (const SizeOptions &opt) | |
The actual problem. | |
StressExtensional (bool share, StressExtensional &s) | |
Constructor for cloning s. | |
virtual Space * | copy (bool share) |
Perform copying during cloning. | |
virtual void | print (std::ostream &os) |
Print solution. | |
Protected Attributes | |
IntVarArray | x |
Variables. |
Member Typedef Documentation
Constructor & Destructor Documentation
StressExtensional::StressExtensional | ( | const SizeOptions & | opt | ) | [inline] |
StressExtensional::StressExtensional | ( | bool | share, | |
StressExtensional & | s | |||
) | [inline] |
Member Function Documentation
void StressExtensional::permute | ( | int | i_state, | |
int | i, | |||
int | n, | |||
int | p, | |||
Transitions & | t, | |||
int & | n_t, | |||
int & | n_state | |||
) | [inline] |
DFA StressExtensional::construct | ( | int | n | ) | [inline] |
virtual Space* StressExtensional::copy | ( | bool | share | ) | [inline, virtual] |
Perform copying during cloning.
Implements Gecode::Space.
Definition at line 112 of file stress-extensional.cc.
virtual void StressExtensional::print | ( | std::ostream & | os | ) | [inline, virtual] |
Member Data Documentation
IntVarArray StressExtensional::x [protected] |
The documentation for this class was generated from the following file: