The LeftChildExtractor class is a functor that extracts the child expression node from the given node which should be evaluated before the given node itself.
More...
#include <leftchildextractor.h>
|
|
ast::ExpressionNode * | operator() (ast::ExpressionNode *node) const |
| Returns a pointer to the child expression node of the given node or nullptr if the node doesn't has a suitable child node. More...
|
|
template<typename T > |
ast::ExpressionNode * | operator() (T &node) const |
| Returns a pointer to the child expression node of the given node or nullptr if the node doesn't has a suitable child node. More...
|
|
template<typename T , typename std::enable_if< !std::is_base_of< ast::BinaryExpressionNode, T >::value &&!std::is_same< ast::NotExpressionNode, T >::value, int >::type = 0> |
ast::ExpressionNode * | childNode (T *) const |
| Returns a pointer to the child expression node of the given node or nullptr if the node doesn't has a suitable child node. More...
|
|
template<typename T , typename std::enable_if< !std::is_base_of< ast::BinaryExpressionNode, T >::value &&std::is_same< ast::NotExpressionNode, T >::value, int >::type = 0> |
ast::ExpressionNode * | childNode (T *node) const |
| Returns a pointer to the child expression node of the given node or nullptr if the node doesn't has a suitable child node. More...
|
|
template<typename T , typename std::enable_if< std::is_base_of< ast::BinaryExpressionNode, T >::value, int >::type = 0> |
ast::ExpressionNode * | childNode (T *node) const |
| Returns a pointer to the child expression node of the given node or nullptr if the node doesn't has a suitable child node. More...
|
|
The LeftChildExtractor class is a functor that extracts the child expression node from the given node which should be evaluated before the given node itself.
template<typename T , typename std::enable_if< !std::is_base_of< ast::BinaryExpressionNode, T >::value &&!std::is_same< ast::NotExpressionNode, T >::value, int >::type = 0>
Returns a pointer to the child expression node of the given node or nullptr if the node doesn't has a suitable child node.
- Parameters
-
[in] | node | The node whose child node should be extracted. |
template<typename T , typename std::enable_if< !std::is_base_of< ast::BinaryExpressionNode, T >::value &&std::is_same< ast::NotExpressionNode, T >::value, int >::type = 0>
Returns a pointer to the child expression node of the given node or nullptr if the node doesn't has a suitable child node.
- Parameters
-
[in] | node | The node whose child node should be extracted. |
template<typename T , typename std::enable_if< std::is_base_of< ast::BinaryExpressionNode, T >::value, int >::type = 0>
Returns a pointer to the child expression node of the given node or nullptr if the node doesn't has a suitable child node.
- Parameters
-
[in] | node | The node whose child node should be extracted. |
Returns a pointer to the child expression node of the given node or nullptr if the node doesn't has a suitable child node.
- Parameters
-
[in] | node | The node whose child node should be extracted. |
Returns a pointer to the child expression node of the given node or nullptr if the node doesn't has a suitable child node.
- Parameters
-
[in] | node | The node whose child node should be extracted. |
The documentation for this class was generated from the following file: