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

#include <type_casting.hpp>

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

Public Member Functions

 type_casting (TreeNodeConstSet &_types)
 default constructor More...
 
void operator() (const mem_ref *obj, unsigned int &mask) override
 Header include. More...
 
void operator() (const indirect_ref *obj, unsigned int &mask) override
 
- Public Member Functions inherited from object_visitor
virtual ~object_visitor ()
 destructor More...
 
 BOOST_PP_SEQ_FOR_EACH (OPERATOR_MACRO, BOOST_PP_EMPTY, VISITED_OBJ_SEQ1)
 virtual template object functor More...
 
 BOOST_PP_SEQ_FOR_EACH (OPERATOR_MACRO, BOOST_PP_EMPTY, VISITED_OBJ_SEQ2)
 

Private Attributes

TreeNodeConstSettypes
 tree_node visitors More...
 
CustomUnorderedSet< unsigned int > visited
 already visited More...
 

Detailed Description

Definition at line 90 of file type_casting.hpp.

Constructor & Destructor Documentation

◆ type_casting()

type_casting::type_casting ( TreeNodeConstSet _types)
inlineexplicit

default constructor

Definition at line 93 of file type_casting.hpp.

References object_visitor::BOOST_PP_SEQ_FOR_EACH(), LOCAL_OBJ_NOT_SPECIALIZED_SEQ, OBJ_SPECIALIZED_SEQ, operator()(), OPERATOR_MACRO_DECLO, and OPERATOR_MACROO.

Here is the call graph for this function:

Member Function Documentation

◆ operator()() [1/2]

void type_casting::operator() ( const mem_ref *  obj,
unsigned int &  mask 
)
override

Header include.

Tree include

Definition at line 54 of file type_casting.cpp.

References NO_VISIT, types, and visited.

Referenced by operator()(), and type_casting().

Here is the caller graph for this function:

◆ operator()() [2/2]

void type_casting::operator() ( const indirect_ref *  obj,
unsigned int &  mask 
)
override

Definition at line 67 of file type_casting.cpp.

References tree_helper::CGetType(), tree_node::get_kind(), tree_node::index, NO_VISIT, unary_expr::op, operator()(), expr_node::type, types, and visited.

Here is the call graph for this function:

Field Documentation

◆ types

TreeNodeConstSet& type_casting::types
private

tree_node visitors

set of types used in type casting

Definition at line 106 of file type_casting.hpp.

Referenced by operator()().

◆ visited

CustomUnorderedSet<unsigned int> type_casting::visited
private

already visited

Definition at line 109 of file type_casting.hpp.

Referenced by operator()().


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

Generated on Mon Feb 12 2024 13:04:09 for PandA-2024.02 by doxygen 1.8.13