top | up | prev | next

ParameterSymbol Class

Definition at line 37 of VariableSymbol.hpp

Constructors

ParameterSymbol(const Span& span_, const boost::uuids::uuid& sourceModuleId_, const std::u32string& name_)

Member Functions

bool ArtificialName() const
const char* ClassName() const override
ParameterSymbol* Clone() const
std::u32string CodeName() const override
std::unique_ptr<Element> CreateDomElement(TypeMap& typeMap) override
SymbolAccess DeclaredAccess() const override
std::string GetSymbolCategoryDescription() const override
std::string GetSymbolCategoryStr() const override
std::string GetSymbolHelp() const override
bool IsExportSymbol() const override
void Read(SymbolReader& reader) override
void SetArtificialName()
std::string TypeString() const override
void Write(SymbolWriter& writer) override

Member Variables

bool artificialName

Constructor Details

ParameterSymbol Constructor

cmajor::symbols::ParameterSymbol::ParameterSymbol(const Span& span_, const boost::uuids::uuid& sourceModuleId_, const std::u32string& name_)

Definition at line 90 of VariableSymbol.cpp :
 90 :
 91 VariableSymbol(SymbolType::parameterSymbolspan_sourceModuleId_name_)artificialName(false)
 92 {
 93 }


Declaration at line 40 of VariableSymbol.hpp


Member Function Details

ArtificialName Member Function

bool cmajor::symbols::ParameterSymbol::ArtificialName() const

Definition at line 48 of VariableSymbol.hpp :
 48 { return artificialName; }


ClassName Member Function

const char * cmajor::symbols::ParameterSymbol::ClassName() const override

Definition at line 47 of VariableSymbol.hpp :
 47 { return "ParameterSymbol"; }

Base class overridden functions: cmajor::symbols::Symbol::ClassName , cmajor::symbols::VariableSymbol::ClassName


Clone Member Function

ParameterSymbol * cmajor::symbols::ParameterSymbol::Clone() const

Definition at line 134 of VariableSymbol.cpp :
135 {
136     ParameterSymbol* clone = new ParameterSymbol(GetSpan()SourceModuleId()Name());
137     clone->SetType(const_cast<TypeSymbol*>(GetType()));
138     clone->artificialName = artificialName;
139     return clone;
140 }


Declaration at line 51 of VariableSymbol.hpp

Calls: cmajor::symbols::Symbol::GetSpan , cmajor::symbols::Symbol::Name , cmajor::symbols::Symbol::SourceModuleId , cmajor::symbols::VariableSymbol::GetType , cmajor::symbols::VariableSymbol::SetType


CodeName Member Function

std::u32string cmajor::symbols::ParameterSymbol::CodeName() const override

Definition at line 112 of VariableSymbol.cpp :
113 {
114     if (artificialName)
115     {
116         return std::u32string();
117     }
118     return VariableSymbol::CodeName();
119 }


Declaration at line 50 of VariableSymbol.hpp

Base class overridden functions: cmajor::symbols::Symbol::CodeName

Calls: cmajor::symbols::Symbol::CodeName


CreateDomElement Member Function

std::unique_ptr<Element > cmajor::symbols::ParameterSymbol::CreateDomElement(TypeMap & typeMap) override

Definition at line 121 of VariableSymbol.cpp
Declaration at line 46 of VariableSymbol.hpp

Base class overridden functions: cmajor::symbols::Symbol::CreateDomElement

Calls: cmajor::symbols::TypeMap::GetOrInsertType , cmajor::symbols::VariableSymbol::GetType


DeclaredAccess Member Function

SymbolAccess cmajor::symbols::ParameterSymbol::DeclaredAccess() const override

Definition at line 44 of VariableSymbol.hpp :
 44 { return SymbolAccess::public_; }

Base class overridden functions: cmajor::symbols::Symbol::DeclaredAccess


GetSymbolCategoryDescription Member Function

std::string cmajor::symbols::ParameterSymbol::GetSymbolCategoryDescription() const override

Definition at line 53 of VariableSymbol.hpp :
 53 { return "parameter"; }

Base class overridden functions: cmajor::symbols::Symbol::GetSymbolCategoryDescription

Called by: cmajor::symbols::ParameterSymbol::GetSymbolHelp


GetSymbolCategoryStr Member Function

std::string cmajor::symbols::ParameterSymbol::GetSymbolCategoryStr() const override

Definition at line 52 of VariableSymbol.hpp :
 52 { return "PA"; }

Base class overridden functions: cmajor::symbols::Symbol::GetSymbolCategoryStr


GetSymbolHelp Member Function

std::string cmajor::symbols::ParameterSymbol::GetSymbolHelp() const override

Definition at line 142 of VariableSymbol.cpp :
143 {
144     if (!GetType()) return std::string();
145     std::string help = "(";
146     help.append(GetSymbolCategoryDescription()).append(") ");
147     help.append(ToUtf8(GetType()->FullName())).append(" ");
148     help.append(ToUtf8(Name()));
149     return help;
150 }


Declaration at line 54 of VariableSymbol.hpp

Base class overridden functions: cmajor::symbols::Symbol::GetSymbolHelp , cmajor::symbols::VariableSymbol::GetSymbolHelp

Calls: cmajor::symbols::ParameterSymbol::GetSymbolCategoryDescription , cmajor::symbols::Symbol::FullName , cmajor::symbols::Symbol::Name , cmajor::symbols::VariableSymbol::GetType


IsExportSymbol Member Function

bool cmajor::symbols::ParameterSymbol::IsExportSymbol() const override

Definition at line 107 of VariableSymbol.cpp :
108 {
109     return VariableSymbol::IsExportSymbol();
110 }


Declaration at line 43 of VariableSymbol.hpp

Base class overridden functions: cmajor::symbols::Symbol::IsExportSymbol

Calls: cmajor::symbols::Symbol::IsExportSymbol


Read Member Function

void cmajor::symbols::ParameterSymbol::Read(SymbolReader & reader) override

Definition at line 101 of VariableSymbol.cpp :
102 {
103     VariableSymbol::Read(reader);
104     artificialName = reader.GetBinaryReader().ReadBool();
105 }


Declaration at line 42 of VariableSymbol.hpp

Base class overridden functions: cmajor::symbols::Symbol::Read , cmajor::symbols::VariableSymbol::Read

Calls: cmajor::symbols::SymbolReader::GetBinaryReader , cmajor::symbols::VariableSymbol::Read


SetArtificialName Member Function

void cmajor::symbols::ParameterSymbol::SetArtificialName()

Definition at line 49 of VariableSymbol.hpp :
 49 { artificialName = true; }

Called by: cmajor::symbols::SymbolTable::AddParameter


TypeString Member Function

std::string cmajor::symbols::ParameterSymbol::TypeString() const override

Definition at line 45 of VariableSymbol.hpp :
 45 { return "parameter"; }

Base class overridden functions: cmajor::symbols::Symbol::TypeString


Write Member Function

void cmajor::symbols::ParameterSymbol::Write(SymbolWriter & writer) override

Definition at line 95 of VariableSymbol.cpp :
 96 {
 97     VariableSymbol::Write(writer);
 98     writer.GetBinaryWriter().Write(artificialName);
 99 }


Declaration at line 41 of VariableSymbol.hpp

Base class overridden functions: cmajor::symbols::Symbol::Write , cmajor::symbols::VariableSymbol::Write

Calls: cmajor::symbols::ParameterSymbol::Write , cmajor::symbols::SymbolWriter::GetBinaryWriter , cmajor::symbols::VariableSymbol::Write

Called by: cmajor::symbols::ParameterSymbol::Write


top | up | prev | next