Geant4 11.2.2
Toolkit for the simulation of the passage of particles through matter
Loading...
Searching...
No Matches
Utility.hh File Reference
#include <cctype>
#include <cstdlib>
#include <functional>
#include <iomanip>
#include <iostream>
#include <map>
#include <mutex>
#include <set>
#include <sstream>
#include <string>
#include <tuple>
#include <utility>

Go to the source code of this file.

Classes

class  PTL::EnvSettings
 
struct  PTL::ScopeDestructor
 

Namespaces

namespace  PTL
 

Typedefs

template<typename Tp >
using PTL::EnvChoice = std::tuple<Tp, std::string, std::string>
 
template<typename Tp >
using PTL::EnvChoiceList = std::set<EnvChoice<Tp>>
 

Functions

template<typename... Args>
void PTL::ConsumeParameters (Args &&...)
 
template<typename Tp >
Tp PTL::GetEnv (const std::string &env_id, Tp _default=Tp())
 
template<>
bool PTL::GetEnv (const std::string &env_id, bool _default)
 
template<typename Tp >
Tp PTL::GetEnv (const std::string &env_id, Tp _default, const std::string &msg)
 
template<typename Tp >
Tp PTL::GetEnv (const std::string &env_id, const EnvChoiceList< Tp > &_choices, Tp _default)
 
template<typename Tp >
Tp PTL::GetChoice (const EnvChoiceList< Tp > &_choices, const std::string &str_var)
 
void PTL::PrintEnv (std::ostream &os=std::cout)