5 #include "Interactions.h"
10 ostream
& operator<<(ostream
& output
, const Interactions
& interactions
)
12 for (Interactions::const_iterator interaction
= interactions
.begin();
13 interaction
!= interactions
.end(); interaction
++) {
14 output
<< (interaction
->name
.empty() ? "(no name)" : interaction
->name
)
15 << " [M:" << interaction
->multiplicity
16 << ", E:" << interaction
->energy
18 for (Directions::const_iterator direction
= interaction
->directions
.begin();
19 direction
!= interaction
->directions
.end(); direction
++) {
20 output
<< "(" << direction
->x
<< "/" << direction
->y
<< ") ";