top | up | prev | next

LessNode Class

Definition at line 135 of Expression.hpp

Constructors

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

LessNode Constructor

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

Definition at line 312 of Expression.cpp :
 312 : BinaryNode(NodeType::lessNodespan_moduleId_)
 313 {
 314 }


Declaration at line 138 of Expression.hpp


LessNode Constructor

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

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


Declaration at line 139 of Expression.hpp


Member Function Details

Accept Member Function

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

Definition at line 326 of Expression.cpp :
 327 {
 328     visitor.Visit(*this);
 329 }


Declaration at line 141 of Expression.hpp

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

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


Clone Member Function

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

Definition at line 320 of Expression.cpp :
 321 {
 322     LessNode* clone = new LessNode(GetSpan()ModuleId()Left()->Clone(cloneContext)Right()->Clone(cloneContext));
 323     return clone;
 324 }


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

Definition at line 331 of Expression.cpp :
 332 {
 333     return Left()->ToString() + " < " + Right()->ToString();
 334 }


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