top | up | prev | next

IntegerLiteralNode Class

Definition at line 66 of Literal.hpp

Constructors

IntegerLiteralNode()
IntegerLiteralNode(const Span& span_, uint64_t value_, Suffix suffix_, Base base_, const std::u32string& rep_)

Member Functions

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

Member Variables

Base base
Suffix suffix
uint64_t value

Constructor Details

IntegerLiteralNode Constructor

sngcpp::ast::IntegerLiteralNode::IntegerLiteralNode()

Definition at line 82 of Literal.cpp :
 82 : LiteralNode(NodeType::integerLiteralNode)
 83 {
 84 }


Declaration at line 69 of Literal.hpp


IntegerLiteralNode Constructor

sngcpp::ast::IntegerLiteralNode::IntegerLiteralNode(const Span& span_, uint64_t value_, Suffix suffix_, Base base_, const std::u32string& rep_)

Definition at line 86 of Literal.cpp :
 86 :
 87 LiteralNode(NodeType::integerLiteralNodespan_rep_)value(value_)suffix(suffix_)base(base_)
 88 {
 89 }


Declaration at line 70 of Literal.hpp


Member Function Details

Accept Member Function

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

Definition at line 91 of Literal.cpp :
 92 {
 93     visitor.Visit(*this);
 94 }


Declaration at line 71 of Literal.hpp

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

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


GetBase Member Function

Base sngcpp::ast::IntegerLiteralNode::GetBase() const

Definition at line 76 of Literal.hpp :
 76 { return base; }


GetSuffix Member Function

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

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


Read Member Function

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

Definition at line 104 of Literal.cpp :
105 {
106     LiteralNode::Read(reader);
107     value = reader.GetBinaryReader().ReadULong();
108     suffix = reader.ReadSuffix();
109     base = reader.ReadBase();
110 }


Declaration at line 73 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::ReadBase , sngcpp::ast::Reader::ReadSuffix


Value Member Function

uint64_t sngcpp::ast::IntegerLiteralNode::Value() const

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


Write Member Function

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

Definition at line 96 of Literal.cpp :
 97 {
 98     LiteralNode::Write(writer);
 99     writer.GetBinaryWriter().Write(value);
100     writer.Write(suffix);
101     writer.Write(base);
102 }


Declaration at line 72 of Literal.hpp

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

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

Called by: sngcpp::ast::IntegerLiteralNode::Write


top | up | prev | next