28 #ifndef INSERTBINARYEXPRESSIONNODEACTION_H
29 #define INSERTBINARYEXPRESSIONNODEACTION_H
34 #include <boost/variant/polymorphic_get.hpp>
35 #include <boost/optional.hpp>
37 namespace jmespath {
namespace parser {
57 template <
typename NodeInserterT,
58 typename NodeInsertConditionT>
75 using std::placeholders::_1;
79 auto it = std::find_if(begin, end, predicate);
99 #endif // INSERTBINARYEXPRESSIONNODEACTION_H
The LeftEdgeIterator class is a forward iterator which can be used to iterate over the ExpressionNode...
Definition: leftedgeiterator.h:40
void operator()(ast::ExpressionNode &targetNode, T &node) const
Inserts the given node into the AST whose root node is specified with targetNode. ...
Definition: insertnodeaction.h:73
void result_type
The action's result type.
Definition: insertnodeaction.h:65
NodeInserterT m_nodeInserter
Functor for inserting the a node at the position of the target node into the AST. ...
Definition: insertnodeaction.h:91
The InsertNodeAction class is a functor for inserting the given node into the AST whose root node is ...
Definition: insertnodeaction.h:59
NodeInsertConditionT m_insertCondition
Functor for checking whether the passed node can be inserted at the position of the target node...
Definition: insertnodeaction.h:96
The ExpressionNode class represents a JMESPath expression.
Definition: expressionnode.h:56