Elements
6.2
A C++ base framework for the Euclid Software.
|
proxy class to overload the assignment More...
#include <Environment.h>
Public Member Functions | |
Variable ()=delete | |
Variable (Environment &env, const std::string &index) | |
Variable (const Variable &other) | |
Variable (Variable &&other) | |
Variable & | operator= (const Variable &other) |
Variable & | operator= (Variable &&other) |
Variable & | operator= (const std::string &) |
Variable & | set (const std::string &) |
Variable & | unSet () |
Variable & | append (const std::string &) |
Variable & | operator+= (const std::string &) |
Variable & | prepend (const std::string &) |
Variable | operator+ (const std::string &) |
const std::string & | index () const |
Environment & | env () const |
std::string | value () const |
operator std::string () const | |
to string converter More... | |
bool | empty () const |
bool | exists () const |
Private Member Functions | |
void | checkCompatibility (const Variable &) |
Private Attributes | |
std::reference_wrapper< Environment > | m_env |
a copiable and movable reference More... | |
std::string | m_index |
The Name of the variable. More... | |
proxy class to overload the assignment
Definition at line 88 of file Environment.h.
|
delete |
Elements::Environment::Variable::Variable | ( | Environment & | env, |
const std::string & | index | ||
) |
Definition at line 47 of file Environment.cpp.
Elements::Environment::Variable::Variable | ( | const Variable & | other | ) |
Definition at line 49 of file Environment.cpp.
References m_env.
Elements::Environment::Variable::Variable | ( | Environment::Variable && | other | ) |
Definition at line 53 of file Environment.cpp.
References std::move().
Environment::Variable & Elements::Environment::Variable::append | ( | const std::string & | arg_value | ) |
Definition at line 94 of file Environment.cpp.
References append().
Referenced by append(), and operator+().
|
private |
Definition at line 147 of file Environment.cpp.
References m_index, and std::stringstream::str().
bool Elements::Environment::Variable::empty | ( | ) | const |
Definition at line 139 of file Environment.cpp.
Environment & Elements::Environment::Variable::env | ( | ) | const |
Definition at line 126 of file Environment.cpp.
Referenced by Elements::operator+().
bool Elements::Environment::Variable::exists | ( | ) | const |
Definition at line 143 of file Environment.cpp.
const string & Elements::Environment::Variable::index | ( | ) | const |
Definition at line 122 of file Environment.cpp.
Referenced by Elements::operator+().
Elements::Environment::Variable::operator std::string | ( | ) | const |
to string converter
Definition at line 135 of file Environment.cpp.
Environment::Variable Elements::Environment::Variable::operator+ | ( | const std::string & | arg_value | ) |
Definition at line 113 of file Environment.cpp.
References append().
Environment::Variable & Elements::Environment::Variable::operator+= | ( | const std::string & | arg_value | ) |
Definition at line 101 of file Environment.cpp.
References Elements::Environment::append().
Environment::Variable & Elements::Environment::Variable::operator= | ( | const std::string & | arg_value | ) |
Definition at line 73 of file Environment.cpp.
References Elements::Environment::set().
Environment::Variable & Elements::Environment::Variable::operator= | ( | const Variable & | other | ) |
Definition at line 57 of file Environment.cpp.
References m_env.
Environment::Variable & Elements::Environment::Variable::operator= | ( | Environment::Variable && | other | ) |
Definition at line 65 of file Environment.cpp.
Environment::Variable & Elements::Environment::Variable::prepend | ( | const std::string & | arg_value | ) |
Definition at line 106 of file Environment.cpp.
References prepend().
Referenced by Elements::operator+(), and prepend().
Environment::Variable & Elements::Environment::Variable::set | ( | const std::string & | arg_value | ) |
Definition at line 80 of file Environment.cpp.
References set().
Referenced by set().
Environment::Variable & Elements::Environment::Variable::unSet | ( | ) |
Definition at line 87 of file Environment.cpp.
References unSet().
Referenced by unSet().
string Elements::Environment::Variable::value | ( | ) | const |
Definition at line 130 of file Environment.cpp.
Referenced by Elements::operator<<().
|
private |
a copiable and movable reference
Definition at line 116 of file Environment.h.
Referenced by operator=(), and Variable().
|
private |
The Name of the variable.
Definition at line 119 of file Environment.h.
Referenced by checkCompatibility().