Elements 6.3.3
A C++ base framework for the Euclid Software.
Loading...
Searching...
No Matches
Elements::Environment::Variable Class Reference

proxy class to overload the assignment More...

#include <Environment.h>

Collaboration diagram for Elements::Environment::Variable:

Public Member Functions

 Variable ()=delete
 Variable (Environment &env, const std::string &index)
 Variable (const Variable &other)
 Variable (Variable &&other)
 ~Variable ()=default
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
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
std::string m_index
 The Name of the variable.

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

References env(), Elements::Environment::Environment(), index(), and Variable().

Referenced by Variable(), and ~Variable().

Here is the call graph for this function:

◆ Variable() [2/4]

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.

Here is the call graph for this function:

◆ Variable() [3/4]

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

Definition at line 49 of file Environment.cpp.

References checkCompatibility(), and m_env.

Here is the call graph for this function:

◆ Variable() [4/4]

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

Definition at line 53 of file Environment.cpp.

References checkCompatibility(), and m_env.

Here is the call graph for this function:

◆ ~Variable()

Elements::Environment::Variable::~Variable ( )
default

References Elements::Environment::Environment(), and Variable().

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 m_env, and m_index.

Referenced by operator+().

◆ checkCompatibility()

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

Definition at line 147 of file Environment.cpp.

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

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

Here is the call graph for this function:

◆ empty()

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

Definition at line 139 of file Environment.cpp.

References value().

Here is the call graph for this function:

◆ env()

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

Here is the call graph for this function:

◆ exists()

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

Definition at line 143 of file Environment.cpp.

References m_env, and m_index.

◆ index()

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

Definition at line 122 of file Environment.cpp.

References m_index.

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

◆ operator std::string()

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

to string converter

Definition at line 135 of file Environment.cpp.

References value().

Here is the call graph for this function:

◆ operator+()

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.

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 checkCompatibility(), and m_env.

Here is the call graph for this function:

◆ operator=() [3/3]

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

Definition at line 65 of file Environment.cpp.

References checkCompatibility(), and m_env.

Here is the call graph for this function:

◆ prepend()

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

◆ set()

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

Definition at line 80 of file Environment.cpp.

References m_env, and m_index.

◆ unSet()

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

Definition at line 87 of file Environment.cpp.

References m_env, and m_index.

◆ value()

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

Member Data Documentation

◆ m_env

std::reference_wrapper<Environment> Elements::Environment::Variable::m_env
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().

◆ m_index

std::string Elements::Environment::Variable::m_index
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().


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