Elements 6.3.3
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 ()=default | |
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 | |
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 | |
std::string | m_index |
The Name of the variable. |
proxy class to overload the assignment
Definition at line 88 of file Environment.h.
|
delete |
References env(), Elements::Environment::Environment(), index(), and Variable().
Referenced by Variable(), and ~Variable().
Elements::Environment::Variable::Variable | ( | Environment & | env, |
const std::string & | index ) |
Definition at line 47 of file Environment.cpp.
References Elements::Environment::Environment(), m_env, and m_index.
Elements::Environment::Variable::Variable | ( | const Variable & | other | ) |
Definition at line 49 of file Environment.cpp.
References checkCompatibility(), and m_env.
Elements::Environment::Variable::Variable | ( | Environment::Variable && | other | ) |
Definition at line 53 of file Environment.cpp.
References checkCompatibility(), and m_env.
|
default |
References Elements::Environment::Environment(), and Variable().
Environment::Variable & Elements::Environment::Variable::append | ( | const std::string & | arg_value | ) |
Definition at line 94 of file Environment.cpp.
References m_env, and m_index.
Referenced by operator+().
|
private |
Definition at line 147 of file Environment.cpp.
References endl(), m_index, and std::stringstream::str().
Referenced by operator=(), operator=(), Variable(), and Variable().
bool Elements::Environment::Variable::empty | ( | ) | const |
Definition at line 139 of file Environment.cpp.
References value().
Environment & Elements::Environment::Variable::env | ( | ) | const |
Definition at line 126 of file Environment.cpp.
References Elements::Environment::Environment(), and m_env.
Referenced by Elements::operator+(), and Variable().
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.
References m_index.
Referenced by Elements::operator+(), and Variable().
Elements::Environment::Variable::operator std::string | ( | ) | const |
to string converter
Definition at line 135 of file Environment.cpp.
References value().
Environment::Variable Elements::Environment::Variable::operator+ | ( | const std::string & | arg_value | ) |
Definition at line 113 of file Environment.cpp.
References append(), m_env, and m_index.
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 checkCompatibility(), and m_env.
Environment::Variable & Elements::Environment::Variable::operator= | ( | Environment::Variable && | other | ) |
Definition at line 65 of file Environment.cpp.
References checkCompatibility(), and m_env.
Environment::Variable & Elements::Environment::Variable::prepend | ( | const std::string & | arg_value | ) |
Definition at line 106 of file Environment.cpp.
References m_env, and m_index.
Referenced by Elements::operator+().
Environment::Variable & Elements::Environment::Variable::set | ( | const std::string & | arg_value | ) |
Definition at line 80 of file Environment.cpp.
Environment::Variable & Elements::Environment::Variable::unSet | ( | ) |
Definition at line 87 of file Environment.cpp.
string Elements::Environment::Variable::value | ( | ) | const |
Definition at line 130 of file Environment.cpp.
References m_env, and m_index.
Referenced by empty(), operator std::string(), and Elements::operator<<().
|
private |
a copiable and movable reference
Definition at line 117 of file Environment.h.
Referenced by append(), env(), exists(), operator+(), operator=(), operator=(), prepend(), set(), unSet(), value(), Variable(), Variable(), and Variable().
|
private |
The Name of the variable.
Definition at line 120 of file Environment.h.
Referenced by append(), checkCompatibility(), exists(), index(), operator+(), prepend(), set(), unSet(), value(), and Variable().