VariableSpace class for handling all values in interpreter environment.
More...
#include <VariableSpace.h>
|
| VariableSpace () |
| constructor
|
|
| ~VariableSpace () |
| destructor
|
|
void | clear () |
| clears the variable space
|
|
std::string | print () |
| returns string with whole space of variables information More...
|
|
Value * | get_pointer (Value *_v, std::string _module, std::string _domain, bool &_changed) |
| getter for a pointer to a value from variable space (not to create many instances of the same value) More...
|
|
std::map< int, Value * > * | get_integer_space (std::string _module, std::string _domain) |
| getter of a variable type of a distinct type More...
|
|
std::map< double, Value * > * | get_real_space (std::string _module, std::string _domain) |
| getter of a variable type of a distinct type More...
|
|
std::map< std::string, Value * > * | get_string_space (std::string _module, std::string _domain) |
| getter of a variable type of a distinct type More...
|
|
std::map< std::string, Value * > * | get_const_space (std::string _module, std::string _domain) |
| getter of a variable type of a distinct type More...
|
|
std::map< std::string, Value * > * | get_date_space (std::string _module, std::string _domain) |
| getter of a variable type of a distinct type More...
|
|
std::map< std::string, Value * > * | get_datetime_space (std::string _module, std::string _domain) |
| getter of a variable type of a distinct type More...
|
|
std::map< int, Value * > * | get_logic_space (std::string _module, std::string _domain) |
| getter of a variable type of a distinct type More...
|
|
VariableSpace class for handling all values in interpreter environment.
◆ get_const_space()
std::map<std::string, Value *>* Inter4ql::VariableSpace::get_const_space |
( |
std::string |
_module, |
|
|
std::string |
_domain |
|
) |
| |
getter of a variable type of a distinct type
- Parameters
-
_module | name of a module |
_domain | name of a domain in the module |
- Returns
- variable space of type literal
◆ get_date_space()
std::map<std::string, Value *>* Inter4ql::VariableSpace::get_date_space |
( |
std::string |
_module, |
|
|
std::string |
_domain |
|
) |
| |
getter of a variable type of a distinct type
- Parameters
-
_module | name of a module |
_domain | name of a domain in the module |
- Returns
- variable space of type date
◆ get_datetime_space()
std::map<std::string, Value *>* Inter4ql::VariableSpace::get_datetime_space |
( |
std::string |
_module, |
|
|
std::string |
_domain |
|
) |
| |
getter of a variable type of a distinct type
- Parameters
-
_module | name of a module |
_domain | name of a domain in the module |
- Returns
- variable space of type date with time
◆ get_integer_space()
std::map<int, Value *>* Inter4ql::VariableSpace::get_integer_space |
( |
std::string |
_module, |
|
|
std::string |
_domain |
|
) |
| |
getter of a variable type of a distinct type
- Parameters
-
_module | name of a module |
_domain | name of a domain in the module |
_changed | did variable space change by the call |
- Returns
- variable space of type
◆ get_logic_space()
std::map<int, Value *>* Inter4ql::VariableSpace::get_logic_space |
( |
std::string |
_module, |
|
|
std::string |
_domain |
|
) |
| |
getter of a variable type of a distinct type
- Parameters
-
_module | name of a module |
_domain | name of a domain in the module |
- Returns
- variable space of type logic
◆ get_pointer()
Value * Inter4ql::VariableSpace::get_pointer |
( |
Value * |
_v, |
|
|
std::string |
_module, |
|
|
std::string |
_domain, |
|
|
bool & |
_changed |
|
) |
| |
getter for a pointer to a value from variable space (not to create many instances of the same value)
- Parameters
-
_v | pointer to Value class |
_module | name of a module |
_domain | name of a domain in the module |
- Returns
- pointer to a Value
◆ get_real_space()
std::map<double, Value *>* Inter4ql::VariableSpace::get_real_space |
( |
std::string |
_module, |
|
|
std::string |
_domain |
|
) |
| |
getter of a variable type of a distinct type
- Parameters
-
_module | name of a module |
_domain | name of a domain in the module |
- Returns
- variable space of type real
◆ get_string_space()
std::map<std::string, Value *>* Inter4ql::VariableSpace::get_string_space |
( |
std::string |
_module, |
|
|
std::string |
_domain |
|
) |
| |
getter of a variable type of a distinct type
- Parameters
-
_module | name of a module |
_domain | name of a domain in the module |
- Returns
- variable space of type string
◆ print()
string Inter4ql::VariableSpace::print |
( |
| ) |
|
returns string with whole space of variables information
- Returns
- variable space information packed in a std::string
The documentation for this class was generated from the following files:
- /home/lukasz/Desktop/Inter4QL_5_2/Inter4QL_5_2/src/VariableSpace.h
- /home/lukasz/Desktop/Inter4QL_5_2/Inter4QL_5_2/src/VariableSpace.cc