Kùzu C++ API
Loading...
Searching...
No Matches
kuzu::parser::ParsedExpression Class Reference

#include <parsed_expression.h>

Inheritance diagram for kuzu::parser::ParsedExpression:
kuzu::parser::ParsedLiteralExpression

Public Member Functions

 ParsedExpression (common::ExpressionType type, std::unique_ptr< ParsedExpression > child, std::string rawName)
 
 ParsedExpression (common::ExpressionType type, std::unique_ptr< ParsedExpression > left, std::unique_ptr< ParsedExpression > right, std::string rawName)
 
 ParsedExpression (common::ExpressionType type, std::string rawName)
 
 ParsedExpression (common::ExpressionType type)
 
 ParsedExpression (common::ExpressionType type, std::string alias, std::string rawName, parsed_expr_vector children)
 
 DELETE_COPY_DEFAULT_MOVE (ParsedExpression)
 
virtual ~ParsedExpression ()=default
 
common::ExpressionType getExpressionType () const
 
void setAlias (std::string name)
 
bool hasAlias () const
 
std::string getAlias () const
 
std::string getRawName () const
 
uint32_t getNumChildren () const
 
ParsedExpressiongetChild (uint32_t idx) const
 
std::string toString () const
 
virtual std::unique_ptr< ParsedExpressioncopy () const
 
void serialize (common::Serializer &serializer) const
 
template<class TARGET >
TARGET & cast ()
 
template<class TARGET >
const TARGET & constCast () const
 
template<class TARGET >
const TARGET * constPtrCast () const
 

Static Public Member Functions

static std::unique_ptr< ParsedExpressiondeserialize (common::Deserializer &deserializer)
 

Protected Attributes

common::ExpressionType type
 
std::string alias
 
std::string rawName
 
parsed_expr_vector children
 

Friends

class ParsedExpressionChildrenVisitor
 

Constructor & Destructor Documentation

◆ ParsedExpression() [1/5]

kuzu::parser::ParsedExpression::ParsedExpression ( common::ExpressionType type,
std::unique_ptr< ParsedExpression > child,
std::string rawName )

◆ ParsedExpression() [2/5]

kuzu::parser::ParsedExpression::ParsedExpression ( common::ExpressionType type,
std::unique_ptr< ParsedExpression > left,
std::unique_ptr< ParsedExpression > right,
std::string rawName )

◆ ParsedExpression() [3/5]

kuzu::parser::ParsedExpression::ParsedExpression ( common::ExpressionType type,
std::string rawName )
inline

◆ ParsedExpression() [4/5]

kuzu::parser::ParsedExpression::ParsedExpression ( common::ExpressionType type)
inlineexplicit

◆ ParsedExpression() [5/5]

kuzu::parser::ParsedExpression::ParsedExpression ( common::ExpressionType type,
std::string alias,
std::string rawName,
parsed_expr_vector children )
inline

◆ ~ParsedExpression()

virtual kuzu::parser::ParsedExpression::~ParsedExpression ( )
virtualdefault

Member Function Documentation

◆ cast()

template<class TARGET >
TARGET & kuzu::parser::ParsedExpression::cast ( )
inline

◆ constCast()

template<class TARGET >
const TARGET & kuzu::parser::ParsedExpression::constCast ( ) const
inline

◆ constPtrCast()

template<class TARGET >
const TARGET * kuzu::parser::ParsedExpression::constPtrCast ( ) const
inline

◆ copy()

virtual std::unique_ptr< ParsedExpression > kuzu::parser::ParsedExpression::copy ( ) const
inlinevirtual

◆ DELETE_COPY_DEFAULT_MOVE()

kuzu::parser::ParsedExpression::DELETE_COPY_DEFAULT_MOVE ( ParsedExpression )

◆ deserialize()

static std::unique_ptr< ParsedExpression > kuzu::parser::ParsedExpression::deserialize ( common::Deserializer & deserializer)
static

◆ getAlias()

std::string kuzu::parser::ParsedExpression::getAlias ( ) const
inline

◆ getChild()

ParsedExpression * kuzu::parser::ParsedExpression::getChild ( uint32_t idx) const
inline

◆ getExpressionType()

common::ExpressionType kuzu::parser::ParsedExpression::getExpressionType ( ) const
inline

◆ getNumChildren()

uint32_t kuzu::parser::ParsedExpression::getNumChildren ( ) const
inline

◆ getRawName()

std::string kuzu::parser::ParsedExpression::getRawName ( ) const
inline

◆ hasAlias()

bool kuzu::parser::ParsedExpression::hasAlias ( ) const
inline

◆ serialize()

void kuzu::parser::ParsedExpression::serialize ( common::Serializer & serializer) const

◆ setAlias()

void kuzu::parser::ParsedExpression::setAlias ( std::string name)
inline

◆ toString()

std::string kuzu::parser::ParsedExpression::toString ( ) const
inline

Friends And Related Symbol Documentation

◆ ParsedExpressionChildrenVisitor

friend class ParsedExpressionChildrenVisitor
friend

Member Data Documentation

◆ alias

std::string kuzu::parser::ParsedExpression::alias
protected

◆ children

parsed_expr_vector kuzu::parser::ParsedExpression::children
protected

◆ rawName

std::string kuzu::parser::ParsedExpression::rawName
protected

◆ type

common::ExpressionType kuzu::parser::ParsedExpression::type
protected

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