Elements  5.8
A C++ base framework for the Euclid Software.
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Public Member Functions | Private Member Functions | Private Attributes | List of all members
Elements::Environment::Variable Class Reference

proxy class to overload the assignment More...

#include <Environment.h>

Collaboration diagram for Elements::Environment::Variable:
[legend]

Public Member Functions

 Variable ()=delete
 
 Variable (Environment &env, const std::string &index)
 
 Variable (const Variable &other)
 
 Variable (Variable &&other)
 
Variableoperator= (const Variable &other)
 
Variableoperator= (Variable &&other)
 
Variableoperator= (const std::string &)
 
Variableset (const std::string &)
 
VariableunSet ()
 
Variableappend (const std::string &)
 
Variableoperator+= (const std::string &)
 
Variableprepend (const std::string &)
 
Variable operator+ (const std::string &)
 
const std::stringindex () const
 
Environmentenv () 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...
 

Detailed Description

proxy class to overload the assignment

Definition at line 48 of file Environment.h.

Constructor & Destructor Documentation

Elements::Environment::Variable::Variable ( )
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 50 of file Environment.cpp.

References m_env.

Elements::Environment::Variable::Variable ( Environment::Variable &&  other)

Definition at line 56 of file Environment.cpp.

References std::move().

Here is the call graph for this function:

Member Function Documentation

Environment::Variable & Elements::Environment::Variable::append ( const std::string value)

Definition at line 102 of file Environment.cpp.

References append().

Referenced by append(), and operator+().

Here is the call graph for this function:

void Elements::Environment::Variable::checkCompatibility ( const Variable other)
private

Definition at line 159 of file Environment.cpp.

References m_index, and std::stringstream::str().

Here is the call graph for this function:

bool Elements::Environment::Variable::empty ( ) const

Definition at line 151 of file Environment.cpp.

Environment & Elements::Environment::Variable::env ( ) const

Definition at line 136 of file Environment.cpp.

Referenced by Elements::operator+().

bool Elements::Environment::Variable::exists ( ) const

Definition at line 155 of file Environment.cpp.

const string & Elements::Environment::Variable::index ( ) const

Definition at line 132 of file Environment.cpp.

Referenced by Elements::operator+().

Elements::Environment::Variable::operator std::string ( ) const

to string converter

Definition at line 147 of file Environment.cpp.

Environment::Variable Elements::Environment::Variable::operator+ ( const std::string value)

Definition at line 122 of file Environment.cpp.

References append().

Here is the call graph for this function:

Environment::Variable & Elements::Environment::Variable::operator+= ( const std::string value)

Definition at line 109 of file Environment.cpp.

References Elements::Environment::append().

Here is the call graph for this function:

Environment::Variable & Elements::Environment::Variable::operator= ( const Variable other)

Definition at line 62 of file Environment.cpp.

References m_env.

Environment::Variable & Elements::Environment::Variable::operator= ( Environment::Variable &&  other)

Definition at line 71 of file Environment.cpp.

Environment::Variable & Elements::Environment::Variable::operator= ( const std::string value)

Definition at line 81 of file Environment.cpp.

References Elements::Environment::set().

Here is the call graph for this function:

Environment::Variable & Elements::Environment::Variable::prepend ( const std::string value)

Definition at line 115 of file Environment.cpp.

References prepend().

Referenced by Elements::operator+(), and prepend().

Here is the call graph for this function:

Environment::Variable & Elements::Environment::Variable::set ( const std::string value)

Definition at line 88 of file Environment.cpp.

References set().

Referenced by set().

Here is the call graph for this function:

Environment::Variable & Elements::Environment::Variable::unSet ( )

Definition at line 95 of file Environment.cpp.

References unSet().

Referenced by unSet().

Here is the call graph for this function:

string Elements::Environment::Variable::value ( ) const

Definition at line 141 of file Environment.cpp.

Referenced by Elements::operator<<().

Member Data Documentation

std::reference_wrapper<Environment> Elements::Environment::Variable::m_env
private

a copiable and movable reference

Definition at line 77 of file Environment.h.

Referenced by operator=(), and Variable().

std::string Elements::Environment::Variable::m_index
private

The Name of the variable.

Definition at line 80 of file Environment.h.

Referenced by checkCompatibility().


The documentation for this class was generated from the following files: