Elements  6.2
A C++ base framework for the Euclid Software.
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:
Collaboration graph
[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< Environmentm_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 88 of file Environment.h.

Constructor & Destructor Documentation

◆ Variable() [1/4]

Elements::Environment::Variable::Variable ( )
delete

◆ Variable() [2/4]

Elements::Environment::Variable::Variable ( Environment env,
const std::string index 
)

Definition at line 47 of file Environment.cpp.

◆ Variable() [3/4]

Elements::Environment::Variable::Variable ( const Variable other)

Definition at line 49 of file Environment.cpp.

References m_env.

◆ Variable() [4/4]

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

Definition at line 53 of file Environment.cpp.

References std::move().

Here is the call graph for this function:

Member Function Documentation

◆ append()

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+().

Here is the call graph for this function:

◆ checkCompatibility()

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

Definition at line 147 of file Environment.cpp.

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

Here is the call graph for this function:

◆ empty()

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

Definition at line 139 of file Environment.cpp.

◆ env()

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

Definition at line 126 of file Environment.cpp.

Referenced by Elements::operator+().

◆ exists()

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

Definition at line 143 of file Environment.cpp.

◆ index()

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

Definition at line 122 of file Environment.cpp.

Referenced by Elements::operator+().

◆ operator std::string()

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

to string converter

Definition at line 135 of file Environment.cpp.

◆ operator+()

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

Definition at line 113 of file Environment.cpp.

References append().

Here is the call graph for this function:

◆ operator+=()

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

Definition at line 101 of file Environment.cpp.

References Elements::Environment::append().

Here is the call graph for this function:

◆ operator=() [1/3]

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

Definition at line 73 of file Environment.cpp.

References Elements::Environment::set().

Here is the call graph for this function:

◆ operator=() [2/3]

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

Definition at line 57 of file Environment.cpp.

References m_env.

◆ operator=() [3/3]

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

Definition at line 65 of file Environment.cpp.

◆ prepend()

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().

Here is the call graph for this function:

◆ set()

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

Definition at line 80 of file Environment.cpp.

References set().

Referenced by set().

Here is the call graph for this function:

◆ unSet()

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

Definition at line 87 of file Environment.cpp.

References unSet().

Referenced by unSet().

Here is the call graph for this function:

◆ value()

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

Definition at line 130 of file Environment.cpp.

Referenced by Elements::operator<<().

Member Data Documentation

◆ m_env

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

a copiable and movable reference

Definition at line 116 of file Environment.h.

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

◆ m_index

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

The Name of the variable.

Definition at line 119 of file Environment.h.

Referenced by checkCompatibility().


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