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

Pointer version functor that returns the name of a variable with a star in front. More...

#include <var_pp_functor.hpp>

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

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

Detailed Description

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.

Constructor & Destructor Documentation

◆ pointer_var_pp_functor()

pointer_var_pp_functor::pointer_var_pp_functor ( const BehavioralHelperConstRef  _BH,
const CustomSet< unsigned int >  vars,
bool  _add_restrict = false 
)

Constructor.

Header include.

Parameters
BHis the behavioral helper.
varsis the reference to the set of variables for which a star should be returned along with their name.
add_restrictcontrols the addition to the parameters declarations of the restrict keyword.

Definition at line 49 of file var_pp_functor.cpp.

◆ ~pointer_var_pp_functor()

pointer_var_pp_functor::~pointer_var_pp_functor ( )
overridedefault

Destructor.

Member Function Documentation

◆ operator()()

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

Field Documentation

◆ add_restrict

bool pointer_var_pp_functor::add_restrict
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()().

◆ BH

const BehavioralHelperConstRef pointer_var_pp_functor::BH
private

behavioral helper

Definition at line 134 of file var_pp_functor.hpp.

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

◆ pointer_based_variables

const CustomSet<unsigned int> pointer_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 131 of file var_pp_functor.hpp.

Referenced by operator()().

◆ std_functor

const std_var_pp_functor pointer_var_pp_functor::std_functor
private

standard functor used for print array variable

Definition at line 137 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:04:00 for PandA-2024.02 by doxygen 1.8.13