top | up | prev | next

DerefNode Class

Definition at line 305 of Expression.hpp

Constructors

DerefNode(const Span& span_, const boost::uuids::uuid& moduleId_)
DerefNode(const Span& span_, const boost::uuids::uuid& moduleId_, Node* subject_)

Member Functions

void Accept(Visitor& visitor) override
Node* Clone(CloneContext& cloneContext) const override
std::string ToString() const override

Constructor Details

DerefNode Constructor

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

Definition at line 729 of Expression.cpp :
 729 : UnaryNode(NodeType::derefNodespan_moduleId_)
 730 {
 731 }


Declaration at line 308 of Expression.hpp


DerefNode Constructor

sngcm::ast::DerefNode::DerefNode(const Span& span_, const boost::uuids::uuid& moduleId_, Node * subject_)

Definition at line 733 of Expression.cpp :
 733 : UnaryNode(NodeType::derefNodespan_moduleId_subject_)
 734 {
 735 }


Declaration at line 309 of Expression.hpp


Member Function Details

Accept Member Function

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

Definition at line 743 of Expression.cpp :
 744 {
 745     visitor.Visit(*this);
 746 }


Declaration at line 311 of Expression.hpp

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

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


Clone Member Function

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

Definition at line 737 of Expression.cpp :
 738 {
 739     DerefNode* clone = new DerefNode(GetSpan()ModuleId()Subject()->Clone(cloneContext));
 740     return clone;
 741 }


Declaration at line 310 of Expression.hpp

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

Calls: sngcm::ast::Node::Clone , sngcm::ast::Node::GetSpan , sngcm::ast::Node::ModuleId , sngcm::ast::UnaryNode::Subject


ToString Member Function

std::string sngcm::ast::DerefNode::ToString() const override

Definition at line 748 of Expression.cpp :
 749 {
 750     return "*" + Subject()->ToString();
 751 }


Declaration at line 312 of Expression.hpp

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

Calls: sngcm::ast::Node::ToString , sngcm::ast::UnaryNode::Subject


top | up | prev | next