PandA-2024.02
|
Address version functor that returns the name of a variable with "&" in front. More...
#include <var_pp_functor.hpp>
Public Member Functions | |
address_var_pp_functor (const BehavioralHelperConstRef _BH, const CustomSet< unsigned int > vars, const CustomSet< unsigned int > pointer_vars) | |
Constructor. More... | |
~address_var_pp_functor () override=default | |
Destructor. More... | |
std::string | operator() (unsigned int var) const override |
return the name of the variable with a star as a prefix. More... | |
Public Member Functions inherited from var_pp_functor | |
virtual | ~var_pp_functor ()=default |
Destructor. More... | |
Private Attributes | |
const CustomSet< unsigned int > | addr_based_variables |
reference to the set of variable that has to have a star in front when returned by operator() More... | |
const CustomSet< unsigned int > | pointer_based_variables |
reference to the set of variable that has to have a star in front when returned by operator() More... | |
const BehavioralHelperConstRef | BH |
behavioral helper More... | |
Address version functor that returns the name of a variable with "&" in front.
Definition at line 146 of file var_pp_functor.hpp.
address_var_pp_functor::address_var_pp_functor | ( | const BehavioralHelperConstRef | _BH, |
const CustomSet< unsigned int > | vars, | ||
const CustomSet< unsigned int > | pointer_vars | ||
) |
Constructor.
BH | is the behavioral helper. |
vars | is the reference to the set of variables for which a star should be returned along with their name. |
Definition at line 233 of file var_pp_functor.cpp.
|
overridedefault |
Destructor.
|
overridevirtual |
return the name of the variable with a star as a prefix.
var | is the nodeid of the variable. |
pointer_based_variables are the I/O parameters of the function addr_based_variables are the I/O parameters of the called task
Implements var_pp_functor.
Definition at line 239 of file var_pp_functor.cpp.
References addr_based_variables, BH, BehavioralHelper::is_a_struct(), BehavioralHelper::is_an_array(), BehavioralHelper::is_an_union(), pointer_based_variables, and BehavioralHelper::PrintVariable().
Referenced by isolated_var_pp_functor::operator()().
|
private |
reference to the set of variable that has to have a star in front when returned by operator()
Definition at line 168 of file var_pp_functor.hpp.
Referenced by operator()().
|
private |
behavioral helper
Definition at line 174 of file var_pp_functor.hpp.
Referenced by operator()(), and isolated_var_pp_functor::operator()().
|
private |
reference to the set of variable that has to have a star in front when returned by operator()
Definition at line 171 of file var_pp_functor.hpp.
Referenced by operator()().