top | up | prev | next

Attribute Class

Definition at line 23 of Attribute.hpp

Constructors

Attribute()
Attribute(const Attribute&) delete
Attribute(const Span& span_, const std::u32string& name_, const std::u32string& value_)

Member Functions

void Accept(Visitor& visitor)
const Span& GetSpan() const
const std::u32string& Name() const
void Read(AstReader& reader)
const std::u32string& Value() const
void Write(AstWriter& writer)
Attribute& operator=(const Attribute&) delete

Member Variables

std::u32string name
Span span
std::u32string value

Constructor Details

Attribute Constructor

sngcm::ast::Attribute::Attribute()

Definition at line 15 of Attribute.cpp :
 15 : span()name()value()
 16 {
 17 }


Declaration at line 26 of Attribute.hpp


Attribute Constructor

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

Definition at line 28 of Attribute.hpp


Attribute Constructor

sngcm::ast::Attribute::Attribute(const Span& span_, const std::u32string& name_, const std::u32string& value_)

Definition at line 19 of Attribute.cpp :
 19 : span(span_)name(name_)value(value_)
 20 {
 21 }



Member Function Details

Accept Member Function

void sngcm::ast::Attribute::Accept(Visitor & visitor)

Definition at line 23 of Attribute.cpp :
 24 {
 25     visitor.Visit(*this);
 26 }


Declaration at line 33 of Attribute.hpp

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


GetSpan Member Function

const Span & sngcm::ast::Attribute::GetSpan() const

Definition at line 30 of Attribute.hpp :
30 { return span; }

Called by: sngcm::ast::Attributes::AddAttribute


Name Member Function

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

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

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


Read Member Function

void sngcm::ast::Attribute::Read(AstReader & reader)

Definition at line 35 of Attribute.cpp :
 36 {
 37     span = reader.ReadSpan();
 38     name = reader.GetBinaryReader().ReadUtf32String();
 39     value = reader.GetBinaryReader().ReadUtf32String();
 40 }


Declaration at line 35 of Attribute.hpp

Calls: sngcm::ast::AstReader::GetBinaryReader , sngcm::ast::AstReader::ReadSpan , soulng::util::BinaryReader::ReadUtf32String

Called by: sngcm::ast::Attributes::Read


Value Member Function

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

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

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


Write Member Function

void sngcm::ast::Attribute::Write(AstWriter & writer)

Definition at line 28 of Attribute.cpp :
 29 {
 30     writer.Write(span);
 31     writer.GetBinaryWriter().Write(name);
 32     writer.GetBinaryWriter().Write(value);
 33 }


Declaration at line 34 of Attribute.hpp

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


operator= Member Function

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

Definition at line 29 of Attribute.hpp


top | up | prev | next