top | up | prev | next

FloatingLiteralNode Class

Definition at line 51 of Literal.hpp

Constructors

FloatingLiteralNode()
FloatingLiteralNode(const Span& span_, double value_, Suffix suffix_, const std::u32string& rep_)

Member Functions

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

Member Variables

Suffix suffix
double value

Constructor Details

FloatingLiteralNode Constructor

sngcpp::ast::FloatingLiteralNode::FloatingLiteralNode()

Definition at line 55 of Literal.cpp :
 55 : LiteralNode(NodeType::floatingLiteralNode)
 56 {
 57 }


Declaration at line 54 of Literal.hpp


FloatingLiteralNode Constructor

sngcpp::ast::FloatingLiteralNode::FloatingLiteralNode(const Span& span_, double value_, Suffix suffix_, const std::u32string& rep_)

Definition at line 59 of Literal.cpp :
 59 : LiteralNode(NodeType::floatingLiteralNodespan_rep_)value(value_)suffix(suffix_)
 60 {
 61 }


Declaration at line 55 of Literal.hpp


Member Function Details

Accept Member Function

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

Definition at line 63 of Literal.cpp :
 64 {
 65     visitor.Visit(*this);
 66 }


Declaration at line 56 of Literal.hpp

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

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


GetSuffix Member Function

Suffix sngcpp::ast::FloatingLiteralNode::GetSuffix() const

Definition at line 60 of Literal.hpp :
 60 { return suffix; }


Read Member Function

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

Definition at line 75 of Literal.cpp :
 76 {
 77     LiteralNode::Read(reader);
 78     value = reader.GetBinaryReader().ReadDouble();
 79     suffix = reader.ReadSuffix();
 80 }


Declaration at line 58 of Literal.hpp

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

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


Value Member Function

double sngcpp::ast::FloatingLiteralNode::Value() const

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


Write Member Function

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

Definition at line 68 of Literal.cpp :
 69 {
 70     LiteralNode::Write(writer);
 71     writer.GetBinaryWriter().Write(value);
 72     writer.Write(suffix);
 73 }


Declaration at line 57 of Literal.hpp

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

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

Called by: sngcpp::ast::FloatingLiteralNode::Write


top | up | prev | next