Doxygen
Loading...
Searching...
No Matches
conceptdef.h File Reference

#include <src/conceptdef.h>

Include dependency graph for conceptdef.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

class  ConceptDef
struct  ConceptDef::Part
class  ConceptDefMutable
class  ConceptLinkedMap
class  ConceptLinkedRefMap

Functions

std::unique_ptr< ConceptDef > createConceptDef (const DString &fileName, int startLine, size_t startColumn, const DString &name, const DString &tagRef=DString(), const DString &tagFile=DString())
std::unique_ptr< ConceptDef > createConceptDefAlias (const Definition *newScope, const ConceptDef *cd)
ConceptDef * toConceptDef (Definition *d)
ConceptDef * toConceptDef (DefinitionMutable *d)
const ConceptDef * toConceptDef (const Definition *d)
ConceptDefMutable * toConceptDefMutable (Definition *d)
ConceptDef * getConcept (const DString &key)
ConceptDefMutable * getConceptMutable (const DString &key)
ConceptDef * getResolvedConcept (const Definition *scope, const DString &name)

Function Documentation

◆ createConceptDef()

std::unique_ptr< ConceptDef > createConceptDef ( const DString & fileName,
int startLine,
size_t startColumn,
const DString & name,
const DString & tagRef = DString(),
const DString & tagFile = DString() )

Definition at line 96 of file conceptdef.cpp.

99{
100 return std::make_unique<ConceptDefImpl>(fileName,startLine,startColumn,name,tagRef,tagFile);
101}

Referenced by ConceptDefMutable::addCodePart(), and addConceptToContext().

◆ createConceptDefAlias()

std::unique_ptr< ConceptDef > createConceptDefAlias ( const Definition * newScope,
const ConceptDef * cd )

Definition at line 157 of file conceptdef.cpp.

158{
159 return std::make_unique<ConceptDefAliasImpl>(newScope,cd);
160}

Referenced by ConceptDefMutable::addCodePart().

◆ getConcept()

ConceptDef * getConcept ( const DString & key)

Definition at line 870 of file conceptdef.cpp.

871{
872 if (n.empty()) return nullptr;
874}
static ConceptLinkedMap * conceptLinkedMap
Definition doxygen.h:90
const T * find(const std::string &key) const
Definition linkedmap.h:47

References Doxygen::conceptLinkedMap, DString::empty(), and LinkedMap< T, Hash, KeyEqual, Map >::find().

Referenced by getConceptMutable(), getResolvedConcept(), linkifyText(), and resolveLink().

◆ getConceptMutable()

ConceptDefMutable * getConceptMutable ( const DString & key)
inline

Definition at line 106 of file conceptdef.h.

107{
108 return toConceptDefMutable(getConcept(key));
109}
ConceptDefMutable * toConceptDefMutable(Definition *d)
ConceptDef * getConcept(const DString &key)

References getConcept(), and toConceptDefMutable().

Referenced by addConceptToContext().

◆ getResolvedConcept()

ConceptDef * getResolvedConcept ( const Definition * scope,
const DString & name )

Definition at line 876 of file conceptdef.cpp.

877{
878 ConceptDef *cd=nullptr;
879 while (d && d!=Doxygen::globalScope)
880 {
881 cd = getConcept(d->name()+"::"+name);
882 if (cd) return cd;
883 d = d->getOuterScope();
884 }
885 cd = getConcept(name);
886 return cd;
887}
virtual Definition * getOuterScope() const =0
static NamespaceDefMutable * globalScope
Definition doxygen.h:114
ConceptDef * getConcept(const DString &n)

References getConcept(), Definition::getOuterScope(), Doxygen::globalScope, and Definition::name().

Referenced by generateClassOrGlobalLink().

◆ toConceptDef() [1/3]

const ConceptDef * toConceptDef ( const Definition * d)

Definition at line 844 of file conceptdef.cpp.

845{
846 if (d && (typeid(*d)==typeid(ConceptDefImpl) || typeid(*d)==typeid(ConceptDefAliasImpl)))
847 {
848 return static_cast<const ConceptDef*>(d);
849 }
850 else
851 {
852 return nullptr;
853 }
854}

◆ toConceptDef() [2/3]

ConceptDef * toConceptDef ( Definition * d)

Definition at line 819 of file conceptdef.cpp.

820{
821 if (d && (typeid(*d)==typeid(ConceptDefImpl) || typeid(*d)==typeid(ConceptDefAliasImpl)))
822 {
823 return static_cast<ConceptDef*>(d);
824 }
825 else
826 {
827 return nullptr;
828 }
829}

Referenced by NamespaceDefImpl::addInnerCompound(), findModuleDef(), ConceptDefAliasImpl::getCdAlias(), and getDefs().

◆ toConceptDef() [3/3]

ConceptDef * toConceptDef ( DefinitionMutable * d)

Definition at line 831 of file conceptdef.cpp.

832{
833 Definition *d = toDefinition(md);
834 if (d && typeid(*d)==typeid(ConceptDefImpl))
835 {
836 return static_cast<ConceptDef*>(d);
837 }
838 else
839 {
840 return nullptr;
841 }
842}
The common base class of all entity definitions found in the sources.
Definition definition.h:77
Definition * toDefinition(DefinitionMutable *dm)

References toDefinition().

◆ toConceptDefMutable()