repo.or.cz
/
cluster_expansion.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
moved checkInteractions from InteractionsParser to Lattice
[cluster_expansion.git]
/
Interactions.h
blob
49d8a8eb15ff7f46d0f970abe51e9ce1cbd1ecac
1
#ifndef _INTERACTIONS_H
2
#define _INTERACTIONS_H
3
4
#include <string>
5
#include <vector>
6
7
using namespace
std
;
8
9
struct
Direction
{
10
double
x
;
11
double
y
;
12
Direction
(
double
x
,
double
y
) :
x
(
x
),
y
(
y
) {};
13
};
14
15
typedef
vector
<
Direction
>
Directions
;
16
17
struct
Interaction
{
18
string name
;
19
Directions directions
;
20
int
multiplicity
;
21
double
energy
;
22
};
23
24
class
Interactions
:
public
vector
<
Interaction
> {
25
};
26
27
#endif