Doxygen
Loading...
Searching...
No Matches
DefinitionAliasImpl Class Reference

#include <src/definitionimpl.h>

+ Collaboration diagram for DefinitionAliasImpl:

Public Member Functions

 DefinitionAliasImpl (Definition *def, const Definition *scope, const Definition *alias)
 
virtual ~DefinitionAliasImpl ()
 
void init ()
 
void deinit ()
 
const QCStringname () const
 
QCString qualifiedName () const
 

Private Attributes

Definitionm_def
 
const Definitionm_scope
 
QCString m_symbolName
 
QCString m_qualifiedName
 

Detailed Description

Definition at line 301 of file definitionimpl.h.

Constructor & Destructor Documentation

◆ DefinitionAliasImpl()

DefinitionAliasImpl::DefinitionAliasImpl ( Definition * def,
const Definition * scope,
const Definition * alias )

Definition at line 1827 of file definition.cpp.

1828 : m_def(def), m_scope(scope), m_symbolName(alias->_symbolName())
1829{
1830}
const Definition * m_scope
virtual QCString _symbolName() const =0

References m_def, m_scope, and m_symbolName.

◆ ~DefinitionAliasImpl()

DefinitionAliasImpl::~DefinitionAliasImpl ( )
virtual

Definition at line 1832 of file definition.cpp.

1833{
1834}

Member Function Documentation

◆ deinit()

void DefinitionAliasImpl::deinit ( )

Definition at line 1852 of file definition.cpp.

1853{
1855}
static void removeFromMap(const QCString &name, Definition *d)

References m_def, m_symbolName, and removeFromMap().

◆ init()

void DefinitionAliasImpl::init ( )

Definition at line 1836 of file definition.cpp.

1837{
1838 //printf("%s::addToMap(%s)\n",qPrint(name()),qPrint(alias->name()));
1840 if (m_scope==nullptr)
1841 {
1842 m_qualifiedName = m_def->localName();
1843 }
1844 else
1845 {
1846 m_qualifiedName = m_scope->qualifiedName()+
1847 getLanguageSpecificSeparator(m_scope->getLanguage())+
1848 m_def->localName();
1849 }
1850}
static void addToMap(const QCString &name, Definition *d)
QCString getLanguageSpecificSeparator(SrcLangExt lang, bool classScope)
Returns the scope separator to use given the programming language lang.
Definition util.cpp:6230

References addToMap(), getLanguageSpecificSeparator(), m_def, m_qualifiedName, m_scope, and m_symbolName.

◆ name()

const QCString & DefinitionAliasImpl::name ( ) const

Definition at line 1862 of file definition.cpp.

1863{
1864 return m_qualifiedName;
1865}

References m_qualifiedName.

◆ qualifiedName()

QCString DefinitionAliasImpl::qualifiedName ( ) const

Definition at line 1857 of file definition.cpp.

1858{
1859 return m_qualifiedName;
1860}

References m_qualifiedName.

Member Data Documentation

◆ m_def

Definition* DefinitionAliasImpl::m_def
private

Definition at line 313 of file definitionimpl.h.

Referenced by DefinitionAliasImpl(), deinit(), and init().

◆ m_qualifiedName

QCString DefinitionAliasImpl::m_qualifiedName
private

Definition at line 316 of file definitionimpl.h.

Referenced by init(), name(), and qualifiedName().

◆ m_scope

const Definition* DefinitionAliasImpl::m_scope
private

Definition at line 314 of file definitionimpl.h.

Referenced by DefinitionAliasImpl(), and init().

◆ m_symbolName

QCString DefinitionAliasImpl::m_symbolName
private

Definition at line 315 of file definitionimpl.h.

Referenced by DefinitionAliasImpl(), deinit(), and init().


The documentation for this class was generated from the following files: