top | up | prev | next

PredicateConstraintNode Class

Definition at line 95 of Concept.hpp

Constructors

PredicateConstraintNode(const Span& span_)
PredicateConstraintNode(const Span& span_, 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_)

Definition at line 180 of Concept.cpp :
 180 : ConstraintNode(NodeType::predicateConstraintNodespan_)invokeExpr()
 181 {
 182 }


Declaration at line 98 of Concept.hpp


PredicateConstraintNode Constructor

sngcm::ast::PredicateConstraintNode::PredicateConstraintNode(const Span& span_, Node * invokeExpr_)

Definition at line 184 of Concept.cpp :
 184 : ConstraintNode(NodeType::predicateConstraintNodespan_)invokeExpr(invokeExpr_)
 185 {
 186     invokeExpr->SetParent(this);
 187 }


Declaration at line 99 of Concept.hpp


Member Function Details

Accept Member Function

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

Definition at line 194 of Concept.cpp :
 195 {
 196     visitor.Visit(*this);
 197 }


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 189 of Concept.cpp :
 190 {
 191     return new PredicateConstraintNode(GetSpan()invokeExpr->Clone(cloneContext));
 192 }


Declaration at line 100 of Concept.hpp

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

Calls: sngcm::ast::Node::GetSpan , 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 205 of Concept.cpp :
 206 {
 207     ConstraintNode::Read(reader);
 208     invokeExpr.reset(reader.ReadNode());
 209     invokeExpr->SetParent(this);
 210 }


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 212 of Concept.cpp :
 213 {
 214     return invokeExpr->ToString();
 215 }


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 199 of Concept.cpp :
 200 {
 201     ConstraintNode::Write(writer);
 202     writer.Write(invokeExpr.get());
 203 }


Declaration at line 102 of Concept.hpp

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

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


top | up | prev | next