top | up | prev | next

DivNode Class

Definition at line 225 of Expression.hpp

Constructors

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

DivNode Constructor

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

Definition at line 534 of Expression.cpp :
 534 : BinaryNode(NodeType::divNodespan_moduleId_)
 535 {
 536 }


Declaration at line 228 of Expression.hpp


DivNode Constructor

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

Definition at line 538 of Expression.cpp :
 538 :
 539 BinaryNode(NodeType::divNodespan_moduleId_left_right_)
 540 {
 541 }


Declaration at line 229 of Expression.hpp


Member Function Details

Accept Member Function

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

Definition at line 549 of Expression.cpp :
 550 {
 551     visitor.Visit(*this);
 552 }


Declaration at line 231 of Expression.hpp

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

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


Clone Member Function

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

Definition at line 543 of Expression.cpp :
 544 {
 545     DivNode* clone = new DivNode(GetSpan()ModuleId()Left()->Clone(cloneContext)Right()->Clone(cloneContext));
 546     return clone;
 547 }


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

Definition at line 554 of Expression.cpp :
 555 {
 556     return Left()->ToString() + " / " + Right()->ToString();
 557 }


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