PandA-2024.02
Public Member Functions | Private Attributes
address_var_pp_functor Struct Reference

Address version functor that returns the name of a variable with "&" in front. More...

#include <var_pp_functor.hpp>

Inheritance diagram for address_var_pp_functor:
Inheritance graph
[legend]
Collaboration diagram for address_var_pp_functor:
Collaboration graph
[legend]

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

Detailed Description

Address version functor that returns the name of a variable with "&" in front.

Definition at line 146 of file var_pp_functor.hpp.

Constructor & Destructor Documentation

◆ address_var_pp_functor()

address_var_pp_functor::address_var_pp_functor ( const BehavioralHelperConstRef  _BH,
const CustomSet< unsigned int >  vars,
const CustomSet< unsigned int >  pointer_vars 
)

Constructor.

Parameters
BHis the behavioral helper.
varsis 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.

◆ ~address_var_pp_functor()

address_var_pp_functor::~address_var_pp_functor ( )
overridedefault

Destructor.

Member Function Documentation

◆ operator()()

std::string address_var_pp_functor::operator() ( unsigned int  var) const
overridevirtual

return the name of the variable with a star as a prefix.

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

Here is the call graph for this function:
Here is the caller graph for this function:

Field Documentation

◆ addr_based_variables

const CustomSet<unsigned int> address_var_pp_functor::addr_based_variables
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()().

◆ BH

const BehavioralHelperConstRef address_var_pp_functor::BH
private

behavioral helper

Definition at line 174 of file var_pp_functor.hpp.

Referenced by operator()(), and isolated_var_pp_functor::operator()().

◆ pointer_based_variables

const CustomSet<unsigned int> address_var_pp_functor::pointer_based_variables
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()().


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

Generated on Mon Feb 12 2024 13:03:43 for PandA-2024.02 by doxygen 1.8.13