|
proxygen
|
#include <EnvUtil.h>
Public Types | |
| using | EnvType = std::unordered_map< std::string, std::string > |
Public Member Functions | |
| EnvironmentState (EnvType const &env) | |
| EnvironmentState (EnvType &&env) | |
| EnvType const & | operator* () const |
| EnvType const * | operator-> () const |
| EnvType & | operator* () |
| EnvType * | operator-> () |
| void | setAsCurrentEnvironment () |
| std::vector< std::string > | toVector () const |
| std::unique_ptr< char *, void(*)(char **)> | toPointerArray () const |
Static Public Member Functions | |
| static EnvironmentState | fromCurrentEnvironment () |
| static EnvironmentState | empty () |
Private Member Functions | |
| EnvironmentState () | |
Private Attributes | |
| EnvType | env_ |
| using folly::experimental::EnvironmentState::EnvType = std::unordered_map<std::string, std::string> |
|
inlineexplicit |
|
inlineexplicit |
|
inlineprivate |
|
inlinestatic |
|
static |
Definition at line 26 of file EnvUtil.cpp.
References folly::data(), gmock_leak_test::environ, folly::Range< Iter >::find(), folly::gen::move, folly::Range< Iter >::npos, string, folly::Range< Iter >::subpiece(), folly::Range< Iter >::toString(), and folly::value().
|
inline |
|
inline |
|
inline |
|
inline |
Definition at line 64 of file EnvUtil.h.
References env_, setAsCurrentEnvironment(), toPointerArray(), and toVector().
| void EnvironmentState::setAsCurrentEnvironment | ( | ) |
Definition at line 47 of file EnvUtil.cpp.
References clearenv(), and env_.
Referenced by operator->().
| std::unique_ptr< char *, void(*)(char **)> EnvironmentState::toPointerArray | ( | ) | const |
Definition at line 62 of file EnvUtil.cpp.
References env_, ptr, string, and folly::value().
Referenced by operator->().
| std::vector< std::string > EnvironmentState::toVector | ( | ) | const |
|
private |
Definition at line 88 of file EnvUtil.h.
Referenced by operator*(), operator->(), setAsCurrentEnvironment(), toPointerArray(), and toVector().