jmespath.cpp
C++ implementation of JMESPath, a query language for JSON http://jmespath.org
|
The MultiselectHashNode class represents a JMESPath multiselect hash expression. More...
#include <multiselecthashnode.h>
Public Types | |
using | KeyValuePairType = std::pair< IdentifierNode, ExpressionNode > |
Public Member Functions | |
MultiselectHashNode () | |
Constructs an empty MultiselectHashNode object. More... | |
MultiselectHashNode (const std::vector< KeyValuePairType > &subexpressions) | |
Constructs a MultiselectHashNode object with the given expressions as its subexpressions. More... | |
MultiselectHashNode (const std::initializer_list< KeyValuePairType > &subexpressions) | |
Constructs a MultiselectHashNode object with the given expressions as its subexpressions. More... | |
void | accept (interpreter::AbstractVisitor *visitor) const override |
Calls the visit method of the given visitor with the dynamic type of the node. More... | |
bool | operator== (const MultiselectHashNode &other) const |
Equality compares this node to the other. More... | |
![]() | |
AbstractNode ()=default | |
Constructs an AbstractNode object. More... | |
AbstractNode (const AbstractNode &)=default | |
Copy-constructs an AbstractNode object. More... | |
virtual | ~AbstractNode () |
Destroys the AbstractNode object. More... | |
AbstractNode & | operator= (const AbstractNode &)=default |
Copy-assigns the other object to this object. More... | |
Public Attributes | |
std::vector< KeyValuePairType > | expressions |
The node's child expressions. More... | |
The MultiselectHashNode class represents a JMESPath multiselect hash expression.
using jmespath::ast::MultiselectHashNode::KeyValuePairType = std::pair<IdentifierNode, ExpressionNode> |
jmespath::ast::MultiselectHashNode::MultiselectHashNode | ( | ) |
Constructs an empty MultiselectHashNode object.
jmespath::ast::MultiselectHashNode::MultiselectHashNode | ( | const std::vector< KeyValuePairType > & | subexpressions | ) |
Constructs a MultiselectHashNode object with the given expressions as its subexpressions.
[in] | subexpressions | The node's subexpressions. |
jmespath::ast::MultiselectHashNode::MultiselectHashNode | ( | const std::initializer_list< KeyValuePairType > & | subexpressions | ) |
Constructs a MultiselectHashNode object with the given expressions as its subexpressions.
[in] | subexpressions | The node's subexpressions. |
|
overridevirtual |
Calls the visit method of the given visitor with the dynamic type of the node.
[in] | visitor | A visitor implementation |
Implements jmespath::ast::AbstractNode.
bool jmespath::ast::MultiselectHashNode::operator== | ( | const MultiselectHashNode & | other | ) | const |
Equality compares this node to the other.
[in] | other | The node that should be compared. |
std::vector<KeyValuePairType> jmespath::ast::MultiselectHashNode::expressions |
The node's child expressions.