Geant4-11
Data Structures | Namespaces | Typedefs | Functions
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.

Data Structures

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::GetChoice (const EnvChoiceList< Tp > &_choices, const std::string str_var)
 
template<>
bool PTL::GetEnv (const std::string &env_id, bool _default)
 
template<typename Tp >
Tp PTL::GetEnv (const std::string &env_id, const EnvChoiceList< Tp > &_choices, Tp _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, Tp _default=Tp())
 
void PTL::PrintEnv (std::ostream &os=std::cout)