PandA-2024.02
|
object visitor template. More...
#include <visitor.hpp>
Public Member Functions | |
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) | |
object visitor template.
Specializing this class is possible to traverse a complex set of objects.
Definition at line 106 of file visitor.hpp.
|
inlinevirtual |
destructor
Definition at line 110 of file visitor.hpp.
References BOOST_PP_SEQ_FOR_EACH(), OPERATOR_MACRO, VISITED_OBJ_SEQ1, and VISITED_OBJ_SEQ2.
object_visitor::BOOST_PP_SEQ_FOR_EACH | ( | OPERATOR_MACRO | , |
BOOST_PP_EMPTY | , | ||
VISITED_OBJ_SEQ1 | |||
) |
virtual template object functor
obj | is the object visited |
mask | control the visit of the object members. the next macro will define a set of virtual function starting from VISITED_OBJ_SEQ1 VISITED_OBJ_SEQ2 following the schema: |
virtual void operator()(const VISITED_OBJ * obj, unsigned int & mask) {}
where VISITED_OBJ is taken from the sequence VISITED_OBJ_SEQ1 VISITED_OBJ_SEQ2
Referenced by tree_node_factory::create_tree_node(), tree_node_index_factory::create_tree_node(), function_decl_refs::function_decl_refs(), tree_node_dup::get_loop_id(), tree_node_factory::tree_node_factory(), tree_node_finder::tree_node_finder(), tree_node_index_factory::tree_node_index_factory(), tree_node_reached::tree_node_reached(), type_casting::type_casting(), and ~object_visitor().
object_visitor::BOOST_PP_SEQ_FOR_EACH | ( | OPERATOR_MACRO | , |
BOOST_PP_EMPTY | , | ||
VISITED_OBJ_SEQ2 | |||
) |