top | up | prev | next

GreaterNode Class

Definition at line 145 of Expression.hpp

Constructors

GreaterNode(const Span& span_)
GreaterNode(const Span& span_, Node* left_, Node* right_)

Member Functions

void Accept(Visitor& visitor) override
Node* Clone(CloneContext& cloneContext) const override
std::string ToString() const override

Constructor Details

GreaterNode Constructor

sngcm::ast::GreaterNode::GreaterNode(const Span& span_)

Definition at line 316 of Expression.cpp :
 316 : BinaryNode(NodeType::greaterNodespan_)
 317 {
 318 }


Declaration at line 148 of Expression.hpp


GreaterNode Constructor

sngcm::ast::GreaterNode::GreaterNode(const Span& span_, Node * left_, Node * right_)

Definition at line 320 of Expression.cpp :
 320 : BinaryNode(NodeType::greaterNodespan_left_right_)
 321 {
 322 }


Declaration at line 149 of Expression.hpp


Member Function Details

Accept Member Function

void sngcm::ast::GreaterNode::Accept(Visitor & visitor) override

Definition at line 329 of Expression.cpp :
 330 {
 331     visitor.Visit(*this);
 332 }


Declaration at line 151 of Expression.hpp

Base class overridden functions: sngcm::ast::Node::Accept

Calls: sngcm::ast::Visitor::Visit


Clone Member Function

Node * sngcm::ast::GreaterNode::Clone(CloneContext & cloneContext) const override

Definition at line 324 of Expression.cpp :
 325 {
 326     return new GreaterNode(GetSpan()Left()->Clone(cloneContext)Right()->Clone(cloneContext));
 327 }


Declaration at line 150 of Expression.hpp

Base class overridden functions: sngcm::ast::Node::Clone

Calls: sngcm::ast::BinaryNode::Left , sngcm::ast::BinaryNode::Right , sngcm::ast::Node::Clone , sngcm::ast::Node::GetSpan


ToString Member Function

std::string sngcm::ast::GreaterNode::ToString() const override

Definition at line 334 of Expression.cpp :
 335 {
 336     return Left()->ToString() + " > " + Right()->ToString();
 337 }


Declaration at line 152 of Expression.hpp

Base class overridden functions: sngcm::ast::Node::ToString

Calls: sngcm::ast::BinaryNode::Left , sngcm::ast::BinaryNode::Right , sngcm::ast::Node::ToString


top | up | prev | next