top | up | prev | next

PredicateConstraintNode Class

Definition at line 95 of Concept.hpp

Constructors

PredicateConstraintNode(const Span& span_, const boost::uuids::uuid& moduleId_)
PredicateConstraintNode(const Span& span_, const boost::uuids::uuid& moduleId_, Node* invokeExpr_)

Member Functions

void Accept(Visitor& visitor) override
Node* Clone(CloneContext& cloneContext) const override
const Node* InvokeExpr() const
Node* InvokeExpr()
void Read(AstReader& reader) override
std::string ToString() const override
void Write(AstWriter& writer) override

Member Variables

std::unique_ptr<Node> invokeExpr

Constructor Details

PredicateConstraintNode Constructor

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

Definition at line 187 of Concept.cpp :
 187 :
 188 ConstraintNode(NodeType::predicateConstraintNodespan_moduleId_)invokeExpr()
 189 {
 190 }


Declaration at line 98 of Concept.hpp


PredicateConstraintNode Constructor

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

Definition at line 192 of Concept.cpp :
 192 :
 193 ConstraintNode(NodeType::predicateConstraintNodespan_moduleId_)invokeExpr(invokeExpr_)
 194 {
 195     invokeExpr->SetParent(this);
 196 }


Declaration at line 99 of Concept.hpp


Member Function Details

Accept Member Function

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

Definition at line 204 of Concept.cpp :
 205 {
 206     visitor.Visit(*this);
 207 }


Declaration at line 101 of Concept.hpp

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

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


Clone Member Function

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

Definition at line 198 of Concept.cpp :
 199 {
 200     PredicateConstraintNode* clone = new PredicateConstraintNode(GetSpan()ModuleId()invokeExpr->Clone(cloneContext));
 201     return clone;
 202 }


Declaration at line 100 of Concept.hpp

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

Calls: sngcm::ast::Node::GetSpan , sngcm::ast::Node::ModuleId , sngcm::ast::PredicateConstraintNode::Clone

Called by: sngcm::ast::PredicateConstraintNode::Clone


InvokeExpr Member Function

const Node * sngcm::ast::PredicateConstraintNode::InvokeExpr() const

Definition at line 104 of Concept.hpp :
104 { return invokeExpr.get(); }


InvokeExpr Member Function

Node * sngcm::ast::PredicateConstraintNode::InvokeExpr()

Definition at line 105 of Concept.hpp :
105 { return invokeExpr.get(); }

Called by: sngcm::ast::SourceWriter::Visit


Read Member Function

void sngcm::ast::PredicateConstraintNode::Read(AstReader & reader) override

Definition at line 215 of Concept.cpp :
 216 {
 217     ConstraintNode::Read(reader);
 218     invokeExpr.reset(reader.ReadNode());
 219     invokeExpr->SetParent(this);
 220 }


Declaration at line 103 of Concept.hpp

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

Calls: sngcm::ast::AstReader::ReadNode , sngcm::ast::Node::Read , sngcm::ast::Node::SetParent


ToString Member Function

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

Definition at line 222 of Concept.cpp :
 223 {
 224     return invokeExpr->ToString();
 225 }


Declaration at line 106 of Concept.hpp

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

Calls: sngcm::ast::PredicateConstraintNode::ToString

Called by: sngcm::ast::PredicateConstraintNode::ToString


Write Member Function

void sngcm::ast::PredicateConstraintNode::Write(AstWriter & writer) override

Definition at line 209 of Concept.cpp :
 210 {
 211     ConstraintNode::Write(writer);
 212     writer.Write(invokeExpr.get());
 213 }


Declaration at line 102 of Concept.hpp

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

Calls: sngcm::ast::Node::Write


top | up | prev | next