top | up | prev | next

EnumeratorSymbol Class

Definition at line 36 of EnumerationSymbol.hpp

Constructors

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

Member Functions

std::unique_ptr<sngxml::dom::Element> CreateElement() override
TypeSymbol* GetType() override
bool IsEnumeratorSymbol() const override
std::u32string KindStr() override
const std::u32string& Value() const

Member Variables

std::u32string value

Constructor Details

EnumeratorSymbol Constructor

sngcpp::symbols::EnumeratorSymbol::EnumeratorSymbol(const Span& span_, const std::u32string& name_, const std::u32string& value_)

Definition at line 34 of EnumerationSymbol.cpp :
34 : Symbol(span_name_)value(value_)
35 {
36 }


Declaration at line 39 of EnumerationSymbol.hpp


Member Function Details

CreateElement Member Function

std::unique_ptr<sngxml::dom::Element> sngcpp::symbols::EnumeratorSymbol::CreateElement() override

Definition at line 38 of EnumerationSymbol.cpp :
39 {
40     std::unique_ptr<sngxml::dom::Element> enumeratorElement(new sngxml::dom::Element(U"enumerator"));
41     enumeratorElement->SetAttribute(U"value"value);
42     return enumeratorElement;
43 }


Declaration at line 42 of EnumerationSymbol.hpp

Base class overridden functions: sngcpp::symbols::Symbol::CreateElement


GetType Member Function

TypeSymbol * sngcpp::symbols::EnumeratorSymbol::GetType() override

Definition at line 40 of EnumerationSymbol.hpp :
40 { return Parent()->GetType(); }

Base class overridden functions: sngcpp::symbols::Symbol::GetType

Calls: sngcpp::symbols::Symbol::GetType , sngcpp::symbols::Symbol::Parent


IsEnumeratorSymbol Member Function

bool sngcpp::symbols::EnumeratorSymbol::IsEnumeratorSymbol() const override

Definition at line 43 of EnumerationSymbol.hpp :
43 { return true; }

Base class overridden functions: sngcpp::symbols::Symbol::IsEnumeratorSymbol


KindStr Member Function

std::u32string sngcpp::symbols::EnumeratorSymbol::KindStr() override

Definition at line 41 of EnumerationSymbol.hpp :
41 { return U"enumerator"; }

Base class overridden functions: sngcpp::symbols::Symbol::KindStr


Value Member Function

const std::u32string& sngcpp::symbols::EnumeratorSymbol::Value() const

Definition at line 44 of EnumerationSymbol.hpp :
44 { return value; }


top | up | prev | next