| 1 | 
  | 
#ifndef _ABSTRACT_CLASSES_H_ | 
| 2 | 
  | 
#define _ABSTRACT_CLASSES_H_ | 
| 3 | 
  | 
 | 
| 4 | 
+ | 
#include <string> | 
| 5 | 
  | 
#include "Atom.hpp" | 
| 6 | 
  | 
#ifdef IS_MPI | 
| 7 | 
  | 
 | 
| 8 | 
  | 
#include "mpi.h" | 
| 9 | 
  | 
#endif | 
| 10 | 
+ | 
 | 
| 11 | 
+ | 
using namespace std; | 
| 12 | 
+ | 
 | 
| 13 | 
  | 
class Constraint{ | 
| 14 | 
  | 
 | 
| 15 | 
< | 
public:  | 
| 15 | 
> | 
public: | 
| 16 | 
  | 
  Constraint(){} | 
| 17 | 
  | 
  ~Constraint(){} | 
| 18 | 
< | 
   | 
| 18 | 
> | 
 | 
| 19 | 
  | 
  int    get_a()             {return a;} | 
| 20 | 
  | 
  void   set_a(int index)    {a = index;} | 
| 21 | 
  | 
  int    get_b()             {return b;} | 
| 50 | 
  | 
 | 
| 51 | 
  | 
 | 
| 52 | 
  | 
class BaseIntegrator{ | 
| 53 | 
< | 
   | 
| 53 | 
> | 
 | 
| 54 | 
  | 
public: | 
| 55 | 
  | 
  BaseIntegrator(){} | 
| 56 | 
  | 
  virtual ~BaseIntegrator(){} | 
| 57 | 
< | 
   | 
| 57 | 
> | 
 | 
| 58 | 
  | 
  virtual void integrate( void ) = 0; | 
| 59 | 
< | 
  virtual double  getConservedQuantity(void) = 0;   | 
| 59 | 
> | 
  virtual double  getConservedQuantity(void) = 0; | 
| 60 | 
> | 
  virtual string getAdditionalParameters(void) = 0; | 
| 61 | 
  | 
}; | 
| 57 | 
– | 
/* | 
| 58 | 
– | 
template<typename T> class AbstractTemplateIntegrator : public T | 
| 59 | 
– | 
{ | 
| 60 | 
– | 
//  public: | 
| 61 | 
– | 
//    AbstractTemplateIntegrator() {} | 
| 62 | 
– | 
//    virtual ~AbstractTemplateIntegrator() {} | 
| 63 | 
– | 
     | 
| 64 | 
– | 
//    virtual void integrate(void) {} | 
| 65 | 
– | 
}; | 
| 66 | 
– | 
 | 
| 67 | 
– | 
typedef AbstractTemplateIntegrator<BaseIntegrator> TemplateIntegrator;  | 
| 68 | 
– | 
*/ | 
| 62 | 
  | 
#endif |