top | up | prev | next

NotEqualNode Class

Definition at line 125 of Expression.hpp

Constructors

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

NotEqualNode Constructor

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

Definition at line 288 of Expression.cpp :
 288 : BinaryNode(NodeType::notEqualNodespan_moduleId_)
 289 {
 290 }


Declaration at line 128 of Expression.hpp


NotEqualNode Constructor

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

Definition at line 292 of Expression.cpp :
 292 : BinaryNode(NodeType::notEqualNodespan_moduleId_left_right_)
 293 {
 294 }


Declaration at line 129 of Expression.hpp


Member Function Details

Accept Member Function

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

Definition at line 302 of Expression.cpp :
 303 {
 304     visitor.Visit(*this);
 305 }


Declaration at line 131 of Expression.hpp

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

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


Clone Member Function

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

Definition at line 296 of Expression.cpp :
 297 {
 298     NotEqualNode* clone = new NotEqualNode(GetSpan()ModuleId()Left()->Clone(cloneContext)Right()->Clone(cloneContext));
 299     return clone;
 300 }


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

Definition at line 307 of Expression.cpp :
 308 {
 309     return Left()->ToString() + " != " + Right()->ToString();
 310 }


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