top | up | prev | next

ULongLiteralNode Class

Definition at line 151 of Literal.hpp

Constructors

ULongLiteralNode(const Span& span_, const boost::uuids::uuid& moduleId_)
ULongLiteralNode(const Span& span_, const boost::uuids::uuid& moduleId_, uint64_t value_)

Member Functions

void Accept(Visitor& visitor) override
Node* Clone(CloneContext& cloneContext) const override
void Read(AstReader& reader) override
std::string ToString() const override
uint64_t Value() const
void Write(AstWriter& writer) override

Member Variables

uint64_t value

Constructor Details

ULongLiteralNode Constructor

sngcm::ast::ULongLiteralNode::ULongLiteralNode(const Span& span_, const boost::uuids::uuid& moduleId_)

Definition at line 418 of Literal.cpp :
418 : LiteralNode(NodeType::ulongLiteralNodespan_moduleId_)value(0u)
419 {
420 }


Declaration at line 154 of Literal.hpp


ULongLiteralNode Constructor

sngcm::ast::ULongLiteralNode::ULongLiteralNode(const Span& span_, const boost::uuids::uuid& moduleId_, uint64_t value_)

Definition at line 422 of Literal.cpp :
422 :
423 LiteralNode(NodeType::ulongLiteralNodespan_moduleId_)value(value_)
424 {
425 }


Declaration at line 155 of Literal.hpp


Member Function Details

Accept Member Function

void sngcm::ast::ULongLiteralNode::Accept(Visitor & visitor) override

Definition at line 433 of Literal.cpp :
434 {
435     visitor.Visit(*this);
436 }


Declaration at line 157 of Literal.hpp

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

Calls: sngcm::ast::Visitor::Visit


Clone Member Function

Node * sngcm::ast::ULongLiteralNode::Clone(CloneContext & cloneContext) const override

Definition at line 427 of Literal.cpp :
428 {
429     ULongLiteralNode* clone = new ULongLiteralNode(GetSpan()ModuleId()value);
430     return clone;
431 }


Declaration at line 156 of Literal.hpp

Base class overridden functions: sngcm::ast::Node::Clone

Calls: sngcm::ast::Node::GetSpan , sngcm::ast::Node::ModuleId


Read Member Function

void sngcm::ast::ULongLiteralNode::Read(AstReader & reader) override

Definition at line 444 of Literal.cpp :
445 {
446     LiteralNode::Read(reader);
447     value = reader.GetBinaryReader().ReadULong();
448 }


Declaration at line 159 of Literal.hpp

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

Calls: sngcm::ast::AstReader::GetBinaryReader , sngcm::ast::LiteralNode::Read , soulng::util::BinaryReader::ReadULong


ToString Member Function

std::string sngcm::ast::ULongLiteralNode::ToString() const override

Definition at line 450 of Literal.cpp :
451 {
452     return std::to_string(value) + "u";
453 }


Declaration at line 160 of Literal.hpp

Base class overridden functions: sngcm::ast::Node::ToString


Value Member Function

uint64_t sngcm::ast::ULongLiteralNode::Value() const

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

Called by: sngcm::ast::SourceWriter::Visit


Write Member Function

void sngcm::ast::ULongLiteralNode::Write(AstWriter & writer) override

Definition at line 438 of Literal.cpp :
439 {
440     LiteralNode::Write(writer);
441     writer.GetBinaryWriter().Write(value);
442 }


Declaration at line 158 of Literal.hpp

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

Calls: sngcm::ast::AstWriter::GetBinaryWriter , sngcm::ast::LiteralNode::Write , soulng::util::BinaryWriter::Write


top | up | prev | next