Generated on Fri Mar 20 15:56:46 2015 for Gecode by doxygen 1.6.3

Gecode::MeritActivity< View > Class Template Reference
[Generic merit for branchers based on view and value selection]

Merit class for activity. More...

#include <brancher-merit.hpp>

List of all members.

Public Member Functions

 MeritActivity (Space &home, const VarBranch &vb)
 Constructor for initialization.
 MeritActivity (Space &home, bool shared, MeritActivity &ma)
 Constructor for cloning.
double operator() (const Space &home, View x, int i)
 Return activity as merit for view x at position i.
bool notice (void) const
 Whether dispose must always be called (that is, notice is needed).
void dispose (Space &home)
 Dispose view selection.

Protected Attributes

Activity activity
 Activity information.

Detailed Description

template<class View>
class Gecode::MeritActivity< View >

Merit class for activity.

Definition at line 127 of file brancher-merit.hpp.


Constructor & Destructor Documentation

template<class View >
Gecode::MeritActivity< View >::MeritActivity ( Space home,
const VarBranch vb 
) [inline]

Constructor for initialization.

Definition at line 228 of file brancher-merit.hpp.

template<class View >
Gecode::MeritActivity< View >::MeritActivity ( Space home,
bool  shared,
MeritActivity< View > &  ma 
) [inline]

Constructor for cloning.

Definition at line 232 of file brancher-merit.hpp.


Member Function Documentation

template<class View >
double Gecode::MeritActivity< View >::operator() ( const Space home,
View  x,
int  i 
) [inline]

Return activity as merit for view x at position i.

Definition at line 239 of file brancher-merit.hpp.

template<class View >
bool Gecode::MeritActivity< View >::notice ( void   )  const [inline]

Whether dispose must always be called (that is, notice is needed).

Reimplemented from Gecode::MeritBase< View, double >.

Definition at line 244 of file brancher-merit.hpp.

template<class View >
void Gecode::MeritActivity< View >::dispose ( Space home  )  [inline]

Dispose view selection.

Reimplemented from Gecode::MeritBase< View, double >.

Definition at line 249 of file brancher-merit.hpp.


Member Data Documentation

template<class View >
Activity Gecode::MeritActivity< View >::activity [protected]

Activity information.

Definition at line 130 of file brancher-merit.hpp.


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