top | up | prev | next

ImplicationNode Class

Definition at line 55 of Expression.hpp

Constructors

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

ImplicationNode Constructor

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

Definition at line 114 of Expression.cpp :
 114 : BinaryNode(NodeType::implicationNodespan_moduleId_)
 115 {
 116 }


Declaration at line 58 of Expression.hpp


ImplicationNode Constructor

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

Definition at line 118 of Expression.cpp :
 118 :
 119 BinaryNode(NodeType::implicationNodespan_moduleId_left_right_)
 120 {
 121 }


Declaration at line 59 of Expression.hpp


Member Function Details

Accept Member Function

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

Definition at line 129 of Expression.cpp :
 130 {
 131     visitor.Visit(*this);
 132 }


Declaration at line 61 of Expression.hpp

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

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


Clone Member Function

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

Definition at line 123 of Expression.cpp :
 124 {
 125     ImplicationNode* clone = new ImplicationNode(GetSpan()ModuleId()Left()->Clone(cloneContext)Right()->Clone(cloneContext));
 126     return clone;
 127 }


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

Definition at line 134 of Expression.cpp :
 135 {
 136     return Left()->ToString() + "=>" + Right()->ToString();
 137 }


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