Teuchos Package Browser (Single Doxygen Collection)  Version of the Day
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
Namespaces | Enumerations | Functions
Teuchos_EnvVariables.cpp File Reference
#include "Teuchos_EnvVariables.hpp"
#include <stddef.h>
#include <string>
#include <cstdlib>
#include <map>
#include <sstream>
#include <stdexcept>
#include <vector>
#include "Teuchos_StrUtils.hpp"
#include "Teuchos_TestForException.hpp"
Include dependency graph for Teuchos_EnvVariables.cpp:

Go to the source code of this file.

Namespaces

 Teuchos
 

Enumerations

enum  EnvironmentVariableState
 

Functions

template<typename T >
Teuchos::getEnvironmentVariable (const std::string_view environmentVariableName, const T defaultValue)
 
template<>
bool Teuchos::getEnvironmentVariable< bool > (const std::string_view environmentVariableName, const bool defaultValue)
 
template<>
size_t Teuchos::getEnvironmentVariable< size_t > (const std::string_view environmentVariableName, const size_t defaultValue)
 
bool Teuchos::idempotentlyGetNamedEnvironmentVariableAsBool (const char name[], bool &initialized, const char environmentVariableName[], const bool defaultValue)
 
template<typename T >
Teuchos::idempotentlyGetEnvironmentVariable (T &value, bool &initialized, const std::string_view environmentVariableName, const T defaultValue)
 Read a variable from the environment. Example usage: More...
 
template std::string Teuchos::idempotentlyGetEnvironmentVariable< std::string > (std::string &, bool &, const std::string_view, const std::string)
 
template int Teuchos::idempotentlyGetEnvironmentVariable< int > (int &, bool &, const std::string_view, const int)
 
template unsigned long Teuchos::idempotentlyGetEnvironmentVariable< unsigned long > (unsigned long &, bool &, const std::string_view, const unsigned long)
 
template bool Teuchos::idempotentlyGetEnvironmentVariable< bool > (bool &, bool &, const std::string_view, const bool)
 
template unsigned long long Teuchos::idempotentlyGetEnvironmentVariable< unsigned long long > (unsigned long long &, bool &, const std::string_view, const unsigned long long)