Generated on Sun Aug 26 2012 08:43:47 for Gecode by doxygen 1.8.1.1
Partition Class Reference

Example: partition numbers into two groups More...

List of all members.

Public Member Functions

 Partition (const SizeOptions &opt)
 Actual model.
 Partition (bool share, Partition &s)
 Constructor used during cloning s.
virtual Spacecopy (bool share)
 Copying during cloning.
virtual void print (std::ostream &os) const
 Print solution.
- Public Member Functions inherited from Gecode::Driver::ScriptBase< BaseSpace >
 ScriptBase (void)
 Default constructor.
 ScriptBase (bool share, ScriptBase &e)
 Constructor used for cloning.
virtual void compare (const Space &, std::ostream &os) const
 Compare with s.

Protected Attributes

IntVarArray x
 First group of numbers.
IntVarArray y
 Second group of numbers.

Related Functions

(Note that these are not member functions.)

int main (int argc, char *argv[])
 Main-functiona.

Additional Inherited Members

- Static Public Member Functions inherited from Gecode::Driver::ScriptBase< BaseSpace >
template<class Script , template< class > class Engine, class Options >
static void run (const Options &opt)

Detailed Description

Example: partition numbers into two groups

Definition at line 49 of file partition.cpp.


Constructor & Destructor Documentation

Partition::Partition ( const SizeOptions opt)
inline

Actual model.

Definition at line 57 of file partition.cpp.

Partition::Partition ( bool  share,
Partition s 
)
inline

Constructor used during cloning s.

Definition at line 98 of file partition.cpp.


Member Function Documentation

virtual Space* Partition::copy ( bool  share)
inlinevirtual

Copying during cloning.

Definition at line 104 of file partition.cpp.

virtual void Partition::print ( std::ostream &  os) const
inlinevirtual

Print solution.

Reimplemented from Gecode::Driver::ScriptBase< BaseSpace >.

Definition at line 109 of file partition.cpp.


Friends And Related Function Documentation

int main ( int  argc,
char *  argv[] 
)
related

Main-functiona.

Definition at line 134 of file partition.cpp.


Member Data Documentation

IntVarArray Partition::x
protected

First group of numbers.

Definition at line 52 of file partition.cpp.

IntVarArray Partition::y
protected

Second group of numbers.

Definition at line 54 of file partition.cpp.


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