top | up | prev | next

TemplateParameterSymbol Class

Definition at line 12 of TemplateSymbol.hpp

Constructors

TemplateParameterSymbol(const Span& span_, const std::u32string& name_)

Member Functions

std::unique_ptr<sngxml::dom::Element> CreateElement() override
bool IsTemplateParameterSymbol() const override
std::u32string KindStr() override
int MatchValue(TypeSymbol* argumentType) override

Constructor Details

TemplateParameterSymbol Constructor

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

Definition at line 10 of TemplateSymbol.cpp :
10 : TypeSymbol(span_name_)
11 {
12 }


Declaration at line 15 of TemplateSymbol.hpp


Member Function Details

CreateElement Member Function

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

Definition at line 14 of TemplateSymbol.cpp :
15 {
16     std::unique_ptr<sngxml::dom::Element> templateParameter(new sngxml::dom::Element(U"templateParameter"));
17     return templateParameter;
18 }


Declaration at line 17 of TemplateSymbol.hpp

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


IsTemplateParameterSymbol Member Function

bool sngcpp::symbols::TemplateParameterSymbol::IsTemplateParameterSymbol() const override

Definition at line 18 of TemplateSymbol.hpp :
18 { return true; }

Base class overridden functions: sngcpp::symbols::TypeSymbol::IsTemplateParameterSymbol


KindStr Member Function

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

Definition at line 16 of TemplateSymbol.hpp :
16 { return U"templateParameter"; }

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


MatchValue Member Function

int sngcpp::symbols::TemplateParameterSymbol::MatchValue(TypeSymbol * argumentType) override

Definition at line 20 of TemplateSymbol.cpp :
21 {
22     return std::numeric_limits<int>::max() - 1;
23 }


Declaration at line 19 of TemplateSymbol.hpp

Base class overridden functions: sngcpp::symbols::TypeSymbol::MatchValue


top | up | prev | next