top | up | prev | next

CppCastExpressionNode Class

Definition at line 323 of Expression.hpp

Constructors

CppCastExpressionNode()
CppCastExpressionNode(const Span& span_, Node* typeExpr_, Node* expr_, Operator op_)

Member Functions

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

Member Variables

std::unique_ptr<Node> expr
Operator op
std::unique_ptr<Node> typeExpr

Constructor Details

CppCastExpressionNode Constructor

sngcpp::ast::CppCastExpressionNode::CppCastExpressionNode()

Definition at line 640 of Expression.cpp :
 640 : Node(NodeType::cppCastExpressionNode)op()
 641 {
 642 }


Declaration at line 326 of Expression.hpp


CppCastExpressionNode Constructor

sngcpp::ast::CppCastExpressionNode::CppCastExpressionNode(const Span& span_, Node * typeExpr_, Node * expr_, Operator op_)

Definition at line 644 of Expression.cpp :
 644 : Node(NodeType::cppCastExpressionNodespan_)typeExpr(typeExpr_)expr(expr_)op(op_)
 645 {
 646 }


Declaration at line 327 of Expression.hpp


Member Function Details

Accept Member Function

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

Definition at line 648 of Expression.cpp :
 649 {
 650     visitor.Visit(*this);
 651 }


Declaration at line 328 of Expression.hpp

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

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


Expr Member Function

Node * sngcpp::ast::CppCastExpressionNode::Expr()

Definition at line 332 of Expression.hpp :
332 { return expr.get(); }


Op Member Function

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

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


Read Member Function

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

Definition at line 661 of Expression.cpp :
 662 {
 663     Node::Read(reader);
 664     typeExpr.reset(reader.ReadNode());
 665     expr.reset(reader.ReadNode());
 666     op = reader.ReadOperator();
 667 }


Declaration at line 330 of Expression.hpp

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

Calls: sngcpp::ast::Node::Read , sngcpp::ast::Reader::ReadNode , sngcpp::ast::Reader::ReadOperator


TypeExpr Member Function

Node * sngcpp::ast::CppCastExpressionNode::TypeExpr()

Definition at line 331 of Expression.hpp :
331 { return typeExpr.get(); }


Write Member Function

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

Definition at line 653 of Expression.cpp :
 654 {
 655     Node::Write(writer);
 656     typeExpr->Write(writer);
 657     expr->Write(writer);
 658     writer.Write(op);
 659 }


Declaration at line 329 of Expression.hpp

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

Calls: sngcpp::ast::CppCastExpressionNode::Write , sngcpp::ast::Node::Write , sngcpp::ast::Writer::Write

Called by: sngcpp::ast::CppCastExpressionNode::Write


top | up | prev | next