top | up | prev | next

AttributeNode Class

Definition at line 12 of Attribute.hpp

Constructors

AttributeNode(const AttributeNode&) delete
AttributeNode(const Span& span_, const boost::uuids::uuid& moduleId_)
AttributeNode(const Span& span_, const boost::uuids::uuid& moduleId_, const std::u32string& name_, const std::u32string& value_)

Member Functions

void Accept(Visitor& visitor) override
Node* Clone(CloneContext& cloneContext) const override
const std::u32string& Name() const
void Read(AstReader& reader) override
const std::u32string& Value() const
void Write(AstWriter& writer) override
AttributeNode& operator=(const AttributeNode&) delete

Member Variables

std::u32string name
std::u32string value

Constructor Details

AttributeNode Constructor

sngcm::ast::AttributeNode::AttributeNode(const AttributeNode &) delete

Definition at line 17 of Attribute.hpp


AttributeNode Constructor

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

Definition at line 16 of Attribute.cpp :
 16 : Node(NodeType::attributeNodespan_moduleId_)name()value()
 17 {
 18 }


Declaration at line 15 of Attribute.hpp


AttributeNode Constructor

sngcm::ast::AttributeNode::AttributeNode(const Span& span_, const boost::uuids::uuid& moduleId_, const std::u32string& name_, const std::u32string& value_)

Definition at line 20 of Attribute.cpp :
 20 :
 21 Node(NodeType::attributeNodespan_moduleId_)name(name_)value(value_)
 22 {
 23 }


Declaration at line 16 of Attribute.hpp


Member Function Details

Accept Member Function

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

Definition at line 30 of Attribute.cpp :
 31 {
 32     visitor.Visit(*this);
 33 }


Declaration at line 22 of Attribute.hpp

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

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


Clone Member Function

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

Definition at line 25 of Attribute.cpp :
 26 {
 27     return new AttributeNode(GetSpan()ModuleId()namevalue);
 28 }


Declaration at line 21 of Attribute.hpp

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

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


Name Member Function

const std::u32string& sngcm::ast::AttributeNode::Name() const

Definition at line 19 of Attribute.hpp :
19 { return name; }

Called by: sngcm::ast::AttributesNode::AddAttribute , sngcm::ast::SourceWriter::Visit


Read Member Function

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

Definition at line 42 of Attribute.cpp :
 43 {
 44     Node::Read(reader);
 45     name = reader.GetBinaryReader().ReadUtf32String();
 46     value = reader.GetBinaryReader().ReadUtf32String();
 47 }


Declaration at line 24 of Attribute.hpp

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

Calls: sngcm::ast::AstReader::GetBinaryReader , sngcm::ast::Node::Read , soulng::util::BinaryReader::ReadUtf32String


Value Member Function

const std::u32string& sngcm::ast::AttributeNode::Value() const

Definition at line 20 of Attribute.hpp :
20 { return value; }

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


Write Member Function

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

Definition at line 35 of Attribute.cpp :
 36 {
 37     Node::Write(writer);
 38     writer.GetBinaryWriter().Write(name);
 39     writer.GetBinaryWriter().Write(value);
 40 }


Declaration at line 23 of Attribute.hpp

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

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


operator= Member Function

AttributeNode & sngcm::ast::AttributeNode::operator=(const AttributeNode &) delete

Definition at line 18 of Attribute.hpp


top | up | prev | next