deleted SymmetryParser including in cluster_expansion, since the parsing is now done...
[cluster_expansion.git] / Interactions.h
blobd79d4ebfc85a5a43fa4e2300ac66520b9a41fb97
1 #ifndef _INTERACTIONS_H
2 #define _INTERACTIONS_H
4 #include <string>
5 #include <vector>
7 using namespace std;
9 struct Direction {
10 double x;
11 double y;
12 Direction(double x, double y) : x(x), y(y) {};
15 typedef vector<Direction> Directions;
17 struct Interaction {
18 string name;
19 Directions directions;
20 int multiplicity;
21 double energy;
22 Interaction(const string name = "", int multiplicity = 0, double energy = 0.0) :
23 name(name), multiplicity(multiplicity), energy(energy) {};
26 class Interactions : public vector<Interaction> {
27 friend ostream& operator<<(ostream& output, const Interactions&);
31 #endif