Skip to main content

The conceptdef.h File Reference

Included Headers

#include <memory> #include "definition.h" #include "filedef.h"

Classes Index

classConceptDef
classConceptDefMutable
classConceptLinkedMap
classConceptLinkedRefMap

Functions Index

std::unique_ptr< ConceptDef >createConceptDef (const QCString &fileName, int startLine, int startColumn, const QCString &name, const QCString &tagRef=QCString(), const QCString &tagFile=QCString())
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 QCString &key)
ConceptDefMutable *getConceptMutable (const QCString &key)
ConceptDef *getResolvedConcept (const Definition *scope, const QCString &name)

Functions

createConceptDef()

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

Declaration at line 61 of file conceptdef.h, definition at line 90 of file conceptdef.cpp.

90std::unique_ptr<ConceptDef> createConceptDef(
91 const QCString &fileName,int startLine,int startColumn,
92 const QCString &name, const QCString &tagRef,const QCString &tagFile)
93{
94 return std::make_unique<ConceptDefImpl>(fileName,startLine,startColumn,name,tagRef,tagFile);
95}

Referenced by addConceptToContext and ConceptDefMutable::setModuleDef.

createConceptDefAlias()

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

Declaration at line 65 of file conceptdef.h, definition at line 149 of file conceptdef.cpp.

149std::unique_ptr<ConceptDef> createConceptDefAlias(const Definition *newScope,const ConceptDef *cd)
150{
151 return std::make_unique<ConceptDefAliasImpl>(newScope,cd);
152}

Referenced by ConceptDefMutable::setModuleDef.

getConcept()

ConceptDef * getConcept (const QCString & key)

Declaration at line 89 of file conceptdef.h, definition at line 788 of file conceptdef.cpp.

789{
790 if (n.isEmpty()) return nullptr;
791 return Doxygen::conceptLinkedMap->find(n);
792}

References Doxygen::conceptLinkedMap and QCString::isEmpty.

Referenced by getConceptMutable, getResolvedConcept, linkifyText and resolveLink.

getConceptMutable()

ConceptDefMutable * getConceptMutable (const QCString & key)
inline

Definition at line 90 of file conceptdef.h.

91{
93}

References getConcept and toConceptDefMutable.

Referenced by addConceptToContext.

getResolvedConcept()

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

Declaration at line 94 of file conceptdef.h, definition at line 794 of file conceptdef.cpp.

795{
796 ConceptDef *cd=nullptr;
797 while (d && d!=Doxygen::globalScope)
798 {
799 cd = getConcept(d->name()+"::"+name);
800 if (cd) return cd;
801 d = d->getOuterScope();
802 }
803 cd = getConcept(name);
804 return cd;
805}

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

Referenced by generateClassOrGlobalLink.

toConceptDef()

ConceptDef * toConceptDef (Definition * d)

Declaration at line 82 of file conceptdef.h, definition at line 737 of file conceptdef.cpp.

738{
739 if (d && (typeid(*d)==typeid(ConceptDefImpl) || typeid(*d)==typeid(ConceptDefAliasImpl)))
740 {
741 return static_cast<ConceptDef*>(d);
742 }
743 else
744 {
745 return nullptr;
746 }
747}

Referenced by NamespaceDefImpl::addInnerCompound, findModuleDef, ConceptDefAliasImpl::getCdAlias and getDefsNew.

toConceptDef()

ConceptDef * toConceptDef (DefinitionMutable * d)

Declaration at line 83 of file conceptdef.h, definition at line 749 of file conceptdef.cpp.

750{
751 Definition *d = toDefinition(md);
752 if (d && typeid(*d)==typeid(ConceptDefImpl))
753 {
754 return static_cast<ConceptDef*>(d);
755 }
756 else
757 {
758 return nullptr;
759 }
760}

Reference toDefinition.

toConceptDef()

const ConceptDef * toConceptDef (const Definition * d)

Declaration at line 84 of file conceptdef.h, definition at line 762 of file conceptdef.cpp.

763{
764 if (d && (typeid(*d)==typeid(ConceptDefImpl) || typeid(*d)==typeid(ConceptDefAliasImpl)))
765 {
766 return static_cast<const ConceptDef*>(d);
767 }
768 else
769 {
770 return nullptr;
771 }
772}

toConceptDefMutable()

ConceptDefMutable * toConceptDefMutable (Definition * d)

Declaration at line 85 of file conceptdef.h, definition at line 774 of file conceptdef.cpp.

775{
776 if (d && typeid(*d)==typeid(ConceptDefImpl))
777 {
778 return static_cast<ConceptDefMutable*>(d);
779 }
780 else
781 {
782 return nullptr;
783 }
784}

Referenced by addConceptToContext, addConceptToGroups, ModuleDefImpl::addConceptToModule, ModuleManager::addConceptToModule, distributeConceptGroups, findSectionsInDocumentation, generateConceptDocs, generateNamespaceConceptDocs, getConceptMutable and writeTagFile.


Generated via doxygen2docusaurus by Doxygen 1.14.0.