Geant4 10.7.0
Toolkit for the simulation of the passage of particles through matter
Loading...
Searching...
No Matches
Utility.hh File Reference
#include "PTL/Types.hh"
#include <chrono>
#include <cstdlib>
#include <iomanip>
#include <iostream>
#include <map>
#include <mutex>
#include <set>
#include <sstream>
#include <string>
#include <tuple>

Go to the source code of this file.

Classes

class  PTL::EnvSettings
 

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)