top | up | prev | next

BooleanLiteralNode Class

Definition at line 113 of Literal.hpp

Constructors

BooleanLiteralNode()
BooleanLiteralNode(const Span& span_, bool value_, const std::u32string& rep_)

Member Functions

void Accept(Visitor& visitor) override
void Read(Reader& reader) override
bool Value() const
void Write(Writer& writer) override

Member Variables

bool value

Constructor Details

BooleanLiteralNode Constructor

sngcpp::ast::BooleanLiteralNode::BooleanLiteralNode()

Definition at line 168 of Literal.cpp :
168 : LiteralNode(NodeType::booleanLiteralNode)
169 {
170 }


Declaration at line 116 of Literal.hpp


BooleanLiteralNode Constructor

sngcpp::ast::BooleanLiteralNode::BooleanLiteralNode(const Span& span_, bool value_, const std::u32string& rep_)

Definition at line 172 of Literal.cpp :
172 : LiteralNode(NodeType::booleanLiteralNodespan_rep_)value(value_)
173 {
174 }


Declaration at line 117 of Literal.hpp


Member Function Details

Accept Member Function

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

Definition at line 176 of Literal.cpp :
177 {
178     visitor.Visit(*this);
179 }


Declaration at line 118 of Literal.hpp

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

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


Read Member Function

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

Definition at line 187 of Literal.cpp :
188 {
189     LiteralNode::Read(reader);
190     value = reader.GetBinaryReader().ReadBool();
191 }


Declaration at line 120 of Literal.hpp

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

Calls: sngcpp::ast::LiteralNode::Read , sngcpp::ast::Reader::GetBinaryReader


Value Member Function

bool sngcpp::ast::BooleanLiteralNode::Value() const

Definition at line 121 of Literal.hpp :
121 { return value; }


Write Member Function

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

Definition at line 181 of Literal.cpp :
182 {
183     LiteralNode::Write(writer);
184     writer.GetBinaryWriter().Write(value);
185 }


Declaration at line 119 of Literal.hpp

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

Calls: sngcpp::ast::BooleanLiteralNode::Write , sngcpp::ast::LiteralNode::Write , sngcpp::ast::Writer::GetBinaryWriter

Called by: sngcpp::ast::BooleanLiteralNode::Write


top | up | prev | next