top | up | prev | next

MemberFunctionSymbol Class

Definition at line 377 of FunctionSymbol.hpp

Constructors

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

Member Functions

const char* ClassName() const override
FunctionSymbol* Copy() const override
std::u32string DocName() const override
ParameterSymbol* GetThisParam() const override
bool IsConstructorDestructorOrNonstaticMemberFunction() const override
void SetSpecifiers(Specifiers specifiers)
int StartParamIndex() const override
std::string TypeString() const override

Constructor Details

MemberFunctionSymbol Constructor

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

Definition at line 1988 of FunctionSymbol.cpp :
1988 :
1989 FunctionSymbol(SymbolType::memberFunctionSymbolspan_sourceModuleId_name_)
1990 {
1991 }


Declaration at line 380 of FunctionSymbol.hpp


Member Function Details

ClassName Member Function

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

Definition at line 386 of FunctionSymbol.hpp :
386 { return "MemberFunctionSymbol"; }

Base class overridden functions: cmajor::symbols::ContainerSymbol::ClassName , cmajor::symbols::FunctionSymbol::ClassName , cmajor::symbols::Symbol::ClassName


Copy Member Function

FunctionSymbol * cmajor::symbols::MemberFunctionSymbol::Copy() const override

Definition at line 1993 of FunctionSymbol.cpp :
1994 {
1995     MemberFunctionSymbol* copy = new MemberFunctionSymbol(GetSpan()SourceModuleId()Name());
1996     copy->CopyFrom(this);
1997     return copy;
1998 }


Declaration at line 388 of FunctionSymbol.hpp

Base class overridden functions: cmajor::symbols::FunctionSymbol::Copy

Calls: cmajor::symbols::FunctionSymbol::CopyFrom , cmajor::symbols::Symbol::GetSpan , cmajor::symbols::Symbol::Name , cmajor::symbols::Symbol::SourceModuleId


DocName Member Function

std::u32string cmajor::symbols::MemberFunctionSymbol::DocName() const override

Definition at line 2016 of FunctionSymbol.cpp
Declaration at line 382 of FunctionSymbol.hpp

Base class overridden functions: cmajor::symbols::FunctionSymbol::DocName , cmajor::symbols::Symbol::DocName

Calls: cmajor::symbols::ClassTemplateSpecializationSymbol::GetClassTemplate , cmajor::symbols::FunctionSymbol::GroupName , cmajor::symbols::FunctionSymbol::IsConst , cmajor::symbols::FunctionSymbol::Parameters , cmajor::symbols::Symbol::FullName , cmajor::symbols::Symbol::GetSymbolType , cmajor::symbols::Symbol::IsStatic , cmajor::symbols::Symbol::Name , cmajor::symbols::Symbol::Ns , cmajor::symbols::VariableSymbol::GetType


GetThisParam Member Function

ParameterSymbol * cmajor::symbols::MemberFunctionSymbol::GetThisParam() const override

Definition at line 383 of FunctionSymbol.hpp :
383 { if (IsStatic()) return nullptr; else return Parameters()[0]; }

Base class overridden functions: cmajor::symbols::FunctionSymbol::GetThisParam

Calls: cmajor::symbols::FunctionSymbol::Parameters , cmajor::symbols::Symbol::IsStatic


IsConstructorDestructorOrNonstaticMemberFunction Member Function

bool cmajor::symbols::MemberFunctionSymbol::IsConstructorDestructorOrNonstaticMemberFunction() const override

Definition at line 384 of FunctionSymbol.hpp :
384 { return !IsStatic(); }

Base class overridden functions: cmajor::symbols::FunctionSymbol::IsConstructorDestructorOrNonstaticMemberFunction

Calls: cmajor::symbols::Symbol::IsStatic


SetSpecifiers Member Function

void cmajor::symbols::MemberFunctionSymbol::SetSpecifiers(Specifiers specifiers)

Definition at line 2067 of FunctionSymbol.cpp
Declaration at line 385 of FunctionSymbol.hpp

Calls: cmajor::symbols::FunctionSymbol::GroupName , cmajor::symbols::FunctionSymbol::IsInline , cmajor::symbols::FunctionSymbol::IsOverride , cmajor::symbols::FunctionSymbol::IsSuppressed , cmajor::symbols::FunctionSymbol::IsVirtual , cmajor::symbols::FunctionSymbol::IsVirtualAbstractOrOverride , cmajor::symbols::FunctionSymbol::SetAbstract , cmajor::symbols::FunctionSymbol::SetConst , cmajor::symbols::FunctionSymbol::SetConstExpr , cmajor::symbols::FunctionSymbol::SetDefault , cmajor::symbols::FunctionSymbol::SetInline , cmajor::symbols::FunctionSymbol::SetNew , cmajor::symbols::FunctionSymbol::SetOverride , cmajor::symbols::FunctionSymbol::SetSuppressed , cmajor::symbols::FunctionSymbol::SetVirtual , cmajor::symbols::Symbol::GetSpan , cmajor::symbols::Symbol::IsNothrow , cmajor::symbols::Symbol::SetAccess , cmajor::symbols::Symbol::SetNothrow , cmajor::symbols::Symbol::SetStatic , cmajor::symbols::Symbol::SourceModuleId


StartParamIndex Member Function

int cmajor::symbols::MemberFunctionSymbol::StartParamIndex() const override

Definition at line 2178 of FunctionSymbol.cpp :
2179 {
2180     if (IsStatic())
2181     {
2182         return 0;
2183     }
2184     else
2185     {
2186         return 1;
2187     }
2188 }


Declaration at line 387 of FunctionSymbol.hpp

Base class overridden functions: cmajor::symbols::FunctionSymbol::StartParamIndex

Calls: cmajor::symbols::Symbol::IsStatic


TypeString Member Function

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

Definition at line 2000 of FunctionSymbol.cpp
Declaration at line 381 of FunctionSymbol.hpp

Base class overridden functions: cmajor::symbols::ContainerSymbol::TypeString , cmajor::symbols::FunctionSymbol::TypeString , cmajor::symbols::Symbol::TypeString

Calls: cmajor::symbols::FunctionSymbol::IsCopyAssignment , cmajor::symbols::FunctionSymbol::IsMoveAssignment


top | up | prev | next