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 | Public Member Functions | Public Attributes | List of all members
jmespath::ast::MultiselectHashNode Class Reference

The MultiselectHashNode class represents a JMESPath multiselect hash expression. More...

#include <multiselecthashnode.h>

Inheritance diagram for jmespath::ast::MultiselectHashNode:
jmespath::ast::AbstractNode

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...
 
- Public Member Functions inherited from jmespath::ast::AbstractNode
 AbstractNode ()=default
 Constructs an AbstractNode object. More...
 
 AbstractNode (const AbstractNode &)=default
 Copy-constructs an AbstractNode object. More...
 
virtual ~AbstractNode ()
 Destroys the AbstractNode object. More...
 
AbstractNodeoperator= (const AbstractNode &)=default
 Copy-assigns the other object to this object. More...
 

Public Attributes

std::vector< KeyValuePairTypeexpressions
 The node's child expressions. More...
 

Detailed Description

The MultiselectHashNode class represents a JMESPath multiselect hash expression.

Member Typedef Documentation

Constructor & Destructor Documentation

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.

Parameters
[in]subexpressionsThe node's subexpressions.
jmespath::ast::MultiselectHashNode::MultiselectHashNode ( const std::initializer_list< KeyValuePairType > &  subexpressions)

Constructs a MultiselectHashNode object with the given expressions as its subexpressions.

Parameters
[in]subexpressionsThe node's subexpressions.

Member Function Documentation

void jmespath::ast::MultiselectHashNode::accept ( interpreter::AbstractVisitor visitor) const
overridevirtual

Calls the visit method of the given visitor with the dynamic type of the node.

Parameters
[in]visitorA visitor implementation

Implements jmespath::ast::AbstractNode.

bool jmespath::ast::MultiselectHashNode::operator== ( const MultiselectHashNode other) const

Equality compares this node to the other.

Parameters
[in]otherThe node that should be compared.
Returns
Returns true if this object is equal to the other, otherwise false

Member Data Documentation

std::vector<KeyValuePairType> jmespath::ast::MultiselectHashNode::expressions

The node's child expressions.


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