23 lines
407 B
C++
23 lines
407 B
C++
#ifndef MEMGRAPH_CYPHER_AST_PATTERN_HPP
|
|
#define MEMGRAPH_CYPHER_AST_PATTERN_HPP
|
|
|
|
#include "ast_node.hpp"
|
|
#include "relationship.hpp"
|
|
|
|
namespace ast
|
|
{
|
|
|
|
struct Pattern : public AstNode<Pattern>
|
|
{
|
|
Pattern(Node* node, Relationship* relationship, Pattern* next)
|
|
: node(node), relationship(relationship), next(next) {}
|
|
|
|
Node* node;
|
|
Relationship* relationship;
|
|
Pattern* next;
|
|
};
|
|
|
|
}
|
|
|
|
#endif
|