jmespath.cpp
C++ implementation of JMESPath, a query language for JSON http://jmespath.org
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Groups Pages
Public Types | List of all members
jmespath::parser::NodeInsertCondition Class Reference

The NodeInsertCondition class is a functor that will either yield a true or false result based on whether the given node should be inserted at the location of the targetNode. More...

#include <nodeinsertcondition.h>

Public Types

using result_type = bool
 The result type of the functor. More...
 

Public Member Functions

template<typename T , typename std::enable_if< std::is_base_of< ast::BinaryExpressionNode, T >::value, int >::type = 0>
bool operator() (const ast::ExpressionNode &targetNode, const T &node) const
 Returns true or false based on whether the given node should be inserted at the location of the targetNode. More...
 
template<typename T , typename std::enable_if< !std::is_base_of< ast::BinaryExpressionNode, T >::value, int >::type = 0>
bool operator() (const ast::ExpressionNode &targetNode, const T &node) const
 Returns true or false based on whether the given node should be inserted at the location of the targetNode. More...
 

Detailed Description

The NodeInsertCondition class is a functor that will either yield a true or false result based on whether the given node should be inserted at the location of the targetNode.

Member Typedef Documentation

The result type of the functor.

Member Function Documentation

template<typename T , typename std::enable_if< std::is_base_of< ast::BinaryExpressionNode, T >::value, int >::type = 0>
bool jmespath::parser::NodeInsertCondition::operator() ( const ast::ExpressionNode targetNode,
const T &  node 
) const
inline

Returns true or false based on whether the given node should be inserted at the location of the targetNode.

Parameters
[in]targetNodeThe node located where the given node might be insertable.
[in]nodeThe node to test for insertability.
template<typename T , typename std::enable_if< !std::is_base_of< ast::BinaryExpressionNode, T >::value, int >::type = 0>
bool jmespath::parser::NodeInsertCondition::operator() ( const ast::ExpressionNode targetNode,
const T &  node 
) const
inline

Returns true or false based on whether the given node should be inserted at the location of the targetNode.

Parameters
[in]targetNodeThe node located where the given node might be insertable.
[in]nodeThe node to test for insertability.

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