top | up | prev | next

ForwardClassDeclarationNode Class

Definition at line 43 of Class.hpp

Constructors

ForwardClassDeclarationNode()
ForwardClassDeclarationNode(const Span& span_, ClassKey classKey_, Node* className_)

Member Functions

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

Member Variables

ClassKey classKey
std::unique_ptr<Node> className

Constructor Details

ForwardClassDeclarationNode Constructor

sngcpp::ast::ForwardClassDeclarationNode::ForwardClassDeclarationNode()

Definition at line 67 of Class.cpp :
 67 : Node(NodeType::forwardClassDeclarationNode)
 68 {
 69 }


Declaration at line 46 of Class.hpp


ForwardClassDeclarationNode Constructor

sngcpp::ast::ForwardClassDeclarationNode::ForwardClassDeclarationNode(const Span& span_, ClassKey classKey_, Node * className_)

Definition at line 71 of Class.cpp :
 71 : Node(NodeType::forwardClassDeclarationNodespan_)classKey(classKey_)className(className_)
 72 {
 73 }


Declaration at line 47 of Class.hpp


Member Function Details

Accept Member Function

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

Definition at line 75 of Class.cpp :
 76 {
 77     visitor.Visit(*this);
 78 }


Declaration at line 48 of Class.hpp

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

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


ClassName Member Function

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

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


GetClassKey Member Function

ClassKey sngcpp::ast::ForwardClassDeclarationNode::GetClassKey() const

Definition at line 51 of Class.hpp :
 51 { return classKey; }


Read Member Function

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

Definition at line 87 of Class.cpp :
 88 {
 89     Node::Read(reader);
 90     classKey = reader.ReadClassKey();
 91     className.reset(reader.ReadNode());
 92 }


Declaration at line 50 of Class.hpp

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

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


Write Member Function

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

Definition at line 80 of Class.cpp :
 81 {
 82     Node::Write(writer);
 83     writer.Write(classKey);
 84     className->Write(writer);
 85 }


Declaration at line 49 of Class.hpp

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

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

Called by: sngcpp::ast::ForwardClassDeclarationNode::Write


top | up | prev | next