Generated on Tue Apr 18 10:23:34 2017 for Gecode by doxygen 1.6.3

Gecode::Gist::VarComparator< S > Class Template Reference

A simple comparator. More...

#include <gist.hh>

List of all members.

Public Member Functions

 VarComparator (std::string name)
 Constructor.
virtual void compare (const Space &s0, const Space &s1)
 Compare s0 to s1.
virtual std::string name (void)
 Return name.
virtual void finalize (void)
 Finalize when Gist exits.

Detailed Description

template<class S>
class Gecode::Gist::VarComparator< S >

A simple comparator.

This class serves two purposes. First, it provides static methods that compare two variables or two arrays of variables and return a string representation of the differences. Second, it implements a Comparator that uses the compare method of the script to output the differences between two spaces.

Definition at line 215 of file gist.hh.


Constructor & Destructor Documentation

template<class S >
Gecode::Gist::VarComparator< S >::VarComparator ( std::string  name  )  [inline]

Constructor.

Definition at line 41 of file gist.hpp.


Member Function Documentation

template<class S >
void Gecode::Gist::VarComparator< S >::compare ( const Space s0,
const Space s1 
) [inline, virtual]

Compare s0 to s1.

Implements Gecode::Gist::Comparator.

Reimplemented in Gecode::FlatZinc::FZPrintingComparator< S >.

Definition at line 46 of file gist.hpp.

template<class S >
std::string Gecode::Gist::VarComparator< S >::name ( void   )  [inline, virtual]

Return name.

Reimplemented from Gecode::Gist::Comparator.

Definition at line 59 of file gist.hpp.

template<class S >
void Gecode::Gist::VarComparator< S >::finalize ( void   )  [inline, virtual]

Finalize when Gist exits.

Reimplemented from Gecode::Gist::Comparator.

Definition at line 65 of file gist.hpp.


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