top | up | prev | next

NotNode Class

Definition at line 245 of Expression.hpp

Constructors

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

NotNode Constructor

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

Definition at line 583 of Expression.cpp :
 583 : UnaryNode(NodeType::notNodespan_moduleId_)
 584 {
 585 }


Declaration at line 248 of Expression.hpp


NotNode Constructor

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

Definition at line 587 of Expression.cpp :
 587 : UnaryNode(NodeType::notNodespan_moduleId_subject_)
 588 {
 589 }


Declaration at line 249 of Expression.hpp


Member Function Details

Accept Member Function

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

Definition at line 597 of Expression.cpp :
 598 {
 599     visitor.Visit(*this);
 600 }


Declaration at line 251 of Expression.hpp

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

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


Clone Member Function

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

Definition at line 591 of Expression.cpp :
 592 {
 593     NotNode* clone = new NotNode(GetSpan()ModuleId()Subject()->Clone(cloneContext));
 594     return clone;
 595 }


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

Definition at line 602 of Expression.cpp :
 603 {
 604     return "!" + Subject()->ToString();
 605 }


Declaration at line 252 of Expression.hpp

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

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


top | up | prev | next