#include <G4EnvironmentUtils.hh>
|
template<typename _Tp > |
void | insert (const std::string &env_id, _Tp val) |
|
const env_map_t & | get () const |
|
Definition at line 57 of file G4EnvironmentUtils.hh.
◆ env_map_t
◆ env_pair_t
◆ string_t
◆ get()
const env_map_t & G4EnvSettings::get |
( |
| ) |
const |
|
inline |
◆ GetInstance()
◆ insert()
template<typename _Tp >
void G4EnvSettings::insert |
( |
const std::string & |
env_id, |
|
|
_Tp |
val |
|
) |
| |
|
inline |
Definition at line 74 of file G4EnvironmentUtils.hh.
75 {
76 std::stringstream ss;
77 ss << val;
78
79
80 static std::mutex _mutex;
81 _mutex.lock();
83 _mutex.unlock();
84 }
std::pair< string_t, string_t > env_pair_t
Referenced by G4GetDataEnv(), and G4GetEnv().
◆ operator<<
std::ostream & operator<< |
( |
std::ostream & |
os, |
|
|
const G4EnvSettings & |
env |
|
) |
| |
|
friend |
Definition at line 88 of file G4EnvironmentUtils.hh.
89 {
90 std::stringstream filler;
91 filler.fill('#');
92 filler << std::setw(90) << "";
93 std::stringstream ss;
94 ss << filler.str() << "\n# Environment settings:\n";
95 for(
const auto& itr : env.
get())
96 {
97 ss << "# " << std::setw(35) << std::right << itr.first << "\t = \t"
98 << std::left << itr.second << "\n";
99 }
100 ss << filler.str();
101 os << ss.str() << std::endl;
102 return os;
103 }
const env_map_t & get() const
The documentation for this class was generated from the following file: