top | up | prev | next

DisjunctiveConstraintNode Class

Definition at line 53 of Concept.hpp

Constructors

DisjunctiveConstraintNode(const Span& span_, const boost::uuids::uuid& moduleId_)
DisjunctiveConstraintNode(const Span& span_, const boost::uuids::uuid& moduleId_, ConstraintNode* left_, ConstraintNode* right_)

Member Functions

void Accept(Visitor& visitor) override
Node* Clone(CloneContext& cloneContext) const override
std::string ToString() const override

Constructor Details

DisjunctiveConstraintNode Constructor

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

Definition at line 84 of Concept.cpp :
  84 : BinaryConstraintNode(NodeType::disjunctiveConstraintNodespan_moduleId_)
  85 {
  86 }


Declaration at line 56 of Concept.hpp


DisjunctiveConstraintNode Constructor

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

Definition at line 88 of Concept.cpp :
  88 :
  89 BinaryConstraintNode(NodeType::disjunctiveConstraintNodespan_moduleId_left_right_)
  90 {
  91 }


Declaration at line 57 of Concept.hpp


Member Function Details

Accept Member Function

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

Definition at line 99 of Concept.cpp :
 100 {
 101     visitor.Visit(*this);
 102 }


Declaration at line 59 of Concept.hpp

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

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


Clone Member Function

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

Definition at line 93 of Concept.cpp :
  94 {
  95     DisjunctiveConstraintNode* clone = new DisjunctiveConstraintNode(GetSpan()ModuleId()static_cast<ConstraintNode*>(Left()->Clone(cloneContext))static_cast<ConstraintNode*>(Right()->Clone(cloneContext)));
  96     return clone;
  97 }


Declaration at line 58 of Concept.hpp

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

Calls: sngcm::ast::BinaryConstraintNode::Left , sngcm::ast::BinaryConstraintNode::Right , sngcm::ast::Node::Clone , sngcm::ast::Node::GetSpan , sngcm::ast::Node::ModuleId


ToString Member Function

std::string sngcm::ast::DisjunctiveConstraintNode::ToString() const override

Definition at line 104 of Concept.cpp :
 105 {
 106     return Left()->ToString() + " or " + Right()->ToString();
 107 }


Declaration at line 60 of Concept.hpp

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

Calls: sngcm::ast::BinaryConstraintNode::Left , sngcm::ast::BinaryConstraintNode::Right , sngcm::ast::Node::ToString


top | up | prev | next