top | up | prev | next

UuidLiteralNode Class

Definition at line 326 of Literal.hpp

Constructors

UuidLiteralNode(const Span& span_)
UuidLiteralNode(const Span& span_, const boost::uuids::uuid& uuid_)

Member Functions

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

Member Variables

boost::uuids::uuid uuid

Constructor Details

UuidLiteralNode Constructor

sngcm::ast::UuidLiteralNode::UuidLiteralNode(const Span& span_)

Definition at line 801 of Literal.cpp :
801 : LiteralNode(NodeType::uuidLiteralNodespan_)uuid(boost::uuids::nil_generator()())
802 {
803 }


Declaration at line 329 of Literal.hpp


UuidLiteralNode Constructor

sngcm::ast::UuidLiteralNode::UuidLiteralNode(const Span& span_, const boost::uuids::uuid& uuid_)

Definition at line 805 of Literal.cpp :
805 : LiteralNode(NodeType::uuidLiteralNodespan_)uuid(uuid_)
806 {
807 }


Declaration at line 330 of Literal.hpp


Member Function Details

Accept Member Function

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

Definition at line 814 of Literal.cpp :
815 {
816     visitor.Visit(*this);
817 }


Declaration at line 332 of Literal.hpp

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

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


Clone Member Function

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

Definition at line 809 of Literal.cpp :
810 {
811     return new UuidLiteralNode(GetSpan()uuid);
812 }


Declaration at line 331 of Literal.hpp

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

Calls: sngcm::ast::Node::GetSpan


GetUuid Member Function

const boost::uuids::uuid& sngcm::ast::UuidLiteralNode::GetUuid() const

Definition at line 336 of Literal.hpp :
336 { return uuid; }


Read Member Function

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

Definition at line 825 of Literal.cpp :
826 {
827     LiteralNode::Read(reader);
828     reader.GetBinaryReader().ReadUuid(uuid);
829 }


Declaration at line 334 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::ReadUuid


ToString Member Function

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

Definition at line 335 of Literal.hpp :
335 { return "uuid"; }

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


Write Member Function

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

Definition at line 819 of Literal.cpp :
820 {
821     LiteralNode::Write(writer);
822     writer.GetBinaryWriter().Write(uuid);
823 }


Declaration at line 333 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