top | up | prev | next

InitializerNode Abstract Class

Definition at line 58 of Class.hpp

Constructors

InitializerNode(NodeType nodeType_, const Span& span_, const boost::uuids::uuid& moduleId_)

Member Functions

void AddArgument(Node* argument) override
const NodeList<Node>& Arguments() const
void Read(AstReader& reader) override
void Write(AstWriter& writer) override

Member Variables

NodeList<Node> arguments

Constructor Details

InitializerNode Constructor

sngcm::ast::InitializerNode::InitializerNode(NodeType nodeType_, const Span& span_, const boost::uuids::uuid& moduleId_)

Definition at line 211 of Class.cpp :
211 : Node(nodeType_span_moduleId_)
212 {
213 }


Declaration at line 61 of Class.hpp


Member Function Details

AddArgument Member Function

void sngcm::ast::InitializerNode::AddArgument(Node * argument) override

Definition at line 228 of Class.cpp :
229 {
230     argument->SetParent(this);
231     arguments.Add(argument);
232 }


Declaration at line 64 of Class.hpp

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

Calls: sngcm::ast::Node::SetParent , sngcm::ast::NodeList::Add

Called by: sngcm::ast::BaseInitializerNode::Clone , sngcm::ast::MemberInitializerNode::Clone , sngcm::ast::ThisInitializerNode::Clone


Arguments Member Function

const NodeList <Node >& sngcm::ast::InitializerNode::Arguments() const

Definition at line 65 of Class.hpp :
 65 { return arguments; }

Called by: sngcm::ast::BaseInitializerNode::Clone , sngcm::ast::MemberInitializerNode::Clone , sngcm::ast::SourceWriter::Visit , sngcm::ast::SourceWriter::Visit , sngcm::ast::SourceWriter::Visit , sngcm::ast::ThisInitializerNode::Clone


Read Member Function

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

Definition at line 221 of Class.cpp :
222 {
223     Node::Read(reader);
224     arguments.Read(reader);
225     arguments.SetParent(this);
226 }


Declaration at line 63 of Class.hpp

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

Derived class overrides: sngcm::ast::MemberInitializerNode::Read

Calls: sngcm::ast::Node::Read , sngcm::ast::NodeList::Read , sngcm::ast::NodeList::SetParent

Called by: sngcm::ast::MemberInitializerNode::Read


Write Member Function

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

Definition at line 215 of Class.cpp :
216 {
217     Node::Write(writer);
218     arguments.Write(writer);
219 }


Declaration at line 62 of Class.hpp

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

Derived class overrides: sngcm::ast::MemberInitializerNode::Write

Calls: sngcm::ast::Node::Write , sngcm::ast::NodeList::Write

Called by: sngcm::ast::MemberInitializerNode::Write


top | up | prev | next