top | up | prev | next

MultiplicativeExpressionNode Class

Definition at line 171 of Expression.hpp

Constructors

MultiplicativeExpressionNode()
MultiplicativeExpressionNode(const Span& span_, Node* left_, Node* right_, Operator op_)

Member Functions

void Accept(Visitor& visitor) override
Operator Op() const
void Read(Reader& reader) override
void Write(Writer& writer) override

Member Variables

Operator op

Constructor Details

MultiplicativeExpressionNode Constructor

sngcpp::ast::MultiplicativeExpressionNode::MultiplicativeExpressionNode()

Definition at line 333 of Expression.cpp :
 333 : BinaryNode(NodeType::multiplicativeExpressionNode)op()
 334 {
 335 }


Declaration at line 174 of Expression.hpp


MultiplicativeExpressionNode Constructor

sngcpp::ast::MultiplicativeExpressionNode::MultiplicativeExpressionNode(const Span& span_, Node * left_, Node * right_, Operator op_)

Definition at line 337 of Expression.cpp :
 337 : BinaryNode(NodeType::multiplicativeExpressionNodespan_left_right_)op(op_)
 338 {
 339 }


Declaration at line 175 of Expression.hpp


Member Function Details

Accept Member Function

void sngcpp::ast::MultiplicativeExpressionNode::Accept(Visitor & visitor) override

Definition at line 341 of Expression.cpp :
 342 {
 343     visitor.Visit(*this);
 344 }


Declaration at line 176 of Expression.hpp

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

Calls: sngcpp::ast::Visitor::Visit


Op Member Function

Operator sngcpp::ast::MultiplicativeExpressionNode::Op() const

Definition at line 179 of Expression.hpp :
179 { return op; }


Read Member Function

void sngcpp::ast::MultiplicativeExpressionNode::Read(Reader & reader) override

Definition at line 352 of Expression.cpp :
 353 {
 354     BinaryNode::Read(reader);
 355     op = reader.ReadOperator();
 356 }


Declaration at line 178 of Expression.hpp

Base class overridden functions: sngcpp::ast::BinaryNode::Read , sngcpp::ast::Node::Read

Calls: sngcpp::ast::BinaryNode::Read , sngcpp::ast::Reader::ReadOperator


Write Member Function

void sngcpp::ast::MultiplicativeExpressionNode::Write(Writer & writer) override

Definition at line 346 of Expression.cpp :
 347 {
 348     BinaryNode::Write(writer);
 349     writer.Write(op);
 350 }


Declaration at line 177 of Expression.hpp

Base class overridden functions: sngcpp::ast::BinaryNode::Write , sngcpp::ast::Node::Write

Calls: sngcpp::ast::BinaryNode::Write , sngcpp::ast::Writer::Write


top | up | prev | next