Inter4ql  5.2
Public Member Functions | List of all members
Inter4ql::VariableSpace Class Reference

VariableSpace class for handling all values in interpreter environment. More...

#include <VariableSpace.h>

Public Member Functions

 VariableSpace ()
 constructor
 
 ~VariableSpace ()
 destructor
 
void clear ()
 clears the variable space
 
std::string print ()
 returns string with whole space of variables information More...
 
Valueget_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...
 

Detailed Description

VariableSpace class for handling all values in interpreter environment.

Member Function Documentation

◆ 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
_modulename of a module
_domainname 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
_modulename of a module
_domainname 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
_modulename of a module
_domainname 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
_modulename of a module
_domainname of a domain in the module
_changeddid 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
_modulename of a module
_domainname 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
_vpointer to Value class
_modulename of a module
_domainname 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
_modulename of a module
_domainname 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
_modulename of a module
_domainname 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: