top | up | prev | next

RemNode Class

Definition at line 235 of Expression.hpp

Constructors

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

RemNode Constructor

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

Definition at line 559 of Expression.cpp :
 559 : BinaryNode(NodeType::remNodespan_moduleId_)
 560 {
 561 }


Declaration at line 238 of Expression.hpp


RemNode Constructor

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

Definition at line 563 of Expression.cpp :
 563 : BinaryNode(NodeType::remNodespan_moduleId_left_right_)
 564 {
 565 }


Declaration at line 239 of Expression.hpp


Member Function Details

Accept Member Function

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

Definition at line 573 of Expression.cpp :
 574 {
 575     visitor.Visit(*this);
 576 }


Declaration at line 241 of Expression.hpp

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

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


Clone Member Function

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

Definition at line 567 of Expression.cpp :
 568 {
 569     RemNode* clone = new RemNode(GetSpan()ModuleId()Left()->Clone(cloneContext)Right()->Clone(cloneContext));
 570     return clone;
 571 }


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

Definition at line 578 of Expression.cpp :
 579 {
 580     return Left()->ToString() + " % " + Right()->ToString();
 581 }


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