top | up | prev | next

ConjunctiveConstraintNode Class

Definition at line 63 of Concept.hpp

Constructors

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

ConjunctiveConstraintNode Constructor

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

Definition at line 109 of Concept.cpp :
 109 : BinaryConstraintNode(NodeType::conjunctiveConstraintNodespan_moduleId_)
 110 {
 111 }


Declaration at line 66 of Concept.hpp


ConjunctiveConstraintNode Constructor

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

Definition at line 113 of Concept.cpp :
 113 :
 114 BinaryConstraintNode(NodeType::conjunctiveConstraintNodespan_moduleId_left_right_)
 115 {
 116 }


Declaration at line 67 of Concept.hpp


Member Function Details

Accept Member Function

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

Definition at line 124 of Concept.cpp :
 125 {
 126     visitor.Visit(*this);
 127 }


Declaration at line 69 of Concept.hpp

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

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


Clone Member Function

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

Definition at line 118 of Concept.cpp :
 119 {
 120     ConjunctiveConstraintNode* clone = new ConjunctiveConstraintNode(GetSpan()ModuleId()static_cast<ConstraintNode*>(Left()->Clone(cloneContext))static_cast<ConstraintNode*>(Right()->Clone(cloneContext)));
 121     return clone;
 122 }


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

Definition at line 129 of Concept.cpp :
 130 {
 131     return Left()->ToString() + " and " + Right()->ToString();
 132 }


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