CbmRoot
LitUtils.h
Go to the documentation of this file.
1
11
#ifndef LITUTILS_H_
12
#define LITUTILS_H_
13
14
#include <sstream>
15
#include <string>
16
17
namespace
lit
{
18
namespace
parallel {
19
30
template
<
class
T>
31
std::string
ToString
(
const
T& value) {
32
std::stringstream ss;
33
ss.precision(5);
34
ss << value;
35
return
ss.str();
36
}
37
38
51
class
DeleteObject
{
52
public
:
53
template
<
typename
T>
54
void
operator()
(
const
T* ptr)
const
{
55
delete
ptr;
56
}
57
};
58
59
}
// namespace parallel
60
}
// namespace lit
61
#endif
/* LITUTILS_H_ */
lit::parallel::DeleteObject::operator()
void operator()(const T *ptr) const
Definition:
LitUtils.h:54
lit::parallel::ToString
std::string ToString(const T &value)
Function converts object into a std::string.
Definition:
LitUtils.h:31
lit::parallel::DeleteObject
Functor class for convenient memory release.
Definition:
LitUtils.h:51
lit
Definition:
LitTrackFinderNNVecElectron.h:19
reco
littrack
parallel
LitUtils.h
Generated on Wed Oct 28 2020 15:11:50 for CbmRoot by
1.8.18