top | up | prev | next

BaseClassSpecifierNode Class

Definition at line 20 of Class.hpp

Constructors

BaseClassSpecifierNode()
BaseClassSpecifierNode(const Span& span_, Specifier baseSpecifiers_, Node* className_)

Member Functions

void Accept(Visitor& visitor) override
Specifier BaseSpecifiers() const
Node* ClassName()
void Read(Reader& reader) override
void Write(Writer& writer) override

Member Variables

Specifier baseSpecifiers
std::unique_ptr<Node> className

Constructor Details

BaseClassSpecifierNode Constructor

sngcpp::ast::BaseClassSpecifierNode::BaseClassSpecifierNode()

Definition at line 26 of Class.cpp :
 26 : Node(NodeType::baseClassSpecifierNode)
 27 {
 28 }


Declaration at line 23 of Class.hpp


BaseClassSpecifierNode Constructor

sngcpp::ast::BaseClassSpecifierNode::BaseClassSpecifierNode(const Span& span_, Specifier baseSpecifiers_, Node * className_)

Definition at line 30 of Class.cpp :
 30 :
 31 Node(NodeType::baseClassSpecifierNodespan_)baseSpecifiers(baseSpecifiers_)className(className_)
 32 {
 33 }


Declaration at line 24 of Class.hpp


Member Function Details

Accept Member Function

void sngcpp::ast::BaseClassSpecifierNode::Accept(Visitor & visitor) override

Definition at line 35 of Class.cpp :
 36 {
 37     visitor.Visit(*this);
 38 }


Declaration at line 25 of Class.hpp

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

Calls: sngcpp::ast::Visitor::Visit


BaseSpecifiers Member Function

Specifier sngcpp::ast::BaseClassSpecifierNode::BaseSpecifiers() const

Definition at line 28 of Class.hpp :
 28 { return baseSpecifiers; }


ClassName Member Function

Node * sngcpp::ast::BaseClassSpecifierNode::ClassName()

Definition at line 29 of Class.hpp :
 29 { return className.get(); }


Read Member Function

void sngcpp::ast::BaseClassSpecifierNode::Read(Reader & reader) override

Definition at line 47 of Class.cpp :
 48 {
 49     Node::Read(reader);
 50     baseSpecifiers = reader.ReadSpecifiers();
 51     className.reset(reader.ReadNode());
 52 }


Declaration at line 27 of Class.hpp

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

Calls: sngcpp::ast::Node::Read , sngcpp::ast::Reader::ReadNode , sngcpp::ast::Reader::ReadSpecifiers


Write Member Function

void sngcpp::ast::BaseClassSpecifierNode::Write(Writer & writer) override

Definition at line 40 of Class.cpp :
 41 {
 42     Node::Write(writer);
 43     writer.Write(baseSpecifiers);
 44     className->Write(writer);
 45 }


Declaration at line 26 of Class.hpp

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

Calls: sngcpp::ast::BaseClassSpecifierNode::Write , sngcpp::ast::Node::Write , sngcpp::ast::Writer::Write

Called by: sngcpp::ast::BaseClassSpecifierNode::Write


top | up | prev | next