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

#include <tree_node_finder.hpp>

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

Public Member Functions

 tree_node_finder (const std::map< TreeVocabularyTokenTypes_TokenEnum, std::string > &_tree_node_schema)
 default constructor More...
 
bool check (const tree_nodeRef &t)
 tree_node visitors More...
 
- 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

bool find_res
 result of the search More...
 
const std::map< TreeVocabularyTokenTypes_TokenEnum, std::string > & tree_node_schema
 tree_node_schema expresses the value of the fields of the tree node we are looking for. More...
 

Detailed Description

Definition at line 66 of file tree_node_finder.hpp.

Constructor & Destructor Documentation

◆ tree_node_finder()

tree_node_finder::tree_node_finder ( const std::map< TreeVocabularyTokenTypes_TokenEnum, std::string > &  _tree_node_schema)
inlineexplicit

default constructor

Definition at line 69 of file tree_node_finder.hpp.

References object_visitor::BOOST_PP_SEQ_FOR_EACH(), check(), find_res, OBJ_NOT_SPECIALIZED_SEQ, OBJ_SPECIALIZED_SEQ, OPERATOR_MACRO, OPERATOR_MACRO_DECL, and tree_node::visit().

Here is the call graph for this function:

Member Function Documentation

◆ check()

bool tree_node_finder::check ( const tree_nodeRef t)
inline

tree_node visitors

Return true in case the tree node is compatible with the tree_node_schema. Usually called by tree_manager::create_tree_node.

Definition at line 79 of file tree_node_finder.hpp.

Referenced by tree_manager::find(), and tree_node_finder().

Here is the caller graph for this function:

Field Documentation

◆ find_res

bool tree_node_finder::find_res
private

result of the search

Definition at line 88 of file tree_node_finder.hpp.

Referenced by tree_node_finder().

◆ tree_node_schema

const std::map<TreeVocabularyTokenTypes_TokenEnum, std::string>& tree_node_finder::tree_node_schema
private

tree_node_schema expresses the value of the fields of the tree node we are looking for.

Definition at line 90 of file tree_node_finder.hpp.


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

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