top | up | prev | next

GreaterOrEqualNode Class

Definition at line 165 of Expression.hpp

Constructors

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

GreaterOrEqualNode Constructor

sngcm::ast::GreaterOrEqualNode::GreaterOrEqualNode(const Span& span_, const boost::uuids::uuid& moduleId_)

Definition at line 385 of Expression.cpp :
 385 : BinaryNode(NodeType::greaterOrEqualNodespan_moduleId_)
 386 {
 387 }


Declaration at line 168 of Expression.hpp


GreaterOrEqualNode Constructor

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

Definition at line 389 of Expression.cpp :
 389 :
 390 BinaryNode(NodeType::greaterOrEqualNodespan_moduleId_left_right_)
 391 {
 392 }


Declaration at line 169 of Expression.hpp


Member Function Details

Accept Member Function

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

Definition at line 400 of Expression.cpp :
 401 {
 402     visitor.Visit(*this);
 403 }


Declaration at line 171 of Expression.hpp

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

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


Clone Member Function

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

Definition at line 394 of Expression.cpp :
 395 {
 396     GreaterOrEqualNode* clone = new GreaterOrEqualNode(GetSpan()ModuleId()Left()->Clone(cloneContext)Right()->Clone(cloneContext));
 397     return clone;
 398 }


Declaration at line 170 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::GreaterOrEqualNode::ToString() const override

Definition at line 405 of Expression.cpp :
 406 {
 407     return Left()->ToString() + " >= " + Right()->ToString();
 408 }


Declaration at line 172 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