top | up | prev | next

UuidLiteralNode Class

Definition at line 327 of Literal.hpp

Constructors

UuidLiteralNode(const Span& span_, const boost::uuids::uuid& moduleId_)
UuidLiteralNode(const Span& span_, const boost::uuids::uuid& moduleId_, 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_, const boost::uuids::uuid& moduleId_)

Definition at line 852 of Literal.cpp :
852 :
853 LiteralNode(NodeType::uuidLiteralNodespan_moduleId_)uuid(boost::uuids::nil_uuid())
854 {
855 }


Declaration at line 330 of Literal.hpp


UuidLiteralNode Constructor

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

Definition at line 857 of Literal.cpp :
857 :
858 LiteralNode(NodeType::uuidLiteralNodespan_moduleId_)uuid(uuid_)
859 {
860 }


Declaration at line 331 of Literal.hpp


Member Function Details

Accept Member Function

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

Definition at line 868 of Literal.cpp :
869 {
870     visitor.Visit(*this);
871 }


Declaration at line 333 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 862 of Literal.cpp :
863 {
864     UuidLiteralNode* clone = new UuidLiteralNode(GetSpan()ModuleId()uuid);
865     return clone;
866 }


Declaration at line 332 of Literal.hpp

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

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


GetUuid Member Function

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

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


Read Member Function

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

Definition at line 879 of Literal.cpp :
880 {
881     LiteralNode::Read(reader);
882     reader.GetBinaryReader().ReadUuid(uuid);
883 }


Declaration at line 335 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 336 of Literal.hpp :
336 { return "uuid"; }

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


Write Member Function

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

Definition at line 873 of Literal.cpp :
874 {
875     LiteralNode::Write(writer);
876     writer.GetBinaryWriter().Write(uuid);
877 }


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