Log In | Get Help   
Home My Page Projects Code Snippets Project Openings Mareframe
Summary Activity Forums Tracker Lists Tasks Docs Surveys News SCM Files
[mareframe] View of /trunk/paramin-beta/condition.h
[mareframe] / trunk / paramin-beta / condition.h Repository:
ViewVC logotype

View of /trunk/paramin-beta/condition.h

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1 - (download) (annotate)
Mon Feb 10 17:09:07 2014 UTC (10 years, 3 months ago) by agomez
File size: 830 byte(s)
Initial version based on Gadget 2.2.00
#ifndef condition_h
#define condition_h

#include "linesearch.h"
#include "paramin.h"

class LineSearch;

/**
 * \class Condition
 * \brief class condition is an abstract class containing only pure virtual functions except for the destructor 
*/

class Condition {
public:
  /**
   * \brief default destructor
   */
  virtual ~Condition() {};
  /**
   * \brief Is the search criteria met?
   */
  virtual int computeCondition() = 0;
};

/**
 * \class  LineSeekerCondition
 * \brief class LineSeekerCondition can be used to compute a condition function belonging to class lineSeeker which must return an interger value 0 or 1 
 */

class LineSeekerCondition : public Condition {
public:
  LineSeekerCondition(LineSearch* lin);
  virtual ~LineSeekerCondition() {};
  int computeCondition();
private:
  LineSearch* lines;
};

#endif

root@forge.cesga.es
ViewVC Help
Powered by ViewVC 1.0.0  

Powered By FusionForge