ATLAS Offline Software
AmgStringHelpers.h
Go to the documentation of this file.
1 /*
2  Copyright (C) 2002-2017 CERN for the benefit of the ATLAS collaboration
3 */
4 
5 /*
6  * eigen_migration
7  * AmgStringHelpers.h
8  *
9  * Created on: Feb 25, 2014
10  * Author: rbianchi <Riccardo.Maria.Bianchi@cern.ch>
11  *
12  */
13 
14 #ifndef AMGSTRINGHELPERS_H_
15 #define AMGSTRINGHELPERS_H_
16 
18 
19 namespace Amg{
20 
21 
25 template<class T>
26 std::string AsString(const T& m) {
27  std::stringstream tmp;
28  tmp << m; // we just use eigen classes capability to write to std::ostream
29  return tmp.str();
30 }
31 
32 
33 
34 } // end of namespace Amg
35 
36 #endif /* AMGSTRINGHELPERS_H_ */
python.SystemOfUnits.m
int m
Definition: SystemOfUnits.py:91
GeoPrimitives.h
DeMoUpdate.tmp
string tmp
Definition: DeMoUpdate.py:1167
Amg
Definition of ATLAS Math & Geometry primitives (Amg)
Definition: AmgStringHelpers.h:19
Amg::AsString
std::string AsString(const T &m)
write an Amg Eigen object to std::string
Definition: AmgStringHelpers.h:26