top | up | prev | next

AddrOfNode Class

Definition at line 315 of Expression.hpp

Constructors

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

AddrOfNode Constructor

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

Definition at line 753 of Expression.cpp :
 753 : UnaryNode(NodeType::addrOfNodespan_moduleId_)
 754 {
 755 }


Declaration at line 318 of Expression.hpp


AddrOfNode Constructor

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

Definition at line 757 of Expression.cpp :
 757 :
 758 UnaryNode(NodeType::addrOfNodespan_moduleId_subject_)
 759 {
 760 }


Declaration at line 319 of Expression.hpp


Member Function Details

Accept Member Function

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

Definition at line 768 of Expression.cpp :
 769 {
 770     visitor.Visit(*this);
 771 }


Declaration at line 321 of Expression.hpp

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

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


Clone Member Function

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

Definition at line 762 of Expression.cpp :
 763 {
 764     AddrOfNode* clone = new AddrOfNode(GetSpan()ModuleId()Subject()->Clone(cloneContext));
 765     return clone;
 766 }


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

Definition at line 773 of Expression.cpp :
 774 {
 775     return "&" + Subject()->ToString();
 776 }


Declaration at line 322 of Expression.hpp

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

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


top | up | prev | next