top | up | prev | next

DisjunctionNode Class

Definition at line 65 of Expression.hpp

Constructors

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

DisjunctionNode Constructor

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

Definition at line 139 of Expression.cpp :
 139 : BinaryNode(NodeType::disjunctionNodespan_moduleId_)
 140 {
 141 }


Declaration at line 68 of Expression.hpp


DisjunctionNode Constructor

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

Definition at line 143 of Expression.cpp :
 143 :
 144 BinaryNode(NodeType::disjunctionNodespan_moduleId_left_right_)
 145 {
 146 }


Declaration at line 69 of Expression.hpp


Member Function Details

Accept Member Function

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

Definition at line 154 of Expression.cpp :
 155 {
 156     visitor.Visit(*this);
 157 }


Declaration at line 71 of Expression.hpp

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

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


Clone Member Function

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

Definition at line 148 of Expression.cpp :
 149 {
 150     DisjunctionNode* clone = new DisjunctionNode(GetSpan()ModuleId()Left()->Clone(cloneContext)Right()->Clone(cloneContext));
 151     return clone;
 152 }


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

Definition at line 159 of Expression.cpp :
 160 {
 161     return Left()->ToString() + " || " + Right()->ToString();
 162 }


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