top | up | prev | next

EquivalenceNode Class

Definition at line 45 of Expression.hpp

Constructors

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

EquivalenceNode Constructor

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

Definition at line 89 of Expression.cpp :
  89 : BinaryNode(NodeType::equivalenceNodespan_moduleId_)
  90 {
  91 }


Declaration at line 48 of Expression.hpp


EquivalenceNode Constructor

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

Definition at line 93 of Expression.cpp :
  93 :
  94 BinaryNode(NodeType::equivalenceNodespan_moduleId_left_right_)
  95 {
  96 }


Declaration at line 49 of Expression.hpp


Member Function Details

Accept Member Function

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

Definition at line 104 of Expression.cpp :
 105 {
 106     visitor.Visit(*this);
 107 }


Declaration at line 51 of Expression.hpp

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

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


Clone Member Function

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

Definition at line 98 of Expression.cpp :
  99 {
 100     EquivalenceNode* clone = new EquivalenceNode(GetSpan()ModuleId()Left()->Clone(cloneContext)Right()->Clone(cloneContext));
 101     return clone;
 102 }


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

Definition at line 109 of Expression.cpp :
 110 {
 111     return Left()->ToString() + "<=>" + Right()->ToString();
 112 }


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