PandA-2024.02
|
Pointer version functor that returns the name of a variable with a star in front. More...
#include <var_pp_functor.hpp>
Public Member Functions | |
pointer_var_pp_functor (const BehavioralHelperConstRef _BH, const CustomSet< unsigned int > vars, bool _add_restrict=false) | |
Constructor. More... | |
~pointer_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 > | 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... | |
const std_var_pp_functor | std_functor |
standard functor used for print array variable More... | |
bool | add_restrict |
it controls the addition to the parameters declarations of the restrict keyword. More... | |
Pointer version functor that returns the name of a variable with a star in front.
Definition at line 107 of file var_pp_functor.hpp.
pointer_var_pp_functor::pointer_var_pp_functor | ( | const BehavioralHelperConstRef | _BH, |
const CustomSet< unsigned int > | vars, | ||
bool | _add_restrict = false |
||
) |
Constructor.
Header include.
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. |
add_restrict | controls the addition to the parameters declarations of the restrict keyword. |
Definition at line 49 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. |
Implements var_pp_functor.
Definition at line 155 of file var_pp_functor.cpp.
References add_restrict, array, BH, BehavioralHelper::get_array_ref_array(), BehavioralHelper::get_array_ref_index(), BehavioralHelper::get_component_ref_field(), BehavioralHelper::get_component_ref_record(), BehavioralHelper::get_indirect_ref_var(), BehavioralHelper::get_operand_from_unary_expr(), BehavioralHelper::GetVarFromSsa(), index, BehavioralHelper::is_a_component_ref(), BehavioralHelper::is_a_imagpart_expr(), BehavioralHelper::is_a_realpart_expr(), BehavioralHelper::is_a_struct(), BehavioralHelper::is_an_addr_expr(), BehavioralHelper::is_an_array(), BehavioralHelper::is_an_array_ref(), BehavioralHelper::is_an_indirect_ref(), BehavioralHelper::is_an_union(), BehavioralHelper::IsDefaultSsaName(), pointer_based_variables, BehavioralHelper::PrintVariable(), and std_functor.
Referenced by std_var_pp_functor::operator()().
|
private |
it controls the addition to the parameters declarations of the restrict keyword.
Definition at line 140 of file var_pp_functor.hpp.
Referenced by operator()().
|
private |
behavioral helper
Definition at line 134 of file var_pp_functor.hpp.
Referenced by std_var_pp_functor::operator()(), and operator()().
|
private |
reference to the set of variable that has to have a star in front when returned by operator()
Definition at line 131 of file var_pp_functor.hpp.
Referenced by operator()().
|
private |
standard functor used for print array variable
Definition at line 137 of file var_pp_functor.hpp.
Referenced by operator()().