Version: SMASH-3.1
threevector.cc
Go to the documentation of this file.
1 /*
2  *
3  * Copyright (c) 2014-2015,2017-2018
4  * SMASH Team
5  *
6  * GNU General Public License (GPLv3 or later)
7  *
8  */
9 
10 #include "smash/threevector.h"
11 
12 #include "smash/iomanipulators.h"
13 
14 namespace smash {
15 
16 std::ostream &operator<<(std::ostream &out, const ThreeVector &v) {
17  out.put('(');
18  out.fill(' ');
19  for (auto x : v) {
20  out << field<8> << x;
21  }
22  return out << ')';
23 }
24 
25 } // namespace smash
The ThreeVector class represents a physical three-vector with the components .
Definition: threevector.h:31
std::ostream & operator<<(std::ostream &out, const ActionPtr &action)
Convenience: dereferences the ActionPtr to Action.
Definition: action.h:547
Definition: action.h:24