top | up | prev | next

WhereConstraintNode Class

Definition at line 73 of Concept.hpp

Constructors

WhereConstraintNode(const Span& span_, const boost::uuids::uuid& moduleId_)
WhereConstraintNode(const Span& span_, const boost::uuids::uuid& moduleId_, ConstraintNode* constraint_)

Member Functions

void Accept(Visitor& visitor) override
Node* Clone(CloneContext& cloneContext) const override
const ConstraintNode* Constraint() const
ConstraintNode* Constraint()
bool IsHeaderConstraint() const override
void Read(AstReader& reader) override
bool Semicolon() const
void SetHeaderConstraint()
void SetSemicolon()
std::string ToString() const override
void Write(AstWriter& writer) override

Member Variables

std::unique_ptr<ConstraintNode> constraint
bool headerConstraint
bool semicolon

Constructor Details

WhereConstraintNode Constructor

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

Definition at line 135 of Concept.cpp :
 135 :
 136 ConstraintNode(NodeType::whereConstraintNodespan_moduleId_)constraint()headerConstraint(false)semicolon(false)
 137 {
 138 }


Declaration at line 76 of Concept.hpp


WhereConstraintNode Constructor

sngcm::ast::WhereConstraintNode::WhereConstraintNode(const Span& span_, const boost::uuids::uuid& moduleId_, ConstraintNode * constraint_)

Definition at line 140 of Concept.cpp :
 140 :
 141 ConstraintNode(NodeType::whereConstraintNodespan_moduleId_)constraint(constraint_)headerConstraint(false)semicolon(false)
 142 {
 143     constraint->SetParent(this);
 144 }


Declaration at line 77 of Concept.hpp


Member Function Details

Accept Member Function

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

Definition at line 160 of Concept.cpp :
 161 {
 162     visitor.Visit(*this);
 163 }


Declaration at line 79 of Concept.hpp

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

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

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


Clone Member Function

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

Definition at line 146 of Concept.cpp
Declaration at line 78 of Concept.hpp

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

Calls: sngcm::ast::Node::GetSpan , sngcm::ast::Node::ModuleId , sngcm::ast::WhereConstraintNode::Clone , sngcm::ast::WhereConstraintNode::SetHeaderConstraint , sngcm::ast::WhereConstraintNode::SetSemicolon

Called by: sngcm::ast::WhereConstraintNode::Clone


Constraint Member Function

const ConstraintNode * sngcm::ast::WhereConstraintNode::Constraint() const

Definition at line 82 of Concept.hpp :
 82 { return constraint.get(); }


Constraint Member Function

ConstraintNode * sngcm::ast::WhereConstraintNode::Constraint()

Definition at line 83 of Concept.hpp :
 83 { return constraint.get(); }

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


IsHeaderConstraint Member Function

bool sngcm::ast::WhereConstraintNode::IsHeaderConstraint() const override

Definition at line 86 of Concept.hpp :
 86 { return headerConstraint; }

Base class overridden functions: sngcm::ast::ConstraintNode::IsHeaderConstraint


Read Member Function

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

Definition at line 173 of Concept.cpp :
 174 {
 175     ConstraintNode::Read(reader);
 176     constraint.reset(reader.ReadConstraintNode());
 177     constraint->SetParent(this);
 178     headerConstraint = reader.GetBinaryReader().ReadBool();
 179     semicolon = reader.GetBinaryReader().ReadBool();
 180 }


Declaration at line 81 of Concept.hpp

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

Calls: sngcm::ast::AstReader::GetBinaryReader , sngcm::ast::AstReader::ReadConstraintNode , sngcm::ast::Node::Read , sngcm::ast::Node::SetParent , soulng::util::BinaryReader::ReadBool


Semicolon Member Function

bool sngcm::ast::WhereConstraintNode::Semicolon() const

Definition at line 88 of Concept.hpp :
 88 { return semicolon; }

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


SetHeaderConstraint Member Function

void sngcm::ast::WhereConstraintNode::SetHeaderConstraint()

Definition at line 85 of Concept.hpp :
 85 { headerConstraint = true; }

Called by: sngcm::ast::WhereConstraintNode::Clone


SetSemicolon Member Function

void sngcm::ast::WhereConstraintNode::SetSemicolon()

Definition at line 87 of Concept.hpp :
 87 { semicolon = true; }

Called by: sngcm::ast::WhereConstraintNode::Clone


ToString Member Function

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

Definition at line 182 of Concept.cpp :
 183 {
 184     return "where " + constraint->ToString();
 185 }


Declaration at line 84 of Concept.hpp

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

Calls: sngcm::ast::WhereConstraintNode::ToString

Called by: sngcm::ast::WhereConstraintNode::ToString


Write Member Function

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

Definition at line 165 of Concept.cpp :
 166 {
 167     ConstraintNode::Write(writer);
 168     writer.Write(constraint.get());
 169     writer.GetBinaryWriter().Write(headerConstraint);
 170     writer.GetBinaryWriter().Write(semicolon);
 171 }


Declaration at line 80 of Concept.hpp

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

Calls: sngcm::ast::AstWriter::GetBinaryWriter , sngcm::ast::Node::Write , soulng::util::BinaryWriter::Write


top | up | prev | next