top | up | prev | next

GreaterOrEqualNode Class

Definition at line 165 of Expression.hpp

Constructors

GreaterOrEqualNode(const Span& span_)
GreaterOrEqualNode(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

GreaterOrEqualNode Constructor

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

Definition at line 362 of Expression.cpp :
 362 : BinaryNode(NodeType::greaterOrEqualNodespan_)
 363 {
 364 }


Declaration at line 168 of Expression.hpp


GreaterOrEqualNode Constructor

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

Definition at line 366 of Expression.cpp :
 366 : BinaryNode(NodeType::greaterOrEqualNodespan_left_right_)
 367 {
 368 }


Declaration at line 169 of Expression.hpp


Member Function Details

Accept Member Function

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

Definition at line 375 of Expression.cpp :
 376 {
 377     visitor.Visit(*this);
 378 }


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 370 of Expression.cpp :
 371 {
 372     return new GreaterOrEqualNode(GetSpan()Left()->Clone(cloneContext)Right()->Clone(cloneContext));
 373 }


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


ToString Member Function

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

Definition at line 380 of Expression.cpp :
 381 {
 382     return Left()->ToString() + " >= " + Right()->ToString();
 383 }


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