top | up | prev | next

ComplementNode Class

Definition at line 295 of Expression.hpp

Constructors

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

ComplementNode Constructor

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

Definition at line 705 of Expression.cpp :
 705 : UnaryNode(NodeType::complementNodespan_moduleId_)
 706 {
 707 }


Declaration at line 298 of Expression.hpp


ComplementNode Constructor

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

Definition at line 709 of Expression.cpp :
 709 : UnaryNode(NodeType::complementNodespan_moduleId_subject_)
 710 {
 711 }


Declaration at line 299 of Expression.hpp


Member Function Details

Accept Member Function

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

Definition at line 719 of Expression.cpp :
 720 {
 721     visitor.Visit(*this);
 722 }


Declaration at line 301 of Expression.hpp

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

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


Clone Member Function

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

Definition at line 713 of Expression.cpp :
 714 {
 715     ComplementNode* clone = new ComplementNode(GetSpan()ModuleId()Subject()->Clone(cloneContext));
 716     return clone;
 717 }


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

Definition at line 724 of Expression.cpp :
 725 {
 726     return "~" + Subject()->ToString();
 727 }


Declaration at line 302 of Expression.hpp

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

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


top | up | prev | next