top | up | prev | next

GreaterNode Class

Definition at line 145 of Expression.hpp

Constructors

GreaterNode(const Span& span_, const boost::uuids::uuid& moduleId_)
GreaterNode(const Span& span_, const boost::uuids::uuid& moduleId_, 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_, const boost::uuids::uuid& moduleId_)

Definition at line 336 of Expression.cpp :
 336 : BinaryNode(NodeType::greaterNodespan_moduleId_)
 337 {
 338 }


Declaration at line 148 of Expression.hpp


GreaterNode Constructor

sngcm::ast::GreaterNode::GreaterNode(const Span& span_, const boost::uuids::uuid& moduleId_, Node * left_, Node * right_)

Definition at line 340 of Expression.cpp :
 340 : BinaryNode(NodeType::greaterNodespan_moduleId_left_right_)
 341 {
 342 }


Declaration at line 149 of Expression.hpp


Member Function Details

Accept Member Function

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

Definition at line 350 of Expression.cpp :
 351 {
 352     visitor.Visit(*this);
 353 }


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 344 of Expression.cpp :
 345 {
 346     GreaterNode* clone = new GreaterNode(GetSpan()ModuleId()Left()->Clone(cloneContext)Right()->Clone(cloneContext));
 347     return clone;
 348 }


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 , sngcm::ast::Node::ModuleId


ToString Member Function

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

Definition at line 355 of Expression.cpp :
 356 {
 357     return Left()->ToString() + " > " + Right()->ToString();
 358 }


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