Generated on Fri Mar 20 15:57:14 2015 for Gecode by doxygen 1.6.3

Test::Float::RandomAssignment Class Reference
[General test support]

Generate random selection of assignments. More...

#include <float.hh>

List of all members.

Public Member Functions

 RandomAssignment (int n, const Gecode::FloatVal &d, int a)
 Initialize for a assignments for n variables and values d.
virtual bool operator() (void) const
 Test whether all assignments have been iterated.
virtual void operator++ (void)
 Move to next assignment.
virtual Gecode::FloatVal operator[] (int i) const
 Return value for variable i.
virtual void set (int i, const Gecode::FloatVal &val)
 Set assignment to value val for variable i.
virtual ~RandomAssignment (void)
 Destructor.

Protected Member Functions

Gecode::FloatNum randval (void)

Protected Attributes

Gecode::FloatValvals
 The current values for the variables.
int a
 How many assigments still to be generated Generate new value according to domain.

Detailed Description

Generate random selection of assignments.

Definition at line 148 of file float.hh.


Constructor & Destructor Documentation

Test::Float::RandomAssignment::RandomAssignment ( int  n,
const Gecode::FloatVal d,
int  a 
) [inline]

Initialize for a assignments for n variables and values d.

Definition at line 134 of file float.hpp.

Test::Float::RandomAssignment::~RandomAssignment ( void   )  [inline, virtual]

Destructor.

Definition at line 155 of file float.hpp.


Member Function Documentation

Gecode::FloatNum Test::Float::RandomAssignment::randval ( void   )  [inline, protected]

Definition at line 116 of file float.hpp.

bool Test::Float::RandomAssignment::operator() ( void   )  const [inline, virtual]

Test whether all assignments have been iterated.

Implements Test::Float::Assignment.

Definition at line 141 of file float.hpp.

void Test::Float::RandomAssignment::operator++ ( void   )  [virtual]

Move to next assignment.

Implements Test::Float::Assignment.

Definition at line 93 of file float.cpp.

Gecode::FloatVal Test::Float::RandomAssignment::operator[] ( int  i  )  const [inline, virtual]

Return value for variable i.

Implements Test::Float::Assignment.

Definition at line 145 of file float.hpp.

void Test::Float::RandomAssignment::set ( int  i,
const Gecode::FloatVal val 
) [inline, virtual]

Set assignment to value val for variable i.

Implements Test::Float::Assignment.

Definition at line 150 of file float.hpp.


Member Data Documentation

The current values for the variables.

Definition at line 150 of file float.hh.

How many assigments still to be generated Generate new value according to domain.

Definition at line 151 of file float.hh.


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