PandA-2024.02
|
tree node finder. More...
#include "tree_node_finder.hpp"
#include "exceptions.hpp"
#include "token_interface.hpp"
#include <boost/lexical_cast.hpp>
#include "ext_tree_node.hpp"
#include "tree_basic_block.hpp"
#include "tree_node.hpp"
#include "tree_reindex.hpp"
Go to the source code of this file.
Macros | |
#define | CHECK_VALUE_OPT(token, value) check_value_opt(tree_node_schema.find(TOK(token)), tree_node_schema.end(), value) |
#define | CHECK_TREE_NODE_OPT(token, treeN) check_tree_node_opt(tree_node_schema.find(TOK(token)), tree_node_schema.end(), treeN, STOK(token)) |
#define | TREE_NOT_YET_IMPLEMENTED(token) |
Functions | |
template<class type > | |
static bool | check_value_opt (const std::map< TreeVocabularyTokenTypes_TokenEnum, std::string >::const_iterator &it_element, const std::map< TreeVocabularyTokenTypes_TokenEnum, std::string >::const_iterator &it_end, const type &value) |
static bool | check_value_opt (const std::map< TreeVocabularyTokenTypes_TokenEnum, std::string >::const_iterator &it_element, const std::map< TreeVocabularyTokenTypes_TokenEnum, std::string >::const_iterator &it_end, const TreeVocabularyTokenTypes_TokenEnum &value) |
static bool | check_tree_node_opt (const std::map< TreeVocabularyTokenTypes_TokenEnum, std::string >::const_iterator &it_element, const std::map< TreeVocabularyTokenTypes_TokenEnum, std::string >::const_iterator &it_end, const tree_nodeRef &tn, const std::string &) |
tree node finder.
This class exploiting the visitor design pattern find a tree node in a tree_manager.
Definition in file tree_node_finder.cpp.
#define CHECK_TREE_NODE_OPT | ( | token, | |
treeN | |||
) | check_tree_node_opt(tree_node_schema.find(TOK(token)), tree_node_schema.end(), treeN, STOK(token)) |
Definition at line 79 of file tree_node_finder.cpp.
#define CHECK_VALUE_OPT | ( | token, | |
value | |||
) | check_value_opt(tree_node_schema.find(TOK(token)), tree_node_schema.end(), value) |
Definition at line 69 of file tree_node_finder.cpp.
#define TREE_NOT_YET_IMPLEMENTED | ( | token | ) |
Definition at line 82 of file tree_node_finder.cpp.
|
static |
Definition at line 72 of file tree_node_finder.cpp.
References GET_INDEX_NODE.
|
static |
Definition at line 54 of file tree_node_finder.cpp.
References test_panda::type.
|
static |
Definition at line 61 of file tree_node_finder.cpp.