Doxygen
Loading...
Searching...
No Matches
MemberDefImpl Class Reference
+ Inheritance diagram for MemberDefImpl:
+ Collaboration diagram for MemberDefImpl:

Public Member Functions

 MemberDefImpl (const QCString &defFileName, int defLine, int defColumn, const QCString &type, const QCString &name, const QCString &args, const QCString &excp, Protection prot, Specifier virt, bool stat, Relationship related, MemberType t, const ArgumentList &tal, const ArgumentList &al, const QCString &metaData)
 
 ~MemberDefImpl () override=default
 
DefType definitionType () const override
 
MemberDefresolveAlias () override
 
const MemberDefresolveAlias () const override
 
CodeSymbolType codeSymbolType () const override
 
std::unique_ptr< MemberDefdeepCopy () const override
 
void moveTo (Definition *) override
 
QCString getOutputFileBase () const override
 
QCString getReference () const override
 
QCString anchor () const override
 
QCString declaration () const override
 
QCString definition () const override
 
QCString typeString () const override
 
QCString argsString () const override
 
QCString excpString () const override
 
QCString bitfieldString () const override
 
QCString extraTypeChars () const override
 
const QCStringinitializer () const override
 
int initializerLines () const override
 
TypeSpecifier getMemberSpecifiers () const override
 
VhdlSpecifier getVhdlSpecifiers () const override
 
const MemberListgetSectionList (const Definition *) const override
 
QCString displayDefinition () const override
 
const ClassDefgetClassDef () const override
 
ClassDefgetClassDef () override
 
const FileDefgetFileDef () const override
 
FileDefgetFileDef () override
 
const NamespaceDefgetNamespaceDef () const override
 
NamespaceDefgetNamespaceDef () override
 
const GroupDefgetGroupDef () const override
 
GroupDefgetGroupDef () override
 
const ModuleDefgetModuleDef () const override
 
ClassDefaccessorClass () const override
 
QCString getReadAccessor () const override
 
QCString getWriteAccessor () const override
 
Grouping::GroupPri_t getGroupPri () const override
 
QCString getGroupFileName () const override
 
int getGroupStartLine () const override
 
bool getGroupHasDocs () const override
 
QCString qualifiedName () const override
 
QCString objCMethodName (bool localLink, bool showStatic) const override
 
Protection protection () const override
 
Specifier virtualness (int count=0) const override
 
MemberType memberType () const override
 
QCString memberTypeName () const override
 
bool isSignal () const override
 
bool isSlot () const override
 
bool isVariable () const override
 
bool isEnumerate () const override
 
bool isEnumValue () const override
 
bool isTypedef () const override
 
bool isSequence () const override
 
bool isDictionary () const override
 
bool isFunction () const override
 
bool isFunctionPtr () const override
 
bool isDefine () const override
 
bool isFriend () const override
 
bool isDCOP () const override
 
bool isProperty () const override
 
bool isEvent () const override
 
bool isRelated () const override
 
bool isForeign () const override
 
bool isStatic () const override
 
bool isInline () const override
 
bool isExplicit () const override
 
bool isMutable () const override
 
bool isGettable () const override
 
bool isPrivateGettable () const override
 
bool isProtectedGettable () const override
 
bool isSettable () const override
 
bool isPrivateSettable () const override
 
bool isProtectedSettable () const override
 
bool isReadable () const override
 
bool isWritable () const override
 
bool isAddable () const override
 
bool isRemovable () const override
 
bool isRaisable () const override
 
bool isFinal () const override
 
bool isAbstract () const override
 
bool isOverride () const override
 
bool isInitonly () const override
 
bool isOptional () const override
 
bool isRequired () const override
 
bool isNonAtomic () const override
 
bool isCopy () const override
 
bool isAssign () const override
 
bool isRetain () const override
 
bool isWeak () const override
 
bool isStrong () const override
 
bool isEnumStruct () const override
 
bool isUnretained () const override
 
bool isNew () const override
 
bool isSealed () const override
 
bool isImplementation () const override
 
bool isExternal () const override
 
bool isTypeAlias () const override
 
bool isDefault () const override
 
bool isDelete () const override
 
bool isNoExcept () const override
 
bool isAttribute () const override
 
bool isUNOProperty () const override
 
bool isReadonly () const override
 
bool isBound () const override
 
bool isConstrained () const override
 
bool isTransient () const override
 
bool isMaybeVoid () const override
 
bool isMaybeDefault () const override
 
bool isMaybeAmbiguous () const override
 
bool isPublished () const override
 
bool isTemplateSpecialization () const override
 
bool isObjCMethod () const override
 
bool isObjCProperty () const override
 
bool isCSharpProperty () const override
 
bool isConstructor () const override
 
bool isDestructor () const override
 
bool hasOneLineInitializer () const override
 
bool hasMultiLineInitializer () const override
 
bool isCallable () const override
 
bool isStrongEnumValue () const override
 
bool livesInsideEnum () const override
 
bool isSliceLocal () const override
 
bool isNoDiscard () const override
 
bool isConstExpr () const override
 
bool isConstEval () const override
 
bool isConstInit () const override
 
int numberOfFlowKeyWords () const override
 
bool isFriendToHide () const override
 
bool isNotFriend () const override
 
bool isFunctionOrSignalSlot () const override
 
bool isRelatedOrFriend () const override
 
bool isLinkableInProject () const override
 
bool isLinkable () const override
 
bool hasDocumentation () const override
 
bool hasUserDocumentation () const override
 
bool isDeleted () const override
 
bool isBriefSectionVisible () const override
 
bool isDetailedSectionVisible (MemberListContainer container) const override
 
bool hasDetailedDescription () const override
 
bool isFriendClass () const override
 
bool isDocumentedFriendClass () const override
 
const MemberDefreimplements () const override
 
const MemberVectorreimplementedBy () const override
 
bool isReimplementedBy (const ClassDef *cd) const override
 
ClassDefrelatedAlso () const override
 
bool hasDocumentedEnumValues () const override
 
const MemberDefgetAnonymousEnumType () const override
 
bool isDocsForDefinition () const override
 
const MemberDefgetEnumScope () const override
 
const MemberVectorenumFieldList () const override
 
void setEnumBaseType (const QCString &type) override
 
QCString enumBaseType () const override
 
bool hasExamples () const override
 
const ExampleListgetExamples () const override
 
bool isPrototype () const override
 
const ArgumentListargumentList () const override
 
const ArgumentListdeclArgumentList () const override
 
const ArgumentListtemplateArguments () const override
 
const ArgumentListsdefinitionTemplateParameterLists () const override
 
std::optional< ArgumentListformalTemplateArguments () const override
 
int getMemberGroupId () const override
 
MemberGroupgetMemberGroup () const override
 
bool fromAnonymousScope () const override
 
MemberDeffromAnonymousMember () const override
 
bool hasCallGraph () const override
 
bool hasCallerGraph () const override
 
bool hasReferencesRelation () const override
 
bool hasReferencedByRelation () const override
 
bool hasEnumValues () const override
 
bool hasInlineSource () const override
 
QCString sourceRefName () const override
 
const MemberDeftemplateMaster () const override
 
QCString getScopeString () const override
 
ClassDefgetClassDefOfAnonymousType () const override
 
bool isTypedefValCached () const override
 
const ClassDefgetCachedTypedefVal () const override
 
QCString getCachedTypedefTemplSpec () const override
 
QCString getCachedResolvedTypedef () const override
 
MemberDefmemberDefinition () const override
 
MemberDefmemberDeclaration () const override
 
const MemberDefinheritsDocsFrom () const override
 
const MemberDefgetGroupAlias () const override
 
ClassDefcategory () const override
 
const MemberDefcategoryRelation () const override
 
QCString displayName (bool=TRUE) const override
 
QCString getDeclType () const override
 
StringVector getLabels (const Definition *container) const override
 
const ArgumentListtypeConstraints () const override
 
QCString requiresClause () const override
 
QCString documentation () const override
 
QCString briefDescription (bool abbr=FALSE) const override
 
QCString fieldType () const override
 
bool isReference () const override
 
QCString getDeclFileName () const override
 
int getDeclLine () const override
 
int getDeclColumn () const override
 
void setMemberType (MemberType t) override
 
void setDefinition (const QCString &d) override
 
void setFileDef (FileDef *fd) override
 
void setAnchor () override
 
void setProtection (Protection p) override
 
void setMemberSpecifiers (TypeSpecifier s) override
 
void setVhdlSpecifiers (VhdlSpecifier s) override
 
void mergeMemberSpecifiers (TypeSpecifier s) override
 
void setInitializer (const QCString &i) override
 
void setBitfields (const QCString &s) override
 
void setMaxInitLines (int lines) override
 
void setMemberClass (ClassDef *cd) override
 
void setSectionList (const Definition *container, const MemberList *sl) override
 
void setGroupDef (GroupDef *gd, Grouping::GroupPri_t pri, const QCString &fileName, int startLine, bool hasDocs, MemberDef *member=nullptr) override
 
void setReadAccessor (const QCString &r) override
 
void setWriteAccessor (const QCString &w) override
 
void setTemplateSpecialization (bool b) override
 
void makeRelated () override
 
void makeForeign () override
 
void setInheritsDocsFrom (const MemberDef *md) override
 
void setTagInfo (const TagInfo *i) override
 
void setArgsString (const QCString &as) override
 
void setReimplements (MemberDef *md) override
 
void insertReimplementedBy (MemberDef *md) override
 
void setRelatedAlso (ClassDef *cd) override
 
void insertEnumField (MemberDef *md) override
 
void setEnumScope (MemberDef *md, bool livesInsideEnum=FALSE) override
 
void setEnumClassScope (ClassDef *cd) override
 
void setDocumentedEnumValues (bool value) override
 
void setAnonymousEnumType (const MemberDef *md) override
 
bool addExample (const QCString &anchor, const QCString &name, const QCString &file) override
 
void setPrototype (bool p, const QCString &df, int line, int column) override
 
void setExplicitExternal (bool b, const QCString &df, int line, int column) override
 
void setDeclFile (const QCString &df, int line, int column) override
 
void moveArgumentList (std::unique_ptr< ArgumentList > al) override
 
void moveDeclArgumentList (std::unique_ptr< ArgumentList > al) override
 
void setDefinitionTemplateParameterLists (const ArgumentLists &lists) override
 
void setTypeConstraints (const ArgumentList &al) override
 
void setType (const QCString &t) override
 
void setAccessorType (ClassDef *cd, const QCString &t) override
 
void setNamespace (NamespaceDef *nd) override
 
void setMemberGroup (MemberGroup *grp) override
 
void setMemberGroupId (int id) override
 
void makeImplementationDetail () override
 
void setFromAnonymousScope (bool b) override
 
void setFromAnonymousMember (MemberDef *m) override
 
void overrideCallGraph (bool e) override
 
void overrideCallerGraph (bool e) override
 
void overrideReferencedByRelation (bool e) override
 
void overrideReferencesRelation (bool e) override
 
void overrideEnumValues (bool e) override
 
void overrideInlineSource (bool e) override
 
void setTemplateMaster (MemberDef *mt) override
 
void setFormalTemplateArguments (const ArgumentList &al) override
 
void addListReference (Definition *d) override
 
void setDocsForDefinition (bool b) override
 
void setGroupAlias (const MemberDef *md) override
 
void cacheTypedefVal (const ClassDef *val, const QCString &templSpec, const QCString &resolvedType) override
 
void invalidateTypedefValCache () override
 
void invalidateCachedArgumentTypes () override
 
void setMemberDefinition (MemberDef *md) override
 
void setMemberDeclaration (MemberDef *md) override
 
void copyArgumentNames (const MemberDef *bmd) override
 
void setCategory (ClassDef *) override
 
void setCategoryRelation (const MemberDef *) override
 
void setDocumentation (const QCString &d, const QCString &docFile, int docLine, bool stripWhiteSpace=TRUE) override
 
void setBriefDescription (const QCString &b, const QCString &briefFile, int briefLine) override
 
void setInbodyDocumentation (const QCString &d, const QCString &inbodyFile, int inbodyLine) override
 
void setHidden (bool b) override
 
void setRequiresClause (const QCString &req) override
 
void incrementFlowKeyWordCount () override
 
void writeDeclaration (OutputList &ol, const ClassDef *cd, const NamespaceDef *nd, const FileDef *fd, const GroupDef *gd, const ModuleDef *mod, bool inGroup, int indentLevel, const ClassDef *inheritFrom=nullptr, const QCString &inheritId=QCString()) const override
 
void writeDocumentation (const MemberList *ml, int memCount, int memTotal, OutputList &ol, const QCString &scopeName, const Definition *container, bool inGroup, bool showEnumValues=FALSE, bool showInline=FALSE) const override
 
void writeMemberDocSimple (OutputList &ol, const Definition *container) const override
 
void writeEnumDeclaration (OutputList &typeDecl, const ClassDef *cd, const NamespaceDef *nd, const FileDef *fd, const GroupDef *gd, const ModuleDef *mod) const override
 
void writeTagFile (TextStream &, bool useQualifiedName, bool showNamespaceMembers) const override
 
void warnIfUndocumented () const override
 
void warnIfUndocumentedParams () const override
 
bool visibleInIndex () const override
 
void detectUndocumentedParams (bool hasParamCommand, bool hasReturnCommand) const override
 
std::unique_ptr< MemberDefcreateTemplateInstanceMember (const ArgumentList &formalArgs, const std::unique_ptr< ArgumentList > &actualArgs) const override
 
void findSectionsInDocumentation () override
 
void writeLink (OutputList &ol, const ClassDef *cd, const NamespaceDef *nd, const FileDef *fd, const GroupDef *gd, const ModuleDef *mod, bool onlyText=FALSE) const override
 
void resolveUnnamedParameters (const MemberDef *md) override
 
void addQualifiers (const StringVector &qualifiers) override
 
StringVector getQualifiers () const override
 
ClassDefMutablegetClassDefMutable () override
 
void setModuleDef (ModuleDef *mod) override
 
- Public Member Functions inherited from DefinitionMixin< MemberDefMutable >
 DefinitionMixin (const QCString &defFileName, int defLine, int defColumn, const QCString &name, const char *b=nullptr, const char *d=nullptr, bool isSymbol=TRUE)
 
 DefinitionMixin (const DefinitionMixin &other)
 
 DefinitionMixin (DefinitionMixin &&)=delete
 
DefinitionMixinoperator= (const DefinitionMixin &other)
 
DefinitionMixinoperator= (DefinitionMixin &&)=delete
 
 ~DefinitionMixin () override=default
 
bool isAlias () const override
 
const QCStringname () const override
 
bool isAnonymous () const override
 
const QCStringlocalName () const override
 
QCString symbolName () const override
 
QCString getSourceFileBase () const override
 
QCString getSourceAnchor () const override
 
int docLine () const override
 
QCString docFile () const override
 
QCString briefDescriptionAsTooltip () const override
 
int briefLine () const override
 
QCString inbodyDocumentation () const override
 
QCString inbodyFile () const override
 
int inbodyLine () const override
 
QCString briefFile () const override
 
QCString getDefFileName () const override
 
QCString getDefFileExtension () const override
 
int getDefLine () const override
 
int getDefColumn () const override
 
bool isVisibleInProject () const override
 
bool isVisible () const override
 
bool isHidden () const override
 
bool isArtificial () const override
 
bool isExported () const override
 
QCString externalReference (const QCString &relPath) const override
 
int getStartDefLine () const override
 
int getStartBodyLine () const override
 
int getEndBodyLine () const override
 
const FileDefgetBodyDef () const override
 
SrcLangExt getLanguage () const override
 
const GroupListpartOfGroups () const override
 
bool isLinkableViaGroup () const override
 
const RefItemVectorxrefListItems () const override
 
const DefinitionfindInnerCompound (const QCString &name) const override
 
DefinitiongetOuterScope () const override
 
const MemberVectorgetReferencesMembers () const override
 
const MemberVectorgetReferencedByMembers () const override
 
bool hasSections () const override
 
bool hasSources () const override
 
bool hasBriefDescription () const override
 
QCString id () const override
 
const SectionRefsgetSectionRefs () const override
 
void setName (const QCString &name) override
 
void setId (const QCString &name) override
 
void setDefFile (const QCString &df, int defLine, int defColumn) override
 
void setReference (const QCString &r) override
 
void addSectionsToDefinition (const std::vector< const SectionInfo * > &anchorList) override
 
void setBodySegment (int defLine, int bls, int ble) override
 
void setBodyDef (const FileDef *fd) override
 
void addSourceReferencedBy (MemberDef *md, const QCString &sourceRefName) override
 
void addSourceReferences (MemberDef *md, const QCString &sourceRefName) override
 
void setRefItems (const RefItemVector &sli) override
 
void mergeRefItems (Definition *def) override
 
void mergeReferences (const Definition *other) override
 
void mergeReferencedBy (const Definition *other) override
 
void addInnerCompound (Definition *def) override
 
void setOuterScope (Definition *def) override
 
void setArtificial (bool b) override
 
void setExported (bool b) override
 
void setLanguage (SrcLangExt lang) override
 
void writeSourceDef (OutputList &ol) const override
 
void writeInlineCode (OutputList &ol, const QCString &scopeName) const override
 
bool hasSourceRefs () const override
 
bool hasSourceReffedBy () const override
 
void writeSourceRefs (OutputList &ol, const QCString &scopeName) const override
 
void writeSourceReffedBy (OutputList &ol, const QCString &scopeName) const override
 
void makePartOfGroup (GroupDef *gd) override
 
void writeNavigationPath (OutputList &ol) const override
 
QCString navigationPathAsString () const override
 
void writeQuickMemberLinks (OutputList &ol, const MemberDef *md) const override
 
void writeSummaryLinks (OutputList &ol) const override
 
QCString pathFragment () const override
 
void writeDocAnchorsToTagFile (TextStream &fs) const override
 
void setLocalName (const QCString &name) override
 
void writeToc (OutputList &ol, const LocalToc &lt) const override
 
void computeTooltip () override
 
void _setSymbolName (const QCString &name) override
 
QCString _symbolName () const override
 
- Public Member Functions inherited from MemberDefMutable
- Public Member Functions inherited from DefinitionMutable
- Public Member Functions inherited from MemberDef
- Public Member Functions inherited from Definition

Private Member Functions

void _computeLinkableInProject ()
 
void _computeIsConstructor ()
 
void _computeIsDestructor ()
 
void _writeGroupInclude (OutputList &ol, bool inGroup) const
 
void _writeMultiLineInitializer (OutputList &ol, const QCString &scopeName) const
 
void _writeCallGraph (OutputList &ol) const
 
void _writeCallerGraph (OutputList &ol) const
 
void _writeReimplements (OutputList &ol) const
 
bool _isReimplements () const
 
void _writeReimplementedBy (OutputList &ol) const
 
size_t _countReimplementedBy () const
 
void _writeExamples (OutputList &ol) const
 
void _writeTypeConstraints (OutputList &ol) const
 
void _writeEnumValues (OutputList &ol, const Definition *container, const QCString &cfname, const QCString &ciname, const QCString &cname) const
 
void _writeCategoryRelation (OutputList &ol) const
 
void _writeTagData (const DefType) const
 
void _writeTemplatePrefix (OutputList &ol, const Definition *def, const ArgumentList &al, bool writeReqClause=true) const
 
bool _hasVisibleCallGraph () const
 
bool _hasVisibleCallerGraph () const
 
bool _isAnonymousBitField () const
 
void init (Definition *def, const QCString &t, const QCString &a, const QCString &e, Protection p, Specifier v, bool s, Relationship r, MemberType mt, const ArgumentList &tal, const ArgumentList &al, const QCString &meta)
 

Private Attributes

uint8_t m_isLinkableCached
 
uint8_t m_isConstructorCached
 
uint8_t m_isDestructorCached
 
ClassDefm_classDef = nullptr
 
FileDefm_fileDef = nullptr
 
NamespaceDefm_nspace = nullptr
 
ModuleDefm_moduleDef = nullptr
 
const MemberDefm_enumScope = nullptr
 
bool m_livesInsideEnum = false
 
const MemberDefm_annEnumType = nullptr
 
MemberVector m_enumFields
 
MemberDefm_redefines = nullptr
 
MemberVector m_redefinedBy
 
MemberDefm_memDef = nullptr
 
MemberDefm_memDec = nullptr
 
ClassDefm_relatedAlso = nullptr
 
ExampleList m_examples
 
QCString m_type
 
QCString m_accessorType
 
ClassDefm_accessorClass = nullptr
 
QCString m_args
 
QCString m_def
 
QCString m_anc
 
Specifier m_virt = Specifier::Normal
 
Protection m_prot = Protection::Public
 
QCString m_decl
 
QCString m_bitfields
 
QCString m_read
 
QCString m_write
 
QCString m_exception
 
QCString m_initializer
 
QCString m_extraTypeChars
 
QCString m_enumBaseType
 
QCString m_requiresClause
 
int m_initLines = 0
 
TypeSpecifier m_memSpec
 
VhdlSpecifier m_vhdlSpec
 
MemberType m_mtype = MemberType::Define
 
int m_maxInitLines = 0
 
int m_userInitLines = 0
 
MemberDefm_annMemb = nullptr
 
ArgumentList m_defArgList
 
ArgumentList m_declArgList
 
ArgumentList m_tArgList
 
ArgumentList m_typeConstraints
 
MemberDefm_templateMaster = nullptr
 
std::optional< ArgumentListm_formalTemplateArguments
 
ArgumentLists m_defTmpArgLists
 
QCString m_metaData
 
ClassDefm_cachedAnonymousType = nullptr
 
std::map< const Definition *, const MemberList * > m_sectionMap
 
const MemberDefm_groupAlias = nullptr
 
int m_grpId = 0
 
MemberGroupm_memberGroup = nullptr
 
GroupDefm_group = nullptr
 
Grouping::GroupPri_t m_grouppri = Grouping::GROUPING_AUTO_DEF
 
QCString m_groupFileName
 
int m_groupStartLine = 0
 
MemberDefm_groupMember = nullptr
 
bool m_isTypedefValCached = false
 
const ClassDefm_cachedTypedefValue = nullptr
 
QCString m_cachedTypedefTemplSpec
 
QCString m_cachedResolvedType
 
const MemberDefm_docProvider = nullptr
 
QCString m_explicitOutputFileBase
 
StringVector m_qualifiers
 
bool m_implOnly = false
 
bool m_hasDocumentedParams = false
 
bool m_hasDocumentedReturnType = false
 
bool m_isDMember = false
 
Relationship m_related = Relationship::Member
 
bool m_stat = false
 
bool m_proto = false
 
bool m_docEnumValues = false
 
bool m_annScope = false
 
bool m_hasDetailedDescriptionCached = false
 
bool m_detailedDescriptionCachedValue = false
 
bool m_hasCallGraph = false
 
bool m_hasCallerGraph = false
 
bool m_hasReferencedByRelation = false
 
bool m_hasReferencesRelation = false
 
bool m_hasInlineSource = false
 
bool m_hasEnumValues = false
 
bool m_explExt = false
 
bool m_tspec = false
 
bool m_groupHasDocs = false
 
bool m_docsForDefinition = false
 
ClassDefm_category = nullptr
 
const MemberDefm_categoryRelation = nullptr
 
QCString m_declFileName
 
int m_declLine = -1
 
int m_declColumn = -1
 
int m_numberOfFlowKW = 0
 

Additional Inherited Members

- Public Types inherited from Definition
enum  DefType {
  TypeClass = 0 , TypeFile = 1 , TypeNamespace = 2 , TypeModule = 3 ,
  TypeMember = 4 , TypeGroup = 5 , TypePackage = 6 , TypePage = 7 ,
  TypeDir = 8 , TypeConcept = 9
}
 

Detailed Description

Definition at line 53 of file memberdef.cpp.

Constructor & Destructor Documentation

◆ MemberDefImpl()

MemberDefImpl::MemberDefImpl ( const QCString & df,
int dl,
int dc,
const QCString & t,
const QCString & na,
const QCString & a,
const QCString & e,
Protection p,
Specifier v,
bool s,
Relationship r,
MemberType mt,
const ArgumentList & tal,
const ArgumentList & al,
const QCString & meta )

Creates a new member definition.

Parameters
dfFile containing the definition of this member.
dlLine at which the member definition was found.
dcColumn at which the member definition was found.
tA string representing the type of the member.
naA string representing the name of the member.
aA string representing the arguments of the member.
eA string representing the throw clause of the members.
pThe protection context of the member, possible values are: Public, Protected, Private.
vThe degree of 'virtualness' of the member, possible values are: Normal, Virtual, Pure.
sA boolean that is true iff the member is static.
rThe relationship between the class and the member.
mtThe kind of member. See MemberType for a list of all types.
talThe template arguments of this member.
alThe arguments of this member. This is a structured form of the string past as argument a.
metaSlice metadata.

Definition at line 1428 of file memberdef.cpp.

1433{
1434 //printf("MemberDefImpl::MemberDef(%s)\n",qPrint(na));
1435 init(this,t,a,e,p,v,s,r,mt,tal,al,meta);
1439}
DefinitionMixin(const QCString &defFileName, int defLine, int defColumn, const QCString &name, const char *b=nullptr, const char *d=nullptr, bool isSymbol=TRUE)
void init(Definition *def, const QCString &t, const QCString &a, const QCString &e, Protection p, Specifier v, bool s, Relationship r, MemberType mt, const ArgumentList &tal, const ArgumentList &al, const QCString &meta)
uint8_t m_isConstructorCached
uint8_t m_isDestructorCached
uint8_t m_isLinkableCached
QCString removeRedundantWhiteSpace(const QCString &s)
Definition util.cpp:578

References DefinitionMixin< MemberDefMutable >::DefinitionMixin(), init(), m_isConstructorCached, m_isDestructorCached, m_isLinkableCached, and removeRedundantWhiteSpace().

Referenced by deepCopy(), isConstructor(), isDestructor(), isLinkableInProject(), and ~MemberDefImpl().

◆ ~MemberDefImpl()

MemberDefImpl::~MemberDefImpl ( )
overridedefault

References MemberDefImpl().

Member Function Documentation

◆ _computeIsConstructor()

void MemberDefImpl::_computeIsConstructor ( )
private

Definition at line 4648 of file memberdef.cpp.

4649{
4650 m_isConstructorCached=1; // FALSE
4651 if (getClassDef())
4652 {
4653 if (m_isDMember) // for D
4654 {
4655 m_isConstructorCached = name()=="this" ? 2 : 1;
4656 return;
4657 }
4658 else if (getLanguage()==SrcLangExt::PHP) // for PHP
4659 {
4660 m_isConstructorCached = name()=="__construct" ? 2 : 1;
4661 return;
4662 }
4663 else if (name()=="__init__" &&
4664 getLanguage()==SrcLangExt::Python) // for Python
4665 {
4666 m_isConstructorCached = 2; // TRUE
4667 return;
4668 }
4669 else // for other languages
4670 {
4671 QCString locName = getClassDef()->localName();
4672 int i=locName.find('<');
4673 if (i==-1) // not a template class
4674 {
4675 m_isConstructorCached = name()==locName ? 2 : 1;
4676 }
4677 else
4678 {
4679 m_isConstructorCached = name()==locName.left(i) ? 2 : 1;
4680 }
4681 return;
4682 }
4683 }
4684}
virtual const QCString & localName() const =0
const QCString & name() const override
SrcLangExt getLanguage() const override
const ClassDef * getClassDef() const override
int find(char c, int index=0, bool cs=TRUE) const
Definition qcstring.cpp:43
QCString left(size_t len) const
Definition qcstring.h:214
@ Python
Definition types.h:52

References QCString::find(), getClassDef(), DefinitionMixin< MemberDefMutable >::getLanguage(), QCString::left(), Definition::localName(), m_isConstructorCached, m_isDMember, DefinitionMixin< MemberDefMutable >::name(), PHP, and Python.

Referenced by isConstructor().

◆ _computeIsDestructor()

void MemberDefImpl::_computeIsDestructor ( )
private

Definition at line 4698 of file memberdef.cpp.

4699{
4700 bool isDestructor = false;
4701 if (m_isDMember) // for D
4702 {
4703 isDestructor = name()=="~this";
4704 }
4705 else if (getLanguage()==SrcLangExt::PHP) // for PHP
4706 {
4707 isDestructor = name()=="__destruct";
4708 }
4709 else if (name()=="__del__" &&
4710 getLanguage()==SrcLangExt::Python) // for Python
4711 {
4712 isDestructor = true;
4713 }
4714 else if (getLanguage()==SrcLangExt::Fortran) // for Fortran
4715 {
4716 isDestructor = typeString()=="final";
4717 }
4718 else // other languages
4719 {
4720 isDestructor =
4721 (name().find('~')!=-1 || name().find('!')!=-1) // The ! is for C++/CLI
4722 && name().find("operator")==-1;
4723 }
4725}
bool isDestructor() const override
QCString typeString() const override
@ Fortran
Definition types.h:53

References QCString::find(), Fortran, DefinitionMixin< MemberDefMutable >::getLanguage(), isDestructor(), m_isDestructorCached, m_isDMember, DefinitionMixin< MemberDefMutable >::name(), PHP, Python, and typeString().

Referenced by isDestructor().

◆ _computeLinkableInProject()

void MemberDefImpl::_computeLinkableInProject ( )
private

Definition at line 1782 of file memberdef.cpp.

1783{
1784 AUTO_TRACE("name={}",qualifiedName());
1785 bool extractStatic = Config_getBool(EXTRACT_STATIC);
1786 bool extractPrivateVirtual = Config_getBool(EXTRACT_PRIV_VIRTUAL);
1787 m_isLinkableCached = 2; // linkable
1788 //printf("MemberDefImpl::isLinkableInProject(name=%s)\n",qPrint(name()));
1789 if (isHidden())
1790 {
1791 AUTO_TRACE_ADD("is hidden");
1793 return;
1794 }
1795 if (templateMaster())
1796 {
1797 AUTO_TRACE_ADD("has master template");
1799 return;
1800 }
1801 if (isAnonymous())
1802 {
1803 AUTO_TRACE_ADD("name invalid");
1804 m_isLinkableCached = 1; // not a valid or a dummy name
1805 return;
1806 }
1807 if (!hasDocumentation() || isReference())
1808 {
1809 AUTO_TRACE_ADD("no docs or reference");
1810 m_isLinkableCached = 1; // no documentation
1811 return;
1812 }
1813 const GroupDef *groupDef = getGroupDef();
1814 const ModuleDef *moduleDef = getModuleDef();
1815 const ClassDef *classDef = getClassDef();
1816 if (groupDef && !groupDef->isLinkableInProject())
1817 {
1818 AUTO_TRACE_ADD("in not linkable group");
1819 m_isLinkableCached = 1; // group but group not linkable
1820 return;
1821 }
1822 if (!groupDef && classDef && !classDef->isLinkableInProject())
1823 {
1824 AUTO_TRACE_ADD("in not linkable class");
1825 m_isLinkableCached = 1; // in class but class not linkable
1826 return;
1827 }
1828 if (!groupDef && moduleDef && !moduleDef->isLinkableInProject())
1829 {
1830 AUTO_TRACE_ADD("in not linkable module");
1831 m_isLinkableCached = 1; // in module but module not linkable
1832 return;
1833 }
1834 const NamespaceDef *nspace = getNamespaceDef();
1835 const FileDef *fileDef = getFileDef();
1836 if (!groupDef && nspace /*&& m_related==Relationship::Member*/ && !nspace->isLinkableInProject()
1837 && (fileDef==nullptr || !fileDef->isLinkableInProject()))
1838 {
1839 AUTO_TRACE_ADD("in not linkable namespace");
1840 m_isLinkableCached = 1; // in namespace but namespace not linkable
1841 return;
1842 }
1843 if (!groupDef && !nspace &&
1844 /*m_related==Relationship::Member &&*/ !classDef &&
1845 fileDef && !fileDef->isLinkableInProject())
1846 {
1847 AUTO_TRACE_ADD("in not linkable file");
1848 m_isLinkableCached = 1; // in file (and not in namespace) but file not linkable
1849 return;
1850 }
1852 !(m_prot==Protection::Private && (m_virt!=Specifier::Normal || isOverride() || isFinal()) && extractPrivateVirtual))
1853 {
1854 AUTO_TRACE_ADD("private and invisible");
1855 m_isLinkableCached = 1; // hidden due to protection
1856 return;
1857 }
1858 if (m_stat && classDef==nullptr && !extractStatic)
1859 {
1860 AUTO_TRACE_ADD("static and invisible");
1861 m_isLinkableCached = 1; // hidden due to staticness
1862 return;
1863 }
1864 AUTO_TRACE_ADD("linkable");
1865 return; // linkable!
1866}
virtual bool isLinkableInProject() const =0
MemberType m_mtype
const NamespaceDef * getNamespaceDef() const override
QCString qualifiedName() const override
Specifier m_virt
bool isReference() const override
Protection m_prot
const GroupDef * getGroupDef() const override
const MemberDef * templateMaster() const override
bool isFinal() const override
const ModuleDef * getModuleDef() const override
bool hasDocumentation() const override
const FileDef * getFileDef() const override
bool isOverride() const override
#define Config_getBool(name)
Definition config.h:33
#define AUTO_TRACE_ADD(...)
Definition docnode.cpp:47
#define AUTO_TRACE(...)
Definition docnode.cpp:46
@ Private
Definition types.h:26
@ Normal
Definition types.h:29
bool protectionLevelVisible(Protection prot)
Definition util.cpp:6270

References AUTO_TRACE, AUTO_TRACE_ADD, Config_getBool, Friend, getClassDef(), getFileDef(), getGroupDef(), getModuleDef(), getNamespaceDef(), hasDocumentation(), DefinitionMixin< MemberDefMutable >::isAnonymous(), isFinal(), DefinitionMixin< MemberDefMutable >::isHidden(), Definition::isLinkableInProject(), isOverride(), isReference(), m_isLinkableCached, m_mtype, m_prot, m_stat, m_virt, Normal, Private, protectionLevelVisible(), qualifiedName(), and templateMaster().

Referenced by isLinkableInProject().

◆ _countReimplementedBy()

size_t MemberDefImpl::_countReimplementedBy ( ) const
private

Definition at line 3040 of file memberdef.cpp.

3041{
3042 const MemberVector &bml=reimplementedBy();
3043 size_t count=0;
3044 for (const auto &bmd : bml)
3045 {
3046 const ClassDef *bcd=bmd->getClassDef();
3047 // count the members that directly inherit from md and for
3048 // which the member and class are visible in the docs.
3049 if ( bcd && bmd->isLinkable() && bcd->isLinkable() )
3050 {
3051 count++;
3052 }
3053 }
3054 return count;
3055}
virtual bool isLinkable() const =0
const MemberVector & reimplementedBy() const override

References Definition::isLinkable(), and reimplementedBy().

Referenced by _writeReimplementedBy(), and hasDetailedDescription().

◆ _hasVisibleCallerGraph()

bool MemberDefImpl::_hasVisibleCallerGraph ( ) const
private

Definition at line 5670 of file memberdef.cpp.

5671{
5672 bool enabled = m_hasCallerGraph &&
5673 (isFunction() || isSlot() || isSignal()) &&
5674 Config_getBool(HAVE_DOT);
5675 if (enabled)
5676 {
5677 bool trivial = DotCallGraph::isTrivial(this,TRUE);
5678 return !trivial;
5679 }
5680 return FALSE;
5681}
bool isTrivial() const
bool isFunction() const override
bool m_hasCallerGraph
bool isSlot() const override
bool isSignal() const override
#define TRUE
Definition qcstring.h:37
#define FALSE
Definition qcstring.h:34

References Config_getBool, FALSE, isFunction(), isSignal(), isSlot(), DotCallGraph::isTrivial(), m_hasCallerGraph, and TRUE.

Referenced by _writeCallerGraph(), and hasDetailedDescription().

◆ _hasVisibleCallGraph()

bool MemberDefImpl::_hasVisibleCallGraph ( ) const
private

Definition at line 5652 of file memberdef.cpp.

5653{
5654 bool enabled = m_hasCallGraph &&
5655 (isFunction() || isSlot() || isSignal()) &&
5656 Config_getBool(HAVE_DOT);
5657 if (enabled)
5658 {
5659 bool trivial = DotCallGraph::isTrivial(this,FALSE);
5660 return !trivial;
5661 }
5662 return FALSE;
5663}

References Config_getBool, FALSE, isFunction(), isSignal(), isSlot(), DotCallGraph::isTrivial(), and m_hasCallGraph.

Referenced by _writeCallGraph(), and hasDetailedDescription().

◆ _isAnonymousBitField()

bool MemberDefImpl::_isAnonymousBitField ( ) const
private

Definition at line 2216 of file memberdef.cpp.

2217{
2218 return !m_bitfields.isEmpty() && name().startsWith("__pad"); // anonymous bitfield
2219}
QCString m_bitfields
bool startsWith(const char *s) const
Definition qcstring.h:492

References m_bitfields, DefinitionMixin< MemberDefMutable >::name(), and QCString::startsWith().

Referenced by warnIfUndocumented(), and writeDeclaration().

◆ _isReimplements()

bool MemberDefImpl::_isReimplements ( ) const
private

Definition at line 2967 of file memberdef.cpp.

2968{
2969 const MemberDef *bmd=reimplements();
2970 const ClassDef *bcd=nullptr;
2971 if (bmd && (bcd=bmd->getClassDef()))
2972 {
2973 // write class that contains a member that is reimplemented by this one
2974 if (bcd->isLinkable())
2975 {
2976 return true;
2977 }
2978 }
2979 return false;
2980}
virtual const ClassDef * getClassDef() const =0
const MemberDef * reimplements() const override

References MemberDef::getClassDef(), Definition::isLinkable(), and reimplements().

Referenced by hasDetailedDescription().

◆ _writeCallerGraph()

void MemberDefImpl::_writeCallerGraph ( OutputList & ol) const
private

Definition at line 2945 of file memberdef.cpp.

2946{
2948 {
2949 DotCallGraph callerGraph(this, TRUE);
2950 if (callerGraph.isTooBig())
2951 {
2952 warn_uncond("Caller graph for '%s' not generated, too many nodes (%d), threshold is %d. Consider increasing DOT_GRAPH_MAX_NODES.\n",
2953 qPrint(qualifiedName()), callerGraph.numNodes(), Config_getInt(DOT_GRAPH_MAX_NODES));
2954 }
2955 else if (!callerGraph.isTrivial())
2956 {
2957 msg("Generating caller graph for function %s\n",qPrint(qualifiedName()));
2959 ol.startCallGraph();
2961 ol.endCallGraph(callerGraph);
2962 ol.enableAll();
2963 }
2964 }
2965}
bool _hasVisibleCallerGraph() const
void disable(OutputType o)
void startCallGraph()
Definition outputlist.h:655
void endCallGraph(DotCallGraph &g)
Definition outputlist.h:657
void enableAll()
void parseText(const QCString &textStr)
virtual QCString trCallerGraph()=0
#define Config_getInt(name)
Definition config.h:34
Translator * theTranslator
Definition language.cpp:71
void msg(const char *fmt,...)
Definition message.cpp:98
#define warn_uncond(fmt,...)
Definition message.h:79
const char * qPrint(const char *s)
Definition qcstring.h:672

References _hasVisibleCallerGraph(), Config_getInt, OutputList::disable(), OutputList::enableAll(), OutputList::endCallGraph(), DotCallGraph::isTooBig(), DotCallGraph::isTrivial(), Man, msg(), DotCallGraph::numNodes(), OutputList::parseText(), qPrint(), qualifiedName(), OutputList::startCallGraph(), theTranslator, TRUE, and warn_uncond.

Referenced by writeDocumentation().

◆ _writeCallGraph()

void MemberDefImpl::_writeCallGraph ( OutputList & ol) const
private

Definition at line 2922 of file memberdef.cpp.

2923{
2924 // write call graph
2926 {
2927 DotCallGraph callGraph(this,FALSE);
2928 if (callGraph.isTooBig())
2929 {
2930 warn_uncond("Call graph for '%s' not generated, too many nodes (%d), threshold is %d. Consider increasing DOT_GRAPH_MAX_NODES.\n",
2931 qPrint(qualifiedName()), callGraph.numNodes(), Config_getInt(DOT_GRAPH_MAX_NODES));
2932 }
2933 else if (!callGraph.isTrivial())
2934 {
2935 msg("Generating call graph for function %s\n",qPrint(qualifiedName()));
2937 ol.startCallGraph();
2939 ol.endCallGraph(callGraph);
2940 ol.enableAll();
2941 }
2942 }
2943}
bool _hasVisibleCallGraph() const
virtual QCString trCallGraph()=0

References _hasVisibleCallGraph(), Config_getInt, OutputList::disable(), OutputList::enableAll(), OutputList::endCallGraph(), FALSE, DotCallGraph::isTooBig(), DotCallGraph::isTrivial(), Man, msg(), DotCallGraph::numNodes(), OutputList::parseText(), qPrint(), qualifiedName(), OutputList::startCallGraph(), theTranslator, and warn_uncond.

Referenced by writeDocumentation().

◆ _writeCategoryRelation()

void MemberDefImpl::_writeCategoryRelation ( OutputList & ol) const
private

Definition at line 3116 of file memberdef.cpp.

3117{
3118 if (getClassDef()) // this should be a member of a class/category
3119 {
3120 //printf("%s: category %s relation %s class=%s categoryOf=%s\n",
3121 // qPrint(name()),
3122 // m_category ? qPrint(m_category->name()) : "<none>",
3123 // m_categoryRelation ? qPrint(m_categoryRelation->name()) : "<none>",
3124 // qPrint(m_classDef->name()),
3125 // m_classDef->categoryOf() ? qPrint(m_classDef->categoryOf()->name()) : "<none>"
3126 // );
3127 QCString text;
3128 QCString ref;
3129 QCString file;
3130 QCString anc;
3131 QCString name;
3132 int i=-1;
3133 if (m_categoryRelation && m_categoryRelation->isLinkable())
3134 {
3135 if (m_category)
3136 {
3137 // this member is in a normal class and implements method categoryRelation from category
3138 // so link to method 'categoryRelation' with 'provided by category 'category' text.
3140 name = m_category->displayName();
3141 }
3142 else if (getClassDef()->categoryOf())
3143 {
3144 // this member is part of a category so link to the corresponding class member of the class we extend
3145 // so link to method 'categoryRelation' with 'extends class 'classDef->categoryOf()'
3146 text = theTranslator->trExtendsClass();
3148 }
3149 i=text.find("@0");
3150 if (i!=-1)
3151 {
3152 const MemberDef *md = m_categoryRelation;
3153 ref = md->getReference();
3154 file = md->getOutputFileBase();
3155 anc = md->anchor();
3156 }
3157 }
3158 if (i!=-1 && !name.isEmpty())
3159 {
3160 ol.startParagraph();
3161 ol.parseText(text.left(i));
3162 ol.writeObjectLink(ref,file,anc,name);
3163 ol.parseText(text.mid(i+2));
3164 ol.endParagraph();
3165 }
3166 }
3167}
virtual ClassDef * categoryOf() const =0
Returns the class of which this is a category (Objective-C only)
virtual QCString anchor() const =0
virtual QCString getReference() const =0
virtual QCString displayName(bool includeScope=TRUE) const =0
virtual QCString getOutputFileBase() const =0
virtual const QCString & name() const =0
const MemberDef * m_categoryRelation
ClassDef * m_category
void writeObjectLink(const QCString &ref, const QCString &file, const QCString &anchor, const QCString &name)
Definition outputlist.h:440
void startParagraph(const QCString &classDef=QCString())
Definition outputlist.h:408
void endParagraph()
Definition outputlist.h:410
QCString mid(size_t index, size_t len=static_cast< size_t >(-1)) const
Definition qcstring.h:226
virtual QCString trProvidedByCategory()=0
virtual QCString trExtendsClass()=0

References Definition::anchor(), ClassDef::categoryOf(), Definition::displayName(), OutputList::endParagraph(), QCString::find(), getClassDef(), Definition::getOutputFileBase(), Definition::getReference(), QCString::left(), m_category, m_categoryRelation, QCString::mid(), DefinitionMixin< MemberDefMutable >::name(), OutputList::parseText(), OutputList::startParagraph(), theTranslator, and OutputList::writeObjectLink().

Referenced by writeDocumentation().

◆ _writeEnumValues()

void MemberDefImpl::_writeEnumValues ( OutputList & ol,
const Definition * container,
const QCString & cfname,
const QCString & ciname,
const QCString & cname ) const
private

Definition at line 3190 of file memberdef.cpp.

3193{
3194 // For enum, we also write the documented enum values
3195 if (isEnumerate())
3196 {
3197 bool first=true;
3198 //printf("** %s: enum values=%zu\n",qPrint(name()),enumFieldList().size());
3199 bool hasInits = false;
3200 if (hasEnumValues())
3201 {
3202 for (const auto &fmd : enumFieldList())
3203 {
3204 if (fmd->isLinkable())
3205 {
3206 if (!fmd->initializer().isEmpty())
3207 {
3208 hasInits = true;
3209 break;
3210 }
3211 }
3212 }
3213 }
3214 for (const auto &fmd : enumFieldList())
3215 {
3216 //printf("Enum %p: isLinkable()=%d\n",fmd,fmd->isLinkable());
3217 if (fmd->isLinkable())
3218 {
3219 if (first)
3220 {
3222 first=false;
3223 }
3224
3225 ol.startDescTableRow();
3226 ol.addIndexItem(fmd->name(),ciname);
3227 ol.addIndexItem(ciname,fmd->name());
3228
3230 ol.startDoxyAnchor(cfname,cname,fmd->anchor(),fmd->name(),fmd->argsString());
3231 ol.addLabel(cfname,fmd->anchor());
3232 ol.docify(fmd->name());
3234 ol.writeString(" ");
3235 ol.enableAll();
3236 ol.endDoxyAnchor(cfname,fmd->anchor());
3237 ol.endDescTableTitle();
3238 if (hasInits)
3239 {
3240 ol.startDescTableInit();
3241 if (!fmd->initializer().isEmpty())
3242 {
3243 QCString initStr = fmd->initializer().stripWhiteSpace();
3244 if (initStr.startsWith("=")) initStr = initStr.mid(1).stripWhiteSpace();
3246 ol.writeString("(");
3247 ol.enableAll();
3248 ol.docify(initStr);
3250 ol.writeString(")");
3251 ol.enableAll();
3252 }
3253 ol.endDescTableInit();
3254 }
3255 ol.startDescTableData();
3256
3257 bool hasBrief = !fmd->briefDescription().isEmpty();
3258 bool hasDetails = !fmd->documentation().isEmpty();
3259
3260 if (hasBrief)
3261 {
3262 ol.generateDoc(fmd->briefFile(),fmd->briefLine(),
3263 getOuterScope()?getOuterScope():container,
3264 fmd,fmd->briefDescription(),TRUE,FALSE,
3265 QCString(),FALSE,FALSE,Config_getBool(MARKDOWN_SUPPORT));
3266 }
3267 if (hasDetails)
3268 {
3269 ol.generateDoc(fmd->docFile(),fmd->docLine(),
3270 getOuterScope()?getOuterScope():container,
3271 fmd,fmd->documentation()+"\n",TRUE,FALSE,
3272 QCString(),FALSE,FALSE,Config_getBool(MARKDOWN_SUPPORT));
3273 }
3274 ol.endDescTableData();
3275 ol.endDescTableRow();
3276 }
3277 }
3278 if (!first)
3279 {
3280 ol.endDescTable();
3281 }
3282 }
3283}
virtual QCString briefDescription(bool abbreviate=FALSE) const =0
virtual QCString documentation() const =0
virtual Definition * getOuterScope() const =0
Definition * getOuterScope() const override
bool isEnumerate() const override
bool hasEnumValues() const override
const MemberVector & enumFieldList() const override
void writeString(const QCString &text)
Definition outputlist.h:412
void endDescTableRow()
Definition outputlist.h:633
void startDescTableInit()
Definition outputlist.h:639
void endDescTable()
Definition outputlist.h:629
void endDescTableTitle()
Definition outputlist.h:637
void endDoxyAnchor(const QCString &fn, const QCString &anchor)
Definition outputlist.h:542
void docify(const QCString &s)
Definition outputlist.h:438
void endDescTableData()
Definition outputlist.h:645
void addIndexItem(const QCString &s1, const QCString &s2)
Definition outputlist.h:591
void startDescTableTitle()
Definition outputlist.h:635
void startDescTable(const QCString &title, const bool hasInits)
Definition outputlist.h:627
void generateDoc(const QCString &fileName, int startLine, const Definition *ctx, const MemberDef *md, const QCString &docStr, bool indexWords, bool isExample, const QCString &exampleName, bool singleLine, bool linkFromIndex, bool markdownSupport)
void addLabel(const QCString &fName, const QCString &anchor)
Definition outputlist.h:544
void startDescTableData()
Definition outputlist.h:643
void disableAllBut(OutputType o)
void startDoxyAnchor(const QCString &fName, const QCString &manName, const QCString &anchor, const QCString &name, const QCString &args)
Definition outputlist.h:538
void endDescTableInit()
Definition outputlist.h:641
void startDescTableRow()
Definition outputlist.h:631
QCString stripWhiteSpace() const
returns a copy of this string with leading and trailing whitespace removed
Definition qcstring.h:245
virtual QCString trEnumerationValues()=0

References OutputList::addIndexItem(), OutputList::addLabel(), Definition::briefDescription(), Config_getBool, OutputList::disableAllBut(), OutputList::docify(), Definition::documentation(), OutputList::enableAll(), OutputList::endDescTable(), OutputList::endDescTableData(), OutputList::endDescTableInit(), OutputList::endDescTableRow(), OutputList::endDescTableTitle(), OutputList::endDoxyAnchor(), enumFieldList(), FALSE, OutputList::generateDoc(), DefinitionMixin< MemberDefMutable >::getOuterScope(), hasEnumValues(), isEnumerate(), Man, QCString::mid(), OutputList::startDescTable(), OutputList::startDescTableData(), OutputList::startDescTableInit(), OutputList::startDescTableRow(), OutputList::startDescTableTitle(), OutputList::startDoxyAnchor(), QCString::startsWith(), QCString::stripWhiteSpace(), theTranslator, TRUE, and OutputList::writeString().

Referenced by writeDocumentation().

◆ _writeExamples()

void MemberDefImpl::_writeExamples ( OutputList & ol) const
private

Definition at line 3169 of file memberdef.cpp.

3170{
3171 // write the list of examples that use this member
3172 if (hasExamples())
3173 {
3174 ol.startExamples();
3175 ol.startDescForItem();
3177 ol.endDescForItem();
3178 ol.endExamples();
3179 }
3180}
ExampleList m_examples
bool hasExamples() const override
void endDescForItem()
Definition outputlist.h:550
void endExamples()
Definition outputlist.h:581
void startExamples()
Definition outputlist.h:579
void startDescForItem()
Definition outputlist.h:548
void writeExamples(OutputList &ol, const ExampleList &list)
Definition util.cpp:1127

References OutputList::endDescForItem(), OutputList::endExamples(), hasExamples(), m_examples, OutputList::startDescForItem(), OutputList::startExamples(), and writeExamples().

Referenced by writeDocumentation().

◆ _writeGroupInclude()

void MemberDefImpl::_writeGroupInclude ( OutputList & ol,
bool inGroup ) const
private

Definition at line 3363 of file memberdef.cpp.

3364{
3365 // only write out the include file if this is not part of a class or file
3366 // definition
3367 bool showGroupedMembInc = Config_getBool(SHOW_GROUPED_MEMB_INC);
3368 const FileDef *fd = getFileDef();
3369 QCString nm;
3370 if (fd) nm = getFileDef()->docName();
3371 if (inGroup && fd && showGroupedMembInc && !nm.isEmpty())
3372 {
3373 ol.startParagraph();
3374 ol.startTypewriter();
3375 SrcLangExt lang = getLanguage();
3376 bool isIDLorJava = lang==SrcLangExt::IDL || lang==SrcLangExt::Java;
3377 if (isIDLorJava)
3378 {
3379 ol.docify("import ");
3380 }
3381 else
3382 {
3383 ol.docify("#include ");
3384 }
3385
3386 if (isIDLorJava) ol.docify("\""); else ol.docify("<");
3387
3388 if (fd->isLinkable())
3389 {
3390 ol.writeObjectLink(fd->getReference(),fd->getOutputFileBase(),fd->anchor(),nm);
3391 }
3392 else
3393 {
3394 ol.docify(nm);
3395 }
3396
3397 if (isIDLorJava) ol.docify("\""); else ol.docify(">");
3398
3399 ol.endTypewriter();
3400 ol.endParagraph();
3401 }
3402}
virtual const QCString & docName() const =0
void startTypewriter()
Definition outputlist.h:450
void endTypewriter()
Definition outputlist.h:452
bool isEmpty() const
Returns TRUE iff the string is empty.
Definition qcstring.h:150
SrcLangExt
Language as given by extension.
Definition types.h:42

References Definition::anchor(), Config_getBool, OutputList::docify(), FileDef::docName(), OutputList::endParagraph(), OutputList::endTypewriter(), getFileDef(), DefinitionMixin< MemberDefMutable >::getLanguage(), Definition::getOutputFileBase(), Definition::getReference(), IDL, QCString::isEmpty(), Definition::isLinkable(), Java, OutputList::startParagraph(), OutputList::startTypewriter(), and OutputList::writeObjectLink().

Referenced by writeDocumentation().

◆ _writeMultiLineInitializer()

void MemberDefImpl::_writeMultiLineInitializer ( OutputList & ol,
const QCString & scopeName ) const
private

Definition at line 3404 of file memberdef.cpp.

3405{
3406 //printf("md=%s initLines=%d init='%s'\n",qPrint(name()),initLines,qPrint(init));
3407 ol.startBold();
3410 else
3412 ol.endBold();
3413 QCString langCorrected = getDefFileExtension();
3415 if (srcLangExt == SrcLangExt::Lex)
3416 {
3417 langCorrected = ".doxygen_lex_c";
3418 srcLangExt = SrcLangExt::Cpp;
3419 }
3420 auto intf = Doxygen::parserManager->getCodeParser(langCorrected);
3421 intf->resetCodeParserState();
3422 auto &codeOL = ol.codeGenerators();
3423 codeOL.startCodeFragment("DoxyCode");
3424 intf->parseCode(codeOL,scopeName,m_initializer,srcLangExt,Config_getBool(STRIP_CODE_COMMENTS),FALSE,QCString(),getFileDef(),
3425 -1,-1,TRUE,this,FALSE,this);
3426 codeOL.endCodeFragment("DoxyCode");
3427}
QCString getDefFileExtension() const override
static ParserManager * parserManager
Definition doxygen.h:131
QCString m_initializer
void startCodeFragment(const QCString &style)
Definition outputlist.h:278
const OutputCodeList & codeGenerators() const
Definition outputlist.h:357
void startBold()
Definition outputlist.h:562
void endBold()
Definition outputlist.h:564
std::unique_ptr< CodeParserInterface > getCodeParser(const QCString &extension)
Gets the interface to the parser associated with a given extension.
Definition parserintf.h:218
virtual QCString trDefineValue()=0
virtual QCString trInitialValue()=0
SrcLangExt getLanguageFromFileName(const QCString &fileName, SrcLangExt defLang)
Definition util.cpp:5549

References OutputList::codeGenerators(), Config_getBool, Cpp, Define, OutputList::endBold(), FALSE, DefinitionMixin< MemberDefMutable >::getDefFileExtension(), getFileDef(), getLanguageFromFileName(), Lex, m_initializer, m_mtype, Doxygen::parserManager, OutputList::parseText(), OutputList::startBold(), OutputCodeList::startCodeFragment(), theTranslator, and TRUE.

Referenced by writeDocumentation().

◆ _writeReimplementedBy()

void MemberDefImpl::_writeReimplementedBy ( OutputList & ol) const
private

Definition at line 3057 of file memberdef.cpp.

3058{
3059 const MemberVector &bml=reimplementedBy();
3060 size_t count = _countReimplementedBy();
3061 if (count>0)
3062 {
3063 auto replaceFunc = [&bml,&ol](size_t entryIndex)
3064 {
3065 size_t cnt=0;
3066 auto it = bml.begin();
3067 // find the entryIndex-th documented entry in the inheritance list.
3068 const MemberDef *bmd = nullptr;
3069 const ClassDef *bcd = nullptr;
3070 while (it!=bml.end())
3071 {
3072 bmd = *it;
3073 bcd = bmd->getClassDef();
3074 if ( bmd->isLinkable() && bcd->isLinkable())
3075 {
3076 if (cnt==entryIndex) break;
3077 cnt++;
3078 }
3079 ++it;
3080 }
3081
3082 if (bcd && bmd) // write link for marker
3083 {
3084 //ol.writeObjectLink(bcd->getReference(),bcd->getOutputFileBase(),
3085 // bmd->anchor(),bcd->name());
3087 bmd->anchor(),bcd->displayName());
3088
3089 if (bmd->isLinkableInProject() )
3090 {
3091 writePageRef(ol,bmd->getOutputFileBase(),bmd->anchor());
3092 }
3093 }
3094 };
3095
3096 QCString reimplInLine;
3097 if (m_virt==Specifier::Pure || (getClassDef() && getClassDef()->compoundType()==ClassDef::Interface))
3098 {
3099 reimplInLine = theTranslator->trImplementedInList(static_cast<int>(count));
3100 }
3101 else
3102 {
3103 reimplInLine = theTranslator->trReimplementedInList(static_cast<int>(count));
3104 }
3105
3106 // write the list of classes that overwrite this member
3107 ol.startParagraph();
3108 writeMarkerList(ol,
3109 reimplInLine.str(),
3110 count,
3111 replaceFunc);
3112 ol.endParagraph();
3113 }
3114}
@ Interface
Definition classdef.h:112
size_t _countReimplementedBy() const
iterator end() noexcept
Definition memberlist.h:55
iterator begin() noexcept
Definition memberlist.h:53
const std::string & str() const
Definition qcstring.h:537
virtual QCString trReimplementedInList(int numEntries)=0
virtual QCString trImplementedInList(int numEntries)=0
@ Pure
Definition types.h:29
void writePageRef(OutputList &ol, const QCString &cn, const QCString &mn)
Definition util.cpp:270
void writeMarkerList(OutputList &ol, const std::string &markerText, size_t numMarkers, std::function< void(size_t)> replaceFunc)
Definition util.cpp:1103

References _countReimplementedBy(), Definition::anchor(), MemberVector::begin(), Definition::displayName(), MemberVector::end(), OutputList::endParagraph(), MemberDef::getClassDef(), getClassDef(), Definition::getOutputFileBase(), Definition::getReference(), ClassDef::Interface, Definition::isLinkable(), Definition::isLinkableInProject(), m_virt, Pure, reimplementedBy(), OutputList::startParagraph(), QCString::str(), theTranslator, writeMarkerList(), OutputList::writeObjectLink(), and writePageRef().

Referenced by writeDocumentation().

◆ _writeReimplements()

void MemberDefImpl::_writeReimplements ( OutputList & ol) const
private

Definition at line 2981 of file memberdef.cpp.

2982{
2983 const MemberDef *bmd=reimplements();
2984 const ClassDef *bcd=nullptr;
2985 if (bmd && (bcd=bmd->getClassDef()))
2986 {
2987 // write class that contains a member that is reimplemented by this one
2988 if (bcd->isLinkable())
2989 {
2990 ol.startParagraph();
2991 QCString reimplFromLine;
2993 {
2994 reimplFromLine = theTranslator->trReimplementedFromList(1);
2995 }
2996 else
2997 {
2998 reimplFromLine = theTranslator->trImplementedFromList(1);
2999 }
3000 int markerPos = reimplFromLine.find("@0");
3001 if (markerPos!=-1) // should always pass this.
3002 {
3003 ol.parseText(reimplFromLine.left(markerPos)); //text left from marker
3004 if (bmd->isLinkable()) // replace marker with link
3005 {
3006 //Definition *bd=bmd->group;
3007 //if (bd==0) bd=bcd;
3009 bmd->anchor(),bcd->displayName());
3010
3011 //ol.writeObjectLink(bcd->getReference(),bcd->getOutputFileBase(),
3012 // bmd->anchor(),bcd->name());
3013 if ( bmd->isLinkableInProject() )
3014 {
3015 writePageRef(ol,bmd->getOutputFileBase(),bmd->anchor());
3016 }
3017 }
3018 else
3019 {
3021 QCString(),bcd->displayName());
3022 if (bcd->isLinkableInProject()/* && !Config_getBool(PDF_HYPERLINKS)*/ )
3023 {
3024 writePageRef(ol,bcd->getOutputFileBase(),bcd->anchor());
3025 }
3026 }
3027 ol.parseText(reimplFromLine.right(
3028 reimplFromLine.length()-markerPos-2)); // text right from marker
3029
3030 }
3031 else
3032 {
3033 err("translation error: no marker in trReimplementsFromList()\n");
3034 }
3035 ol.endParagraph();
3036 }
3037 }
3038}
virtual CompoundType compoundType() const =0
Returns the type of compound this is, i.e.
virtual Specifier virtualness(int count=0) const =0
size_t length() const
Returns the length of the string, not counting the 0-terminator.
Definition qcstring.h:153
QCString right(size_t len) const
Definition qcstring.h:219
virtual QCString trReimplementedFromList(int numEntries)=0
virtual QCString trImplementedFromList(int numEntries)=0
#define err(fmt,...)
Definition message.h:84

References Definition::anchor(), ClassDef::compoundType(), Definition::displayName(), OutputList::endParagraph(), err, QCString::find(), MemberDef::getClassDef(), Definition::getOutputFileBase(), Definition::getReference(), ClassDef::Interface, Definition::isLinkable(), Definition::isLinkableInProject(), QCString::left(), QCString::length(), OutputList::parseText(), Pure, reimplements(), QCString::right(), OutputList::startParagraph(), theTranslator, MemberDef::virtualness(), OutputList::writeObjectLink(), and writePageRef().

Referenced by writeDocumentation().

◆ _writeTagData()

void MemberDefImpl::_writeTagData ( const DefType ) const
private

◆ _writeTemplatePrefix()

void MemberDefImpl::_writeTemplatePrefix ( OutputList & ol,
const Definition * def,
const ArgumentList & al,
bool writeReqClause = true ) const
private

Definition at line 2165 of file memberdef.cpp.

2167{
2168 ol.docify("template<");
2169 for (auto it = al.begin(); it!=al.end();)
2170 {
2171 Argument a = *it;
2172 linkifyText(TextGeneratorOLImpl(ol), // out
2173 def, // scope
2174 getFileDef(), // fileScope
2175 this, // self
2176 a.type, // text
2177 FALSE // autoBreak
2178 );
2179 if (!a.name.isEmpty())
2180 {
2181 ol.docify(" ");
2182 ol.docify(a.name);
2183 }
2184 if (!a.defval.isEmpty())
2185 {
2186 ol.docify(" = ");
2187 ol.docify(a.defval);
2188 }
2189 ++it;
2190 if (it!=al.end()) ol.docify(", ");
2191 }
2192 ol.docify("> ");
2193 if (writeReqClause && !m_requiresClause.isEmpty())
2194 {
2195 ol.lineBreak();
2196 ol.docify("requires ");
2197 linkifyText(TextGeneratorOLImpl(ol), // out
2198 def, // scope
2199 getFileDef(), // fileScope
2200 this, // self
2201 m_requiresClause, // text
2202 FALSE // autoBreak
2203 );
2204 }
2205}
iterator end()
Definition arguments.h:87
iterator begin()
Definition arguments.h:86
QCString m_requiresClause
void lineBreak(const QCString &style=QCString())
Definition outputlist.h:560
QCString type
Definition arguments.h:37
QCString name
Definition arguments.h:39
QCString defval
Definition arguments.h:41
void linkifyText(const TextGeneratorIntf &out, const Definition *scope, const FileDef *fileScope, const Definition *self, const QCString &text, bool autoBreak, bool external, bool keepSpaces, int indentLevel)
Definition util.cpp:904

References ArgumentList::begin(), Argument::defval, OutputList::docify(), ArgumentList::end(), FALSE, getFileDef(), QCString::isEmpty(), OutputList::lineBreak(), linkifyText(), m_requiresClause, Argument::name, and Argument::type.

Referenced by writeDeclaration(), and writeDocumentation().

◆ _writeTypeConstraints()

void MemberDefImpl::_writeTypeConstraints ( OutputList & ol) const
private

Definition at line 3182 of file memberdef.cpp.

3183{
3184 if (m_typeConstraints.hasParameters())
3185 {
3187 }
3188}
ArgumentList m_typeConstraints
void writeTypeConstraints(OutputList &ol, const Definition *d, const ArgumentList &al)
Definition util.cpp:5755

References m_typeConstraints, and writeTypeConstraints().

Referenced by writeDocumentation().

◆ accessorClass()

ClassDef * MemberDefImpl::accessorClass ( ) const
overridevirtual

Implements MemberDef.

Definition at line 4889 of file memberdef.cpp.

4890{
4891 return m_accessorClass;
4892}
ClassDef * m_accessorClass

References m_accessorClass.

◆ addExample()

bool MemberDefImpl::addExample ( const QCString & anchor,
const QCString & name,
const QCString & file )
overridevirtual

Implements MemberDefMutable.

Definition at line 1620 of file memberdef.cpp.

1621{
1622 //printf("%s::addExample(%s,%s,%s)\n",qPrint(name()),anchor,nameStr,file);
1623 return m_examples.inSort(Example(anchor,nameStr,file));
1624}
QCString anchor() const override

References anchor(), and m_examples.

◆ addListReference()

void MemberDefImpl::addListReference ( Definition * d)
overridevirtual

Implements MemberDefMutable.

Definition at line 4478 of file memberdef.cpp.

4479{
4480 bool optimizeOutputForC = Config_getBool(OPTIMIZE_OUTPUT_FOR_C);
4481 //bool hideScopeNames = Config_getBool(HIDE_SCOPE_NAMES);
4482 //bool optimizeOutputJava = Config_getBool(OPTIMIZE_OUTPUT_JAVA);
4483 //bool fortranOpt = Config_getBool(OPTIMIZE_FOR_FORTRAN);
4484 SrcLangExt lang = getLanguage();
4485 if (!isLinkableInProject()) return;
4486 QCString memLabel;
4487 if (optimizeOutputForC)
4488 {
4489 memLabel=theTranslator->trGlobal(TRUE,TRUE);
4490 }
4491 else if (lang==SrcLangExt::Fortran)
4492 {
4494 }
4495 else
4496 {
4497 memLabel=theTranslator->trMember(TRUE,TRUE);
4498 }
4499 QCString memName = name();
4500 Definition *pd=getOuterScope();
4501 QCString pdName = pd->definitionType()==Definition::TypeClass ?
4502 (toClassDef(pd))->displayName() : pd->name();
4503 QCString sep = getLanguageSpecificSeparator(lang,TRUE);
4504 QCString memArgs;
4505 if (!isRelated()
4506 /* && commented out as a result of bug 597016
4507 (
4508 (!hideScopeNames && // there is a scope
4509 pd && pd!=Doxygen::globalScope) // and we can show it
4510 ||
4511 (pd=getClassDef()) // it's a class so we
4512 // show the scope anyway
4513 )
4514 */
4515 )
4516 {
4517 if (isObjCMethod())
4518 {
4519 memName = "[" + pd->name() + " " + name() + "]";
4520 }
4521 else
4522 {
4523 if (pd!=Doxygen::globalScope) memName.prepend(pdName+sep);
4524 memArgs = argsString();
4525 }
4526 }
4527 const RefItemVector &xrefItems = xrefListItems();
4528 if (sep!="::")
4529 {
4530 memName = substitute(memName,"::",sep);
4531 }
4532 addRefItem(xrefItems,
4533 qualifiedName()+argsString(), // argsString is needed for overloaded functions (see bug 609624)
4534 memLabel,
4535 getOutputFileBase()+"#"+anchor(),memName,memArgs,pd);
4536}
virtual DefType definitionType() const =0
const RefItemVector & xrefListItems() const override
static NamespaceDefMutable * globalScope
Definition doxygen.h:121
bool isObjCMethod() const override
bool isLinkableInProject() const override
QCString displayName(bool=TRUE) const override
QCString argsString() const override
bool isRelated() const override
QCString getOutputFileBase() const override
QCString & prepend(const char *s)
Definition qcstring.h:407
virtual QCString trGlobal(bool first_capital, bool singular)=0
virtual QCString trSubprogram(bool first_capital, bool singular)=0
virtual QCString trMember(bool first_capital, bool singular)=0
ClassDef * toClassDef(Definition *d)
QCString substitute(const QCString &s, const QCString &src, const QCString &dst)
substitute all occurrences of src in s by dst
Definition qcstring.cpp:477
std::vector< RefItem * > RefItemVector
Definition reflist.h:133
void addRefItem(const RefItemVector &sli, const QCString &key, const QCString &prefix, const QCString &name, const QCString &title, const QCString &args, const Definition *scope)
Definition util.cpp:5146
QCString getLanguageSpecificSeparator(SrcLangExt lang, bool classScope)
Returns the scope separator to use given the programming language lang.
Definition util.cpp:6230

References addRefItem(), anchor(), argsString(), Config_getBool, Definition::definitionType(), displayName(), Fortran, DefinitionMixin< MemberDefMutable >::getLanguage(), getLanguageSpecificSeparator(), DefinitionMixin< MemberDefMutable >::getOuterScope(), getOutputFileBase(), Doxygen::globalScope, isLinkableInProject(), isObjCMethod(), isRelated(), Definition::name(), DefinitionMixin< MemberDefMutable >::name(), QCString::prepend(), qualifiedName(), substitute(), theTranslator, toClassDef(), TRUE, Definition::TypeClass, and DefinitionMixin< MemberDefMutable >::xrefListItems().

◆ addQualifiers()

void MemberDefImpl::addQualifiers ( const StringVector & qualifiers)
overridevirtual

Implements MemberDefMutable.

Definition at line 5822 of file memberdef.cpp.

5823{
5824 for (const auto &sx : qualifiers)
5825 {
5826 bool alreadyAdded = std::find(m_qualifiers.begin(), m_qualifiers.end(), sx) != m_qualifiers.end();
5827 if (!alreadyAdded)
5828 {
5829 m_qualifiers.push_back(sx);
5830 }
5831 }
5832}
StringVector m_qualifiers

References m_qualifiers.

◆ anchor()

QCString MemberDefImpl::anchor ( ) const
overridevirtual

Returns the anchor within a page where this item can be found

Implements Definition.

Definition at line 1759 of file memberdef.cpp.

1760{
1761 QCString result=m_anc;
1762 if (m_groupAlias) return m_groupAlias->anchor();
1763 if (m_templateMaster) return m_templateMaster->anchor();
1764 if (m_enumScope && m_enumScope!=this) // avoid recursion for C#'s public enum E { E, F }
1765 {
1766 result.prepend(m_enumScope->anchor());
1767 }
1768 if (getGroupDef())
1769 {
1770 if (m_groupMember)
1771 {
1772 result=m_groupMember->anchor();
1773 }
1774 else if (getReference().isEmpty())
1775 {
1776 result.prepend("g");
1777 }
1778 }
1779 return result;
1780}
QCString m_anc
MemberDef * m_templateMaster
const MemberDef * m_enumScope
const MemberDef * m_groupAlias
QCString getReference() const override
MemberDef * m_groupMember

References getGroupDef(), getReference(), m_anc, m_enumScope, m_groupAlias, m_groupMember, m_templateMaster, and QCString::prepend().

Referenced by addExample(), addListReference(), getOutputFileBase(), writeDeclaration(), writeDocumentation(), writeLink(), writeMemberDocSimple(), and writeTagFile().

◆ argsString()

QCString MemberDefImpl::argsString ( ) const
overridevirtual

◆ argumentList()

const ArgumentList & MemberDefImpl::argumentList ( ) const
overridevirtual

Implements MemberDef.

Definition at line 5564 of file memberdef.cpp.

5565{
5566 return m_defArgList;
5567}
ArgumentList m_defArgList

References m_defArgList.

Referenced by detectUndocumentedParams(), and warnIfUndocumentedParams().

◆ bitfieldString()

QCString MemberDefImpl::bitfieldString ( ) const
overridevirtual

Implements MemberDef.

Definition at line 5035 of file memberdef.cpp.

5036{
5037 return m_bitfields;
5038}

References m_bitfields.

◆ briefDescription()

QCString MemberDefImpl::briefDescription ( bool abbreviate = FALSE) const
overridevirtual

Returns the brief description of this definition. This can include commands.

Reimplemented from DefinitionMixin< MemberDefMutable >.

Definition at line 6273 of file memberdef.cpp.

6274{
6275 if (m_templateMaster)
6276 {
6277 return m_templateMaster->briefDescription(abbr);
6278 }
6279 else
6280 {
6282 }
6283}
QCString briefDescription(bool abbreviate=FALSE) const override

References DefinitionMixin< Base >::briefDescription(), and m_templateMaster.

Referenced by findSectionsInDocumentation(), hasDetailedDescription(), writeDeclaration(), writeDocumentation(), and writeMemberDocSimple().

◆ cacheTypedefVal()

void MemberDefImpl::cacheTypedefVal ( const ClassDef * val,
const QCString & templSpec,
const QCString & resolvedType )
overridevirtual

Implements MemberDefMutable.

Definition at line 6040 of file memberdef.cpp.

6041{
6044 m_cachedTypedefTemplSpec=templSpec;
6045 m_cachedResolvedType=resolvedType;
6046 //printf("MemberDefImpl::cacheTypedefVal=%s m_impl=%p\n",qPrint(m_cachedResolvedType),m_impl);
6047}
bool m_isTypedefValCached
const ClassDef * m_cachedTypedefValue
QCString m_cachedTypedefTemplSpec
QCString m_cachedResolvedType

References m_cachedResolvedType, m_cachedTypedefTemplSpec, m_cachedTypedefValue, m_isTypedefValCached, and TRUE.

◆ category()

ClassDef * MemberDefImpl::category ( ) const
overridevirtual

Implements MemberDef.

Definition at line 6000 of file memberdef.cpp.

6001{
6002 return m_category;
6003}

References m_category.

◆ categoryRelation()

const MemberDef * MemberDefImpl::categoryRelation ( ) const
overridevirtual

Implements MemberDef.

Definition at line 6010 of file memberdef.cpp.

6011{
6012 return m_categoryRelation;
6013}

References m_categoryRelation.

◆ codeSymbolType()

CodeSymbolType MemberDefImpl::codeSymbolType ( ) const
overridevirtual

Used for syntax highlighting symbol class

Implements Definition.

Definition at line 6353 of file memberdef.cpp.

6354{
6355 switch (memberType())
6356 {
6373 }
6375}
MemberType memberType() const override
@ Enumeration
Definition types.h:395
@ EnumValue
Definition types.h:396
@ Dictionary
Definition types.h:406
@ Interface
Definition types.h:403
@ Sequence
Definition types.h:405
@ Variable
Definition types.h:393
@ Property
Definition types.h:401
@ Typedef
Definition types.h:394
@ Function
Definition types.h:392
@ Service
Definition types.h:404

References DCOP, Default, Define, Dictionary, Enumeration, EnumValue, Event, Friend, Function, Interface, memberType(), Property, Sequence, Service, Signal, Slot, Typedef, and Variable.

◆ copyArgumentNames()

void MemberDefImpl::copyArgumentNames ( const MemberDef * bmd)
overridevirtual

Implements MemberDefMutable.

Definition at line 6049 of file memberdef.cpp.

6050{
6051 {
6052 const ArgumentList &srcAl = bmd->argumentList();
6053 ArgumentList &dstAl = m_defArgList;
6054 auto srcIt = srcAl.begin();
6055 auto dstIt = dstAl.begin();
6056 while ( srcIt!=srcAl.end() && dstIt!=dstAl.end())
6057 {
6058 Argument &argDst = *dstIt;
6059 const Argument &argSrc = *srcIt;
6060 argDst.name = argSrc.name;
6061 argDst.docs = argSrc.docs;
6062 ++srcIt;
6063 ++dstIt;
6064 }
6065 }
6066
6067 {
6068 const ArgumentList &srcAl = bmd->declArgumentList();
6069 ArgumentList &dstAl = m_declArgList;
6070 auto srcIt = srcAl.begin();
6071 auto dstIt = dstAl.begin();
6072
6073 while ( srcIt!=srcAl.end() && dstIt!=dstAl.end())
6074 {
6075 Argument &argDst = *dstIt;
6076 const Argument &argSrc = *srcIt;
6077 argDst.name = argSrc.name;
6078 argDst.docs = argSrc.docs;
6079 ++srcIt;
6080 ++dstIt;
6081 }
6082 }
6083}
virtual const ArgumentList & argumentList() const =0
virtual const ArgumentList & declArgumentList() const =0
ArgumentList m_declArgList
QCString docs
Definition arguments.h:42

References MemberDef::argumentList(), ArgumentList::begin(), MemberDef::declArgumentList(), Argument::docs, ArgumentList::end(), m_declArgList, m_defArgList, and Argument::name.

◆ createTemplateInstanceMember()

std::unique_ptr< MemberDef > MemberDefImpl::createTemplateInstanceMember ( const ArgumentList & formalArgs,
const std::unique_ptr< ArgumentList > & actualArgs ) const
overridevirtual

Implements MemberDef.

Definition at line 4402 of file memberdef.cpp.

4404{
4405 //printf(" Member %s %s %s\n",qPrint(typeString()),qPrint(name()),qPrint(argsString()));
4406 std::unique_ptr<ArgumentList> actualArgList = std::make_unique<ArgumentList>(m_defArgList);
4407 if (!m_defArgList.empty())
4408 {
4409 // replace formal arguments with actuals
4410 for (Argument &arg : *actualArgList)
4411 {
4412 arg.type = substituteTemplateArgumentsInString(arg.type,formalArgs,actualArgs.get());
4413 }
4414 actualArgList->setTrailingReturnType(
4415 substituteTemplateArgumentsInString(actualArgList->trailingReturnType(),formalArgs,actualArgs.get()));
4416 }
4417
4418 QCString methodName=name();
4419 if (methodName.startsWith("operator ")) // conversion operator
4420 {
4421 methodName=substituteTemplateArgumentsInString(methodName,formalArgs,actualArgs.get());
4422 }
4423
4424 auto imd = createMemberDef(
4426 substituteTemplateArgumentsInString(m_type,formalArgs,actualArgs.get()),
4427 methodName,
4428 substituteTemplateArgumentsInString(m_args,formalArgs,actualArgs.get()),
4431 ArgumentList(), ArgumentList(), ""
4432 );
4433 auto mmd = toMemberDefMutable(imd.get());
4434 mmd->moveArgumentList(std::move(actualArgList));
4435 mmd->setDefinition(substituteTemplateArgumentsInString(m_def,formalArgs,actualArgs.get()));
4436 mmd->setBodyDef(getBodyDef());
4437 mmd->setBodySegment(getDefLine(),getStartBodyLine(),getEndBodyLine());
4438 mmd->setFormalTemplateArguments(formalArgs);
4439
4440 // TODO: init other member variables (if needed).
4441 // TODO: reimplemented info
4442 return imd;
4443}
QCString getDefFileName() const override
const FileDef * getBodyDef() const override
QCString m_type
Relationship m_related
QCString m_def
QCString m_exception
MemberDefMutable * toMemberDefMutable(Definition *d)
std::unique_ptr< MemberDef > createMemberDef(const QCString &defFileName, int defLine, int defColumn, const QCString &type, const QCString &name, const QCString &args, const QCString &excp, Protection prot, Specifier virt, bool stat, Relationship related, MemberType t, const ArgumentList &tal, const ArgumentList &al, const QCString &metaData)
Factory method to create a new instance of a MemberDef.
QCString substituteTemplateArgumentsInString(const QCString &nm, const ArgumentList &formalArgs, const ArgumentList *actualArgs)
Definition util.cpp:4705

References createMemberDef(), DefinitionMixin< MemberDefMutable >::getBodyDef(), DefinitionMixin< MemberDefMutable >::getDefColumn(), DefinitionMixin< MemberDefMutable >::getDefFileName(), DefinitionMixin< MemberDefMutable >::getDefLine(), DefinitionMixin< MemberDefMutable >::getEndBodyLine(), DefinitionMixin< MemberDefMutable >::getStartBodyLine(), m_args, m_def, m_defArgList, m_exception, m_mtype, m_prot, m_related, m_stat, m_type, m_virt, DefinitionMixin< MemberDefMutable >::name(), QCString::startsWith(), substituteTemplateArgumentsInString(), and toMemberDefMutable().

◆ declaration()

QCString MemberDefImpl::declaration ( ) const
overridevirtual

Implements MemberDef.

Definition at line 5005 of file memberdef.cpp.

5006{
5007 return m_decl;
5008}
QCString m_decl

References m_decl.

◆ declArgumentList()

const ArgumentList & MemberDefImpl::declArgumentList ( ) const
overridevirtual

Implements MemberDef.

Definition at line 5569 of file memberdef.cpp.

5570{
5571 return m_declArgList;
5572}

References m_declArgList.

Referenced by detectUndocumentedParams(), and warnIfUndocumentedParams().

◆ deepCopy()

std::unique_ptr< MemberDef > MemberDefImpl::deepCopy ( ) const
overridevirtual

Implements MemberDef.

Definition at line 1441 of file memberdef.cpp.

1442{
1443 std::unique_ptr<MemberDefImpl> result(new MemberDefImpl(
1446 // first copy base members
1447 result->DefinitionMixin<MemberDefMutable>::operator=(*this);
1448 // then copy other members
1449 result->m_typeConstraints = m_typeConstraints ;
1450 result->m_declArgList = m_declArgList ;
1451 result->m_classDef = m_classDef ;
1452 result->m_fileDef = m_fileDef ;
1453 result->m_moduleDef = m_moduleDef ;
1454 result->m_nspace = m_nspace ;
1455 result->m_enumScope = m_enumScope ;
1456 result->m_livesInsideEnum = m_livesInsideEnum ;
1457 result->m_annEnumType = m_annEnumType ;
1458 result->m_enumFields = m_enumFields ;
1459 result->m_redefines = m_redefines ;
1460 result->m_redefinedBy = m_redefinedBy ;
1461 result->m_memDef = m_memDef ;
1462 result->m_memDec = m_memDec ;
1463 result->m_relatedAlso = m_relatedAlso ;
1464 result->m_examples = m_examples ;
1465 result->m_accessorType = m_accessorType ;
1466 result->m_accessorClass = m_accessorClass ;
1467 result->m_def = m_def ;
1468 result->m_anc = m_anc ;
1469 result->m_decl = m_decl ;
1470 result->m_bitfields = m_bitfields ;
1471 result->m_read = m_read ;
1472 result->m_write = m_write ;
1473 result->m_exception = m_exception ;
1474 result->m_initializer = m_initializer ;
1475 result->m_extraTypeChars = m_extraTypeChars ;
1476 result->m_enumBaseType = m_enumBaseType ;
1477 result->m_requiresClause = m_requiresClause ;
1478 result->m_initLines = m_initLines ;
1479 result->m_memSpec = m_memSpec ;
1480 result->m_vhdlSpec = m_vhdlSpec ;
1481 result->m_maxInitLines = m_maxInitLines ;
1482 result->m_userInitLines = m_userInitLines ;
1483 result->m_annMemb = m_annMemb ;
1484 result->m_defArgList = m_defArgList ;
1485 result->m_declArgList = m_declArgList ;
1486 result->m_tArgList = m_tArgList ;
1487 result->m_typeConstraints = m_typeConstraints ;
1488 result->m_templateMaster = m_templateMaster ;
1489 result->m_formalTemplateArguments = m_formalTemplateArguments ;
1490 result->m_defTmpArgLists = m_defTmpArgLists ;
1491 result->m_cachedAnonymousType = m_cachedAnonymousType ;
1492 result->m_sectionMap = m_sectionMap ;
1493 result->m_groupAlias = m_groupAlias ;
1494 result->m_grpId = m_grpId ;
1495 result->m_memberGroup = m_memberGroup ;
1496 result->m_group = m_group ;
1497 result->m_grouppri = m_grouppri ;
1498 result->m_groupFileName = m_groupFileName ;
1499 result->m_groupStartLine = m_groupStartLine ;
1500 result->m_groupMember = m_groupMember ;
1501 result->m_isTypedefValCached = m_isTypedefValCached ;
1502 result->m_cachedTypedefValue = m_cachedTypedefValue ;
1503 result->m_cachedTypedefTemplSpec = m_cachedTypedefTemplSpec ;
1504 result->m_cachedResolvedType = m_cachedResolvedType ;
1505 result->m_docProvider = m_docProvider ;
1506 result->m_explicitOutputFileBase = m_explicitOutputFileBase ;
1507 result->m_qualifiers = m_qualifiers ;
1508 result->m_implOnly = m_implOnly ;
1509 result->m_hasDocumentedParams = m_hasDocumentedParams ;
1510 result->m_hasDocumentedReturnType = m_hasDocumentedReturnType ;
1511 result->m_isDMember = m_isDMember ;
1512 result->m_proto = m_proto ;
1513 result->m_docEnumValues = m_docEnumValues ;
1514 result->m_annScope = m_annScope ;
1515 result->m_hasDetailedDescriptionCached = m_hasDetailedDescriptionCached ;
1516 result->m_detailedDescriptionCachedValue = m_detailedDescriptionCachedValue ;
1517 result->m_hasCallGraph = m_hasCallGraph ;
1518 result->m_hasCallerGraph = m_hasCallerGraph ;
1519 result->m_hasReferencedByRelation = m_hasReferencedByRelation ;
1520 result->m_hasReferencesRelation = m_hasReferencesRelation ;
1521 result->m_hasEnumValues = m_hasEnumValues ;
1522 result->m_hasInlineSource = m_hasInlineSource ;
1523 result->m_explExt = m_explExt ;
1524 result->m_tspec = m_tspec ;
1525 result->m_groupHasDocs = m_groupHasDocs ;
1526 result->m_docsForDefinition = m_docsForDefinition ;
1527 result->m_category = m_category ;
1528 result->m_categoryRelation = m_categoryRelation ;
1529 result->m_declFileName = m_declFileName ;
1530 result->m_declLine = m_declLine ;
1531 result->m_declColumn = m_declColumn ;
1532 result->m_numberOfFlowKW = m_numberOfFlowKW ;
1533 result->setDefinitionTemplateParameterLists(m_defTmpArgLists);
1534
1535 result->m_isLinkableCached = 0;
1536 result->m_isConstructorCached = 0;
1537 result->m_isDestructorCached = 0;
1538 return result;
1539}
const QCString & localName() const override
VhdlSpecifier m_vhdlSpec
bool m_detailedDescriptionCachedValue
ArgumentLists m_defTmpArgLists
bool m_hasReferencedByRelation
MemberDef * m_memDec
MemberDef * m_annMemb
std::map< const Definition *, const MemberList * > m_sectionMap
bool m_hasDocumentedReturnType
QCString m_extraTypeChars
bool m_hasDocumentedParams
ModuleDef * m_moduleDef
bool m_hasReferencesRelation
bool m_hasInlineSource
QCString m_groupFileName
NamespaceDef * m_nspace
bool m_docsForDefinition
std::optional< ArgumentList > m_formalTemplateArguments
QCString m_read
MemberDef * m_redefines
QCString m_accessorType
ClassDef * m_classDef
MemberGroup * m_memberGroup
MemberVector m_redefinedBy
GroupDef * m_group
QCString m_metaData
TypeSpecifier m_memSpec
bool m_hasDetailedDescriptionCached
ClassDef * m_relatedAlso
const MemberDef * m_annEnumType
MemberDefImpl(const QCString &defFileName, int defLine, int defColumn, const QCString &type, const QCString &name, const QCString &args, const QCString &excp, Protection prot, Specifier virt, bool stat, Relationship related, MemberType t, const ArgumentList &tal, const ArgumentList &al, const QCString &metaData)
QCString m_enumBaseType
Grouping::GroupPri_t m_grouppri
MemberDef * m_memDef
bool m_livesInsideEnum
MemberVector m_enumFields
ClassDef * m_cachedAnonymousType
QCString m_write
FileDef * m_fileDef
QCString m_declFileName
ArgumentList m_tArgList
QCString m_explicitOutputFileBase
const MemberDef * m_docProvider

References DefinitionMixin< MemberDefMutable >::getDefColumn(), DefinitionMixin< MemberDefMutable >::getDefFileName(), DefinitionMixin< MemberDefMutable >::getDefLine(), DefinitionMixin< MemberDefMutable >::localName(), m_accessorClass, m_accessorType, m_anc, m_annEnumType, m_annMemb, m_annScope, m_args, m_bitfields, m_cachedAnonymousType, m_cachedResolvedType, m_cachedTypedefTemplSpec, m_cachedTypedefValue, m_category, m_categoryRelation, m_classDef, m_decl, m_declArgList, m_declColumn, m_declFileName, m_declLine, m_def, m_defArgList, m_defTmpArgLists, m_detailedDescriptionCachedValue, m_docEnumValues, m_docProvider, m_docsForDefinition, m_enumBaseType, m_enumFields, m_enumScope, m_examples, m_exception, m_explExt, m_explicitOutputFileBase, m_extraTypeChars, m_fileDef, m_formalTemplateArguments, m_group, m_groupAlias, m_groupFileName, m_groupHasDocs, m_groupMember, m_grouppri, m_groupStartLine, m_grpId, m_hasCallerGraph, m_hasCallGraph, m_hasDetailedDescriptionCached, m_hasDocumentedParams, m_hasDocumentedReturnType, m_hasEnumValues, m_hasInlineSource, m_hasReferencedByRelation, m_hasReferencesRelation, m_implOnly, m_initializer, m_initLines, m_isDMember, m_isTypedefValCached, m_livesInsideEnum, m_maxInitLines, m_memberGroup, m_memDec, m_memDef, m_memSpec, m_metaData, m_moduleDef, m_mtype, m_nspace, m_numberOfFlowKW, m_prot, m_proto, m_qualifiers, m_read, m_redefinedBy, m_redefines, m_related, m_relatedAlso, m_requiresClause, m_sectionMap, m_stat, m_tArgList, m_templateMaster, m_tspec, m_type, m_typeConstraints, m_userInitLines, m_vhdlSpec, m_virt, m_write, and MemberDefImpl().

◆ definition()

QCString MemberDefImpl::definition ( ) const
overridevirtual

Implements MemberDef.

Definition at line 5010 of file memberdef.cpp.

5011{
5012 return m_def;
5013}

References m_def.

Referenced by displayDefinition(), setAnchor(), and writeDocumentation().

◆ definitionTemplateParameterLists()

const ArgumentLists & MemberDefImpl::definitionTemplateParameterLists ( ) const
overridevirtual

Implements MemberDef.

Definition at line 5627 of file memberdef.cpp.

5628{
5629 return m_defTmpArgLists;
5630}

References m_defTmpArgLists.

◆ definitionType()

DefType MemberDefImpl::definitionType ( ) const
inlineoverridevirtual

Use this for dynamic inspection of the type of the derived class

Implements Definition.

Definition at line 64 of file memberdef.cpp.

64{ return TypeMember; }

References definitionType(), and Definition::TypeMember.

Referenced by definitionType().

◆ detectUndocumentedParams()

void MemberDefImpl::detectUndocumentedParams ( bool hasParamCommand,
bool hasReturnCommand ) const
overridevirtual

Implements MemberDef.

Definition at line 4166 of file memberdef.cpp.

4167{
4168 bool isPython = getLanguage()==SrcLangExt::Python;
4169
4170 // this function is called while parsing the documentation. A member can have multiple
4171 // documentation blocks, which could be handled by multiple threads, hence this guard.
4172 std::lock_guard<std::mutex> lock(g_detectUndocumentedParamsMutex);
4173
4174 if (!m_hasDocumentedParams && hasParamCommand)
4175 {
4176 //printf("%s:hasDocumentedParams=TRUE;\n",qPrint(name()));
4177 m_hasDocumentedParams = true;
4178 }
4179 else if (!m_hasDocumentedParams)
4180 {
4181 const ArgumentList &al = argumentList();
4182 const ArgumentList &declAl = declArgumentList();
4183 bool allDoc=TRUE; // no parameter => all parameters are documented
4184 if ( // member has parameters
4185 al.hasParameters() // with at least one parameter (that is not void)
4186 )
4187 {
4188 // see if all parameters have documentation
4189 for (auto it = al.begin(); it!=al.end() && allDoc; ++it)
4190 {
4191 Argument a = *it;
4192 if (!a.name.isEmpty() && a.type!="void" &&
4193 !(isPython && (a.name=="self" || a.name=="cls"))
4194 )
4195 {
4196 allDoc = !a.docs.isEmpty();
4197 }
4198 //printf("a->type=%s a->name=%s doc=%s\n",
4199 // qPrint(a->type),qPrint(a->name),qPrint(a->docs));
4200 }
4201 if (!allDoc && declAl.empty()) // try declaration arguments as well
4202 {
4203 allDoc=true;
4204 for (auto it = al.begin(); it!=al.end() && allDoc; ++it)
4205 {
4206 Argument a = *it;
4207 if (!a.name.isEmpty() && a.type!="void" &&
4208 !(isPython && (a.name=="self" || a.name=="cls"))
4209 )
4210 {
4211 allDoc = !a.docs.isEmpty();
4212 }
4213 //printf("a->name=%s doc=%s\n",qPrint(a->name),qPrint(a->docs));
4214 }
4215 }
4216 }
4217 if (allDoc)
4218 {
4219 //printf("%s:hasDocumentedParams=TRUE;\n",qPrint(name()));
4220 m_hasDocumentedParams = true;
4221 }
4222 }
4223
4224 //printf("Member %s hasDocumentedReturnType=%d hasReturnCommand=%d\n",
4225 // qPrint(name()),m_hasDocumentedReturnType,hasReturnCommand);
4227}
bool hasParameters() const
Definition arguments.h:69
bool empty() const
Definition arguments.h:92
const ArgumentList & argumentList() const override
const ArgumentList & declArgumentList() const override
static std::mutex g_detectUndocumentedParamsMutex

References argumentList(), ArgumentList::begin(), declArgumentList(), Argument::docs, ArgumentList::empty(), ArgumentList::end(), g_detectUndocumentedParamsMutex, DefinitionMixin< MemberDefMutable >::getLanguage(), ArgumentList::hasParameters(), QCString::isEmpty(), m_hasDocumentedParams, m_hasDocumentedReturnType, Argument::name, Python, TRUE, and Argument::type.

◆ displayDefinition()

QCString MemberDefImpl::displayDefinition ( ) const
overridevirtual

Implements MemberDef.

Definition at line 3288 of file memberdef.cpp.

3289{
3290 QCString ldef = definition();
3291 QCString title = name();
3292 if (isEnumerate())
3293 {
3294 if (isAnonymous())
3295 {
3296 ldef = title = "anonymous enum";
3297 if (!m_enumBaseType.isEmpty())
3298 {
3299 ldef+=" : "+m_enumBaseType;
3300 }
3301 }
3302 else
3303 {
3304 ldef.prepend("enum ");
3305 if (isSliceLocal())
3306 {
3307 ldef.prepend("local ");
3308 }
3309 }
3310 }
3311 else if (isEnumValue())
3312 {
3313 if (isAnonymous())
3314 {
3315 ldef=ldef.mid(2);
3316 }
3317 }
3318
3319 std::string sdef = ldef.str();
3320 reg::Match match;
3321 if (reg::search(sdef,match,reAnonymous))
3322 {
3323 ldef = match.prefix().str() + " { ... } " + removeAnonymousScopes(match.suffix().str());
3324 }
3325
3326 const ClassDef *cd=getClassDef();
3327 if (cd && cd->isObjectiveC())
3328 {
3329 // strip scope name
3330 int ep = ldef.find("::");
3331 if (ep!=-1)
3332 {
3333 int sp=ldef.findRev(' ',ep);
3334 if (sp!=-1)
3335 {
3336 ldef=ldef.left(sp+1)+ldef.mid(ep+2);
3337 }
3338 }
3339 // strip keywords
3340 int dp = ldef.find(':');
3341 if (dp!=-1)
3342 {
3343 ldef=ldef.left(dp+1);
3344 }
3345 int l=static_cast<int>(ldef.length());
3346 //printf("start >%s<\n",qPrint(ldef));
3347 int i=l-1;
3348 while (i>=0 && (isId(ldef.at(i)) || ldef.at(i)==':')) i--;
3349 while (i>=0 && isspace(static_cast<uint8_t>(ldef.at(i)))) i--;
3350 if (i>0)
3351 {
3352 // insert branches around the type
3353 ldef = "("+ldef.left(i+1)+")"+ldef.mid(i+1);
3354 }
3355 //printf("end >%s< i=%d\n",qPrint(ldef),i);
3356 if (isStatic()) ldef.prepend("+ "); else ldef.prepend("- ");
3357 }
3358 SrcLangExt lang = getLanguage();
3359 QCString sep = getLanguageSpecificSeparator(lang,TRUE);
3360 return substitute(ldef,"::",sep);
3361}
virtual bool isObjectiveC() const =0
Returns TRUE if this class is implemented in Objective-C.
bool isSliceLocal() const override
bool isEnumValue() const override
QCString definition() const override
bool isStatic() const override
char & at(size_t i)
Returns a reference to the character at index i.
Definition qcstring.h:578
int findRev(char c, int index=-1, bool cs=TRUE) const
Definition qcstring.cpp:91
static const reg::Ex reAnonymous(R"([\w:@]*@\d+)")
bool search(std::string_view str, Match &match, const Ex &re, size_t pos)
Search in a given string str starting at position pos for a match against regular expression re.
Definition regex.cpp:748
bool match(std::string_view str, Match &match, const Ex &re)
Matches a given string str for a match against regular expression re.
Definition regex.cpp:759
QCString removeAnonymousScopes(const QCString &str)
Definition util.cpp:172
bool isId(int c)
Definition util.h:202

References QCString::at(), definition(), QCString::find(), QCString::findRev(), getClassDef(), DefinitionMixin< MemberDefMutable >::getLanguage(), getLanguageSpecificSeparator(), DefinitionMixin< MemberDefMutable >::isAnonymous(), isEnumerate(), isEnumValue(), isId(), ClassDef::isObjectiveC(), isSliceLocal(), isStatic(), QCString::left(), QCString::length(), m_enumBaseType, QCString::mid(), DefinitionMixin< MemberDefMutable >::name(), QCString::prepend(), reAnonymous, removeAnonymousScopes(), reg::search(), QCString::str(), substitute(), and TRUE.

◆ displayName()

QCString MemberDefImpl::displayName ( bool includeScope = TRUE) const
overridevirtual

Returns the name of the definition as it appears in the output

Implements Definition.

Definition at line 6111 of file memberdef.cpp.

6112{
6113 return DefinitionMixin::name();
6114}

References DefinitionMixin< Base >::name().

Referenced by addListReference().

◆ documentation()

QCString MemberDefImpl::documentation ( ) const
overridevirtual

Returns the detailed description of this definition

Reimplemented from DefinitionMixin< MemberDefMutable >.

Definition at line 6285 of file memberdef.cpp.

6286{
6287 if (m_templateMaster)
6288 {
6289 return m_templateMaster->documentation();
6290 }
6291 else
6292 {
6294 }
6295}
QCString documentation() const override

References DefinitionMixin< Base >::documentation(), and m_templateMaster.

Referenced by findSectionsInDocumentation(), hasDetailedDescription(), isBriefSectionVisible(), writeDocumentation(), and writeMemberDocSimple().

◆ enumBaseType()

QCString MemberDefImpl::enumBaseType ( ) const
overridevirtual

Implements MemberDef.

Definition at line 6025 of file memberdef.cpp.

6026{
6027 return m_enumBaseType;
6028}

References m_enumBaseType.

◆ enumFieldList()

const MemberVector & MemberDefImpl::enumFieldList ( ) const
overridevirtual

Implements MemberDef.

Definition at line 5549 of file memberdef.cpp.

5550{
5551 return m_enumFields;
5552}

References m_enumFields.

Referenced by _writeEnumValues(), and warnIfUndocumented().

◆ excpString()

QCString MemberDefImpl::excpString ( ) const
overridevirtual

Implements MemberDef.

Definition at line 5030 of file memberdef.cpp.

5031{
5032 return m_exception;
5033}

References m_exception.

Referenced by writeDeclaration(), and writeDocumentation().

◆ extraTypeChars()

QCString MemberDefImpl::extraTypeChars ( ) const
overridevirtual

Implements MemberDef.

Definition at line 5015 of file memberdef.cpp.

5016{
5017 return m_extraTypeChars;
5018}

References m_extraTypeChars.

◆ fieldType()

QCString MemberDefImpl::fieldType ( ) const
overridevirtual

Implements MemberDef.

Definition at line 3920 of file memberdef.cpp.

3921{
3922 QCString type = m_accessorType;
3923 if (type.isEmpty())
3924 {
3925 type = m_type;
3926 }
3927
3928 if (isTypedef() && getLanguage() != SrcLangExt::Slice) type.prepend("typedef ");
3929 return simplifyTypeForTable(type);
3930}
bool isTypedef() const override
static QCString simplifyTypeForTable(const QCString &s)
@ Slice
Definition types.h:59

References DefinitionMixin< MemberDefMutable >::getLanguage(), QCString::isEmpty(), isTypedef(), m_accessorType, m_type, QCString::prepend(), simplifyTypeForTable(), and Slice.

Referenced by writeMemberDocSimple().

◆ findSectionsInDocumentation()

void MemberDefImpl::findSectionsInDocumentation ( )
overridevirtual

Implements MemberDefMutable.

Definition at line 4894 of file memberdef.cpp.

4895{
4899}
QCString docFile() const override
QCString inbodyDocumentation() const override
QCString briefDescription(bool abbr=FALSE) const override
QCString documentation() const override
void docFindSections(const QCString &input, const Definition *d, const QCString &fileName)

References briefDescription(), DefinitionMixin< MemberDefMutable >::docFile(), docFindSections(), documentation(), and DefinitionMixin< MemberDefMutable >::inbodyDocumentation().

◆ formalTemplateArguments()

std::optional< ArgumentList > MemberDefImpl::formalTemplateArguments ( ) const
overridevirtual

Implements MemberDef.

Definition at line 5708 of file memberdef.cpp.

5709{
5711}

References m_formalTemplateArguments.

◆ fromAnonymousMember()

MemberDef * MemberDefImpl::fromAnonymousMember ( ) const
overridevirtual

Implements MemberDef.

Definition at line 5959 of file memberdef.cpp.

5960{
5961 return m_annMemb;
5962}

References m_annMemb.

◆ fromAnonymousScope()

bool MemberDefImpl::fromAnonymousScope ( ) const
overridevirtual

Implements MemberDef.

Definition at line 5642 of file memberdef.cpp.

5643{
5644 return m_annScope;
5645}

References m_annScope.

◆ getAnonymousEnumType()

const MemberDef * MemberDefImpl::getAnonymousEnumType ( ) const
overridevirtual

Implements MemberDef.

Definition at line 5504 of file memberdef.cpp.

5505{
5506 return m_annEnumType;
5507}

References m_annEnumType.

Referenced by writeDeclaration().

◆ getCachedResolvedTypedef()

QCString MemberDefImpl::getCachedResolvedTypedef ( ) const
overridevirtual

Implements MemberDef.

Definition at line 5728 of file memberdef.cpp.

5729{
5730 //printf("MemberDefImpl::getCachedResolvedTypedef()=%s m_impl=%p\n",qPrint(m_cachedResolvedType),m_impl);
5731 return m_cachedResolvedType;
5732}

References m_cachedResolvedType.

◆ getCachedTypedefTemplSpec()

QCString MemberDefImpl::getCachedTypedefTemplSpec ( ) const
overridevirtual

Implements MemberDef.

Definition at line 5723 of file memberdef.cpp.

5724{
5726}

References m_cachedTypedefTemplSpec.

◆ getCachedTypedefVal()

const ClassDef * MemberDefImpl::getCachedTypedefVal ( ) const
overridevirtual

Implements MemberDef.

Definition at line 5718 of file memberdef.cpp.

5719{
5720 return m_cachedTypedefValue;
5721}

References m_cachedTypedefValue.

◆ getClassDef() [1/2]

◆ getClassDef() [2/2]

ClassDef * MemberDefImpl::getClassDef ( )
overridevirtual

Implements MemberDef.

Definition at line 5065 of file memberdef.cpp.

5066{
5067 return m_classDef;
5068}

References m_classDef.

◆ getClassDefMutable()

ClassDefMutable * MemberDefImpl::getClassDefMutable ( )
overridevirtual

Implements MemberDefMutable.

Definition at line 5070 of file memberdef.cpp.

5071{
5073}
ClassDefMutable * toClassDefMutable(Definition *d)

References m_classDef, and toClassDefMutable().

◆ getClassDefOfAnonymousType()

ClassDef * MemberDefImpl::getClassDefOfAnonymousType ( ) const
overridevirtual

If this member has an anonymous class/struct/union as its type, then this method will return the ClassDef that describes this return type.

Implements MemberDef.

Definition at line 1980 of file memberdef.cpp.

1981{
1982 std::lock_guard<std::mutex> lock(g_cachedAnonymousTypeMutex);
1983 //printf("%s:getClassDefOfAnonymousType() cache=%s\n",qPrint(name()),
1984 // m_cachedAnonymousType?qPrint(m_cachedAnonymousType->name()):"<empty>");
1986
1987 QCString cname;
1988 if (getClassDef()!=nullptr)
1989 {
1990 cname=getClassDef()->name();
1991 }
1992 else if (getNamespaceDef()!=nullptr)
1993 {
1994 cname=getNamespaceDef()->name();
1995 }
1996 QCString ltype(m_type);
1997 // strip 'friend' keyword from ltype
1998 ltype.stripPrefix("friend ");
1999
2000 // search for the last anonymous scope in the member type
2001 ClassDef *annoClassDef=nullptr;
2002
2003 // match expression if it contains at least one @1 marker, e.g.
2004 // 'struct A::@1::@2::B' matches 'A::@1::@2::B' but 'struct A::B' does not match.
2005 std::string stype = ltype.str();
2006 static const reg::Ex r(R"([\w@:]*@\d+[\w@:]*)");
2007 reg::Match match;
2008 if (reg::search(stype,match,r)) // found anonymous scope in type
2009 {
2010 QCString annName = match.str();
2011
2012 // if inside a class or namespace try to prepend the scope name
2013 if (!cname.isEmpty() && annName.left(cname.length()+2)!=cname+"::")
2014 {
2015 QCString ts=stripAnonymousNamespaceScope(cname+"::"+annName);
2016 annoClassDef=getClass(ts);
2017 }
2018 // if not found yet, try without scope name
2019 if (annoClassDef==nullptr)
2020 {
2021 QCString ts=stripAnonymousNamespaceScope(annName);
2022 annoClassDef=getClass(ts);
2023 }
2024 }
2025 m_cachedAnonymousType = annoClassDef;
2026 return annoClassDef;
2027}
ClassDef * getClass(const QCString &n)
static std::mutex g_cachedAnonymousTypeMutex
QCString stripAnonymousNamespaceScope(const QCString &s)
Definition util.cpp:241

References g_cachedAnonymousTypeMutex, getClass(), getClassDef(), getNamespaceDef(), QCString::isEmpty(), QCString::left(), QCString::length(), m_cachedAnonymousType, m_type, Definition::name(), reg::search(), QCString::str(), stripAnonymousNamespaceScope(), and QCString::stripPrefix().

Referenced by writeDeclaration(), and writeDocumentation().

◆ getDeclColumn()

int MemberDefImpl::getDeclColumn ( ) const
overridevirtual

Implements MemberDef.

Definition at line 5764 of file memberdef.cpp.

5765{
5766 return m_declColumn;
5767}

References m_declColumn.

◆ getDeclFileName()

QCString MemberDefImpl::getDeclFileName ( ) const
overridevirtual

Implements MemberDef.

Definition at line 5754 of file memberdef.cpp.

5755{
5756 return m_declFileName;
5757}

References m_declFileName.

◆ getDeclLine()

int MemberDefImpl::getDeclLine ( ) const
overridevirtual

Implements MemberDef.

Definition at line 5759 of file memberdef.cpp.

5760{
5761 return m_declLine;
5762}

References m_declLine.

◆ getDeclType()

QCString MemberDefImpl::getDeclType ( ) const
overridevirtual

Implements MemberDef.

Definition at line 2125 of file memberdef.cpp.

2126{
2127 SrcLangExt lang = getLanguage();
2128 QCString ltype(m_type);
2129 if (lang==SrcLangExt::Cpp && isEnumerate() && isStrong())
2130 {
2131 if (isEnumStruct())
2132 {
2133 ltype+=" struct";
2134 }
2135 else
2136 {
2137 ltype+=" class";
2138 }
2139 }
2141 {
2142 ltype.prepend("typedef ");
2143 }
2144 if (isTypeAlias())
2145 {
2146 ltype="using";
2147 }
2148 // strip 'friend' keyword from ltype
2149 ltype.stripPrefix("friend ");
2150 if (ltype=="@") // rename type from enum values
2151 {
2152 ltype="";
2153 }
2154 else
2155 {
2156 if (isObjCMethod())
2157 {
2158 ltype.prepend("(");
2159 ltype.append(")");
2160 }
2161 }
2162 return ltype;
2163}
bool isStrong() const override
bool isTypeAlias() const override
bool isEnumStruct() const override

References QCString::append(), Cpp, DefinitionMixin< MemberDefMutable >::getLanguage(), isEnumerate(), isEnumStruct(), isObjCMethod(), isStrong(), isTypeAlias(), isTypedef(), m_type, QCString::prepend(), Slice, and QCString::stripPrefix().

◆ getEnumScope()

const MemberDef * MemberDefImpl::getEnumScope ( ) const
overridevirtual

Implements MemberDef.

Definition at line 5514 of file memberdef.cpp.

5515{
5516 return m_enumScope;
5517}

References m_enumScope.

Referenced by getOutputFileBase(), and writeLink().

◆ getExamples()

const ExampleList & MemberDefImpl::getExamples ( ) const
overridevirtual

Implements MemberDef.

Definition at line 5554 of file memberdef.cpp.

5555{
5556 return m_examples;
5557}

References m_examples.

◆ getFileDef() [1/2]

const FileDef * MemberDefImpl::getFileDef ( ) const
overridevirtual

◆ getFileDef() [2/2]

FileDef * MemberDefImpl::getFileDef ( )
overridevirtual

Implements MemberDef.

Definition at line 5080 of file memberdef.cpp.

5081{
5082 return m_fileDef;
5083}

References m_fileDef.

◆ getGroupAlias()

const MemberDef * MemberDefImpl::getGroupAlias ( ) const
overridevirtual

Implements MemberDef.

Definition at line 5749 of file memberdef.cpp.

5750{
5751 return m_groupAlias;
5752}

References m_groupAlias.

◆ getGroupDef() [1/2]

const GroupDef * MemberDefImpl::getGroupDef ( ) const
overridevirtual

◆ getGroupDef() [2/2]

GroupDef * MemberDefImpl::getGroupDef ( )
overridevirtual

Implements MemberDef.

Definition at line 5110 of file memberdef.cpp.

5111{
5112 return m_group;
5113}

References m_group.

◆ getGroupFileName()

QCString MemberDefImpl::getGroupFileName ( ) const
overridevirtual

Implements MemberDef.

Definition at line 5125 of file memberdef.cpp.

5126{
5127 return m_groupFileName;
5128}

References m_groupFileName.

◆ getGroupHasDocs()

bool MemberDefImpl::getGroupHasDocs ( ) const
overridevirtual

Implements MemberDef.

Definition at line 5135 of file memberdef.cpp.

5136{
5137 return m_groupHasDocs;
5138}

References m_groupHasDocs.

◆ getGroupPri()

Grouping::GroupPri_t MemberDefImpl::getGroupPri ( ) const
overridevirtual

Implements MemberDef.

Definition at line 5120 of file memberdef.cpp.

5121{
5122 return m_grouppri;
5123}

References m_grouppri.

◆ getGroupStartLine()

int MemberDefImpl::getGroupStartLine ( ) const
overridevirtual

Implements MemberDef.

Definition at line 5130 of file memberdef.cpp.

5131{
5132 return m_groupStartLine;
5133}

References m_groupStartLine.

◆ getLabels()

StringVector MemberDefImpl::getLabels ( const Definition * container) const
overridevirtual

Implements MemberDef.

Definition at line 2786 of file memberdef.cpp.

2787{
2788 StringVector sl;
2789 bool inlineInfo = Config_getBool(INLINE_INFO);
2790
2791 Specifier lvirt=virtualness();
2792 if ((!isObjCMethod() || isOptional() || isRequired()) &&
2794 isFriend() || isRelated() ||
2795 (isInline() && inlineInfo) ||
2796 isSignal() || isSlot() ||
2797 isStatic() || isExternal() ||
2798 isExported() ||
2799 (getClassDef() && getClassDef()!=container && container->definitionType()==TypeClass) ||
2800 TypeSpecifier(m_memSpec).setInline(false)!=TypeSpecifier()
2801 )
2802 )
2803 {
2804 // write the member specifier list
2805 //ol.writeLatexSpacing();
2806 //ol.startTypewriter();
2807 //ol.docify(" [");
2808 SrcLangExt lang = getLanguage();
2809 bool optVhdl = lang==SrcLangExt::VHDL;
2810 bool extractPrivate = Config_getBool(EXTRACT_PRIVATE);
2811 if (optVhdl)
2812 {
2813 sl.push_back(theTranslator->trVhdlType(getVhdlSpecifiers(),TRUE).str());
2814 }
2815 else
2816 {
2817 if (isFriend()) sl.emplace_back("friend");
2818 else if (isRelated()) sl.emplace_back("related");
2819 else
2820 {
2821 if (isExternal()) sl.emplace_back("extern");
2822 if (inlineInfo && isInline()) sl.emplace_back("inline");
2823 if (isExplicit()) sl.emplace_back("explicit");
2824 if (isMutable()) sl.emplace_back("mutable");
2825 if (isStatic()) sl.emplace_back("static");
2826 if (isGettable()) sl.emplace_back("get");
2827 if (isProtectedGettable()) sl.emplace_back("protected get");
2828 if (isSettable()) sl.emplace_back("set");
2829 if (isProtectedSettable()) sl.emplace_back("protected set");
2830 if (extractPrivate)
2831 {
2832 if (isPrivateGettable()) sl.emplace_back("private get");
2833 if (isPrivateSettable()) sl.emplace_back("private set");
2834 }
2835 if (isNoDiscard()) sl.emplace_back("nodiscard");
2836 if (isConstExpr()) sl.emplace_back("constexpr");
2837 if (isConstEval()) sl.emplace_back("consteval");
2838 if (isConstInit()) sl.emplace_back("constinit");
2839 if (isAddable()) sl.emplace_back("add");
2840 if (!isUNOProperty() && isRemovable()) sl.emplace_back("remove");
2841 if (isRaisable()) sl.emplace_back("raise");
2842 if (isReadable()) sl.emplace_back("read");
2843 if (isWritable()) sl.emplace_back("write");
2844 if (isFinal()) sl.emplace_back("final");
2845 if (isAbstract()) sl.emplace_back("abstract");
2846 if (isOverride()) sl.emplace_back("override");
2847 if (isInitonly()) sl.emplace_back("initonly");
2848 if (isSealed()) sl.emplace_back("sealed");
2849 if (isNew()) sl.emplace_back("new");
2850 if (isOptional()) sl.emplace_back("optional");
2851 if (isRequired()) sl.emplace_back("required");
2852 if (isExported()) sl.emplace_back("export");
2853
2854 if (isNonAtomic()) sl.emplace_back("nonatomic");
2855 else if (isObjCProperty()) sl.emplace_back("atomic");
2856
2857 // mutual exclusive Objective 2.0 property attributes
2858 if (isAssign()) sl.emplace_back("assign");
2859 else if (isCopy()) sl.emplace_back("copy");
2860 else if (isRetain()) sl.emplace_back("retain");
2861 else if (isWeak()) sl.emplace_back("weak");
2862 else if (lang!=SrcLangExt::CSharp && isStrong()) sl.emplace_back("strong");
2863 else if (isUnretained()) sl.emplace_back("unsafe_unretained");
2864
2865 if (!isObjCMethod())
2866 {
2867 if (protection()==Protection::Protected) sl.emplace_back("protected");
2868 else if (protection()==Protection::Private) sl.emplace_back("private");
2869 else if (protection()==Protection::Package) sl.emplace_back("package");
2870
2871 if (lvirt==Specifier::Virtual) sl.emplace_back("virtual");
2872 else if (lvirt==Specifier::Pure) sl.emplace_back("pure virtual");
2873 if (isSignal()) sl.emplace_back("signal");
2874 if (isSlot()) sl.emplace_back("slot");
2875 if (isDefault()) sl.emplace_back("default");
2876 if (isDelete()) sl.emplace_back("delete");
2877 if (isNoExcept()) sl.emplace_back("noexcept");
2878 if (isAttribute()) sl.emplace_back("attribute");
2879 if (isUNOProperty()) sl.emplace_back("property");
2880 if (isReadonly()) sl.emplace_back("readonly");
2881 if (isBound()) sl.emplace_back("bound");
2882 if (isUNOProperty() && isRemovable()) sl.emplace_back("removable");
2883 if (isConstrained()) sl.emplace_back("constrained");
2884 if (isTransient()) sl.emplace_back("transient");
2885 if (isMaybeVoid()) sl.emplace_back("maybevoid");
2886 if (isMaybeDefault()) sl.emplace_back("maybedefault");
2887 if (isMaybeAmbiguous()) sl.emplace_back("maybeambiguous");
2888 if (isPublished()) sl.emplace_back("published"); // enum
2889 }
2891 {
2892 sl.emplace_back("implementation");
2893 }
2894 }
2895 if (getClassDef() &&
2896 container->definitionType()==TypeClass &&
2897 getClassDef()!=container &&
2898 !isRelated()
2899 )
2900 {
2901 sl.emplace_back("inherited");
2902 }
2903 }
2904 }
2905 else if (isObjCMethod() && isImplementation())
2906 {
2907 sl.emplace_back("implementation");
2908 }
2909
2910 for (const auto &sx : m_qualifiers)
2911 {
2912 bool alreadyAdded = std::find(sl.begin(), sl.end(), sx) != sl.end();
2913 if (!alreadyAdded)
2914 {
2915 sl.push_back(sx);
2916 }
2917 }
2918
2919 return sl;
2920}
bool isInline() const override
bool isOptional() const override
VhdlSpecifier getVhdlSpecifiers() const override
bool isNew() const override
bool isUnretained() const override
bool isGettable() const override
Specifier virtualness(int count=0) const override
bool isRaisable() const override
bool isMutable() const override
bool isPublished() const override
bool isProtectedSettable() const override
bool isUNOProperty() const override
bool isRequired() const override
bool isMaybeDefault() const override
bool isTransient() const override
bool isInitonly() const override
bool isAddable() const override
Protection protection() const override
bool isCopy() const override
bool isReadonly() const override
bool isAttribute() const override
bool isRetain() const override
bool isConstEval() const override
bool isExplicit() const override
bool isImplementation() const override
bool isDelete() const override
bool isNoExcept() const override
bool isWeak() const override
bool isNoDiscard() const override
bool isConstInit() const override
bool isProtectedGettable() const override
bool isWritable() const override
bool isSealed() const override
bool isAbstract() const override
bool isPrivateSettable() const override
bool isMaybeVoid() const override
bool isMaybeAmbiguous() const override
bool isAssign() const override
bool isRemovable() const override
bool isFriend() const override
bool isConstExpr() const override
bool isExternal() const override
bool isNonAtomic() const override
bool isPrivateGettable() const override
bool isObjCProperty() const override
bool isConstrained() const override
bool isReadable() const override
bool isDefault() const override
bool isSettable() const override
bool isBound() const override
virtual QCString trVhdlType(VhdlSpecifier type, bool single)=0
std::vector< std::string > StringVector
Definition containers.h:33
@ Package
Definition types.h:26
@ Public
Definition types.h:26
@ Protected
Definition types.h:26
@ CSharp
Definition types.h:46
Specifier
Virtualness of a member.
Definition types.h:29
@ Virtual
Definition types.h:29

References Config_getBool, CSharp, Definition::definitionType(), getClassDef(), DefinitionMixin< MemberDefMutable >::getLanguage(), getVhdlSpecifiers(), isAbstract(), isAddable(), isAssign(), isAttribute(), isBound(), isConstEval(), isConstExpr(), isConstInit(), isConstrained(), isCopy(), isDefault(), isDelete(), isExplicit(), DefinitionMixin< MemberDefMutable >::isExported(), isExternal(), isFinal(), isFriend(), isGettable(), isImplementation(), isInitonly(), isInline(), isMaybeAmbiguous(), isMaybeDefault(), isMaybeVoid(), isMutable(), isNew(), isNoDiscard(), isNoExcept(), isNonAtomic(), isObjCMethod(), isObjCProperty(), isOptional(), isOverride(), isPrivateGettable(), isPrivateSettable(), isProtectedGettable(), isProtectedSettable(), isPublished(), isRaisable(), isReadable(), isReadonly(), isRelated(), isRemovable(), isRequired(), isRetain(), isSealed(), isSettable(), isSignal(), isSlot(), isStatic(), isStrong(), isTransient(), isUNOProperty(), isUnretained(), isWeak(), isWritable(), m_memSpec, m_qualifiers, Normal, Package, Private, Protected, protection(), Public, Pure, theTranslator, TRUE, Definition::TypeClass, VHDL, Virtual, and virtualness().

Referenced by writeDocumentation().

◆ getMemberGroup()

MemberGroup * MemberDefImpl::getMemberGroup ( ) const
overridevirtual

Implements MemberDef.

Definition at line 5637 of file memberdef.cpp.

5638{
5639 return m_memberGroup;
5640}

References m_memberGroup.

◆ getMemberGroupId()

int MemberDefImpl::getMemberGroupId ( ) const
overridevirtual

Implements MemberDef.

Definition at line 5632 of file memberdef.cpp.

5633{
5634 return m_grpId;
5635}

References m_grpId.

◆ getMemberSpecifiers()

TypeSpecifier MemberDefImpl::getMemberSpecifiers ( ) const
overridevirtual

Implements MemberDef.

Definition at line 5050 of file memberdef.cpp.

5051{
5052 return m_memSpec;
5053}

References m_memSpec.

◆ getModuleDef()

const ModuleDef * MemberDefImpl::getModuleDef ( ) const
overridevirtual

Implements MemberDef.

Definition at line 5115 of file memberdef.cpp.

5116{
5117 return m_moduleDef;
5118}

References m_moduleDef.

Referenced by _computeLinkableInProject(), getOutputFileBase(), getReference(), writeDocumentation(), and writeLink().

◆ getNamespaceDef() [1/2]

const NamespaceDef * MemberDefImpl::getNamespaceDef ( ) const
overridevirtual

◆ getNamespaceDef() [2/2]

NamespaceDef * MemberDefImpl::getNamespaceDef ( )
overridevirtual

Implements MemberDef.

Definition at line 5090 of file memberdef.cpp.

5091{
5092 return m_nspace;
5093}

References m_nspace.

◆ getOutputFileBase()

QCString MemberDefImpl::getOutputFileBase ( ) const
overridevirtual

Returns the base file name (without extension) of this definition. as it is referenced to/written to disk.

Implements Definition.

Definition at line 1651 of file memberdef.cpp.

1652{
1653 bool separateMemberPages = Config_getBool(SEPARATE_MEMBER_PAGES);
1654 bool inlineSimpleClasses = Config_getBool(INLINE_SIMPLE_STRUCTS);
1655 QCString baseName;
1656
1657 //printf("Member: %s: templateMaster=%p group=%p classDef=%p nspace=%p fileDef=%p\n",
1658 // qPrint(name()),m_templateMaster,m_group,m_classDef,
1659 // m_nspace,m_fileDef);
1660 const NamespaceDef *nspace = getNamespaceDef();
1661 const FileDef *fileDef = getFileDef();
1662 const ClassDef *classDef = getClassDef();
1663 const ModuleDef *moduleDef = getModuleDef();
1664 const GroupDef *groupDef = getGroupDef();
1665 if (!m_explicitOutputFileBase.isEmpty())
1666 {
1668 }
1669 else if (templateMaster())
1670 {
1672 }
1673 else if (groupDef)
1674 {
1675 baseName=groupDef->getOutputFileBase();
1676 }
1677 else if (classDef)
1678 {
1679 baseName=classDef->getOutputFileBase();
1680 if (inlineSimpleClasses && classDef->isSimple())
1681 {
1682 return baseName;
1683 }
1684 }
1685 else if (nspace && (nspace->isLinkable() || nspace->isAnonymous()))
1686 {
1687 baseName=nspace->getOutputFileBase();
1688 }
1689 else if (fileDef)
1690 {
1691 baseName=fileDef->getOutputFileBase();
1692 }
1693 else if (moduleDef)
1694 {
1695 baseName=moduleDef->getOutputFileBase();
1696 }
1697
1698 if (baseName.isEmpty())
1699 {
1701 "Internal inconsistency: member %s does not belong to any"
1702 " container!",qPrint(name())
1703 );
1704 return "dummy";
1705 }
1706 else if (separateMemberPages && hasDetailedDescription())
1707 {
1708 if (getEnumScope()) // enum value, which is part of enum's documentation
1709 {
1710 baseName+="_"+getEnumScope()->anchor();
1711 }
1712 else
1713 {
1714 baseName+="_"+anchor();
1715 }
1716 }
1717 return baseName;
1718}
virtual bool isSimple() const =0
virtual bool isAnonymous() const =0
bool hasDetailedDescription() const override
const MemberDef * getEnumScope() const override
#define warn(file, line, fmt,...)
Definition message.h:59

References Definition::anchor(), anchor(), Config_getBool, getClassDef(), DefinitionMixin< MemberDefMutable >::getDefFileName(), DefinitionMixin< MemberDefMutable >::getDefLine(), getEnumScope(), getFileDef(), getGroupDef(), getModuleDef(), getNamespaceDef(), Definition::getOutputFileBase(), hasDetailedDescription(), Definition::isAnonymous(), QCString::isEmpty(), Definition::isLinkable(), ClassDef::isSimple(), m_explicitOutputFileBase, DefinitionMixin< MemberDefMutable >::name(), qPrint(), templateMaster(), and warn.

Referenced by addListReference(), writeDeclaration(), writeDocumentation(), writeLink(), writeMemberDocSimple(), and writeTagFile().

◆ getQualifiers()

StringVector MemberDefImpl::getQualifiers ( ) const
overridevirtual

Implements MemberDef.

Definition at line 5817 of file memberdef.cpp.

5818{
5819 return m_qualifiers;
5820}

References m_qualifiers.

◆ getReadAccessor()

QCString MemberDefImpl::getReadAccessor ( ) const
overridevirtual

Implements MemberDef.

Definition at line 5095 of file memberdef.cpp.

5096{
5097 return m_read;
5098}

References m_read.

◆ getReference()

QCString MemberDefImpl::getReference ( ) const
overridevirtual

If this definition was imported via a tag file, this function returns the tagfile for the external project. This can be translated into an external link target via Doxygen::tagDestinationDict

Reimplemented from DefinitionMixin< MemberDefMutable >.

Definition at line 1720 of file memberdef.cpp.

1721{
1722 QCString ref = DefinitionMixin::getReference();
1723 if (!ref.isEmpty())
1724 {
1725 return ref;
1726 }
1727 const NamespaceDef *nspace = getNamespaceDef();
1728 const FileDef *fileDef = getFileDef();
1729 const ClassDef *classDef = getClassDef();
1730 const ModuleDef *moduleDef = getModuleDef();
1731 const GroupDef *groupDef = getGroupDef();
1732 if (templateMaster())
1733 {
1734 return templateMaster()->getReference();
1735 }
1736 else if (groupDef)
1737 {
1738 return groupDef->getReference();
1739 }
1740 else if (classDef)
1741 {
1742 return classDef->getReference();
1743 }
1744 else if (nspace)
1745 {
1746 return nspace->getReference();
1747 }
1748 else if (moduleDef)
1749 {
1750 return moduleDef->getReference();
1751 }
1752 else if (fileDef)
1753 {
1754 return fileDef->getReference();
1755 }
1756 return "";
1757}
QCString getReference() const override

References getClassDef(), getFileDef(), getGroupDef(), getModuleDef(), getNamespaceDef(), Definition::getReference(), DefinitionMixin< Base >::getReference(), QCString::isEmpty(), and templateMaster().

Referenced by anchor(), and writeLink().

◆ getScopeString()

QCString MemberDefImpl::getScopeString ( ) const
overridevirtual

Implements MemberDef.

Definition at line 4314 of file memberdef.cpp.

4315{
4316 QCString result;
4317 if (isStrong()) result=name();
4318 else if (getClassDef()) result=getClassDef()->displayName();
4319 else if (getNamespaceDef()) result=getNamespaceDef()->displayName();
4320 return result;
4321}

References Definition::displayName(), getClassDef(), getNamespaceDef(), isStrong(), and DefinitionMixin< MemberDefMutable >::name().

Referenced by sourceRefName(), and writeDocumentation().

◆ getSectionList()

const MemberList * MemberDefImpl::getSectionList ( const Definition * container) const
overridevirtual

Implements MemberDef.

Definition at line 4538 of file memberdef.cpp.

4539{
4540 auto it = m_sectionMap.find(container);
4541 return it!=m_sectionMap.end() ? it->second : nullptr;
4542}

References m_sectionMap.

◆ getVhdlSpecifiers()

VhdlSpecifier MemberDefImpl::getVhdlSpecifiers ( ) const
overridevirtual

Implements MemberDef.

Definition at line 5055 of file memberdef.cpp.

5056{
5057 return m_vhdlSpec;
5058}

References m_vhdlSpec.

Referenced by getLabels().

◆ getWriteAccessor()

QCString MemberDefImpl::getWriteAccessor ( ) const
overridevirtual

Implements MemberDef.

Definition at line 5100 of file memberdef.cpp.

5101{
5102 return m_write;
5103}

References m_write.

◆ hasCallerGraph()

bool MemberDefImpl::hasCallerGraph ( ) const
overridevirtual

Implements MemberDef.

Definition at line 5665 of file memberdef.cpp.

5666{
5667 return m_hasCallerGraph;
5668}

References m_hasCallerGraph.

◆ hasCallGraph()

bool MemberDefImpl::hasCallGraph ( ) const
overridevirtual

Implements MemberDef.

Definition at line 5647 of file memberdef.cpp.

5648{
5649 return m_hasCallGraph;
5650}

References m_hasCallGraph.

◆ hasDetailedDescription()

bool MemberDefImpl::hasDetailedDescription ( ) const
overridevirtual

Implements MemberDef.

Definition at line 2663 of file memberdef.cpp.

2664{
2665 std::lock_guard<std::mutex> lock(g_hasDetailedDescriptionMutex);
2666 //printf(">hasDetailedDescription(cached=%d)\n",m_hasDetailedDescriptionCached);
2668 {
2669 bool extractAll = Config_getBool(EXTRACT_ALL);
2670 bool alwaysDetailedSec = Config_getBool(ALWAYS_DETAILED_SEC);
2671 bool repeatBrief = Config_getBool(REPEAT_BRIEF);
2672 bool briefMemberDesc = Config_getBool(BRIEF_MEMBER_DESC);
2673 bool hideUndocMembers = Config_getBool(HIDE_UNDOC_MEMBERS);
2674 bool extractStatic = Config_getBool(EXTRACT_STATIC);
2675 bool extractPrivateVirtual = Config_getBool(EXTRACT_PRIV_VIRTUAL);
2676 bool inlineSources = hasInlineSource();
2677
2678 // the member has detailed documentation because the user added some comments
2679 bool docFilter =
2680 // extract all is enabled
2681 extractAll ||
2682 // has detailed docs
2683 !documentation().isEmpty() ||
2684 // has inbody docs
2686 // is an enum with values that are documented
2688 // is documented enum value
2689 (m_mtype==MemberType::EnumValue && !briefDescription().isEmpty()) ||
2690 // has brief description that is part of the detailed description
2691 (!briefDescription().isEmpty() && // has brief docs
2692 (alwaysDetailedSec && // they are visible in
2693 (repeatBrief || // detailed section or
2694 !briefMemberDesc // they are explicitly not
2695 ) // shown in brief section
2696 )
2697 ) ||
2698 // has one or more documented arguments
2700 m_templateMaster->argumentList().hasDocumentation() :
2701 m_defArgList.hasDocumentation());
2702
2703 // generate function guard
2704 // ================== =======
2705 // _writeGroupInclude -> ignored in calculation
2706 // multiLineInitializer() -> hasMultiLineInitializer()
2707 // _writeReimplements -> _isReimplements()
2708 // _writeReimplementedBy -> _countReimplementedBy()>0
2709 // _writeExamples -> hasExamples()
2710 // _writeTypeConstraints -> m_typeConstraints.hasParameters()
2711 // writeSourceDef -> !getSourceFileBase().isEmpty();
2712 // writeInlineCode -> hasInlineSource() && hasSources()
2713 // writeSourceRefs -> hasReferencesRelation() && hasSourceRefs()
2714 // writeSourceReffedBy -> hasReferencedByRelation() && hasSourceReffedBy()
2715 // _writeCallGraph -> _hasVisibleCallGraph()
2716 // _writeCallerGraph -> _hasVisibleCallerGraph()
2717
2718 // the member has detailed documentation because there is some generated info
2719 bool docInfo =
2720 // has a multi-line initialization block
2722 // reimplements / reimplemented by
2724 // examples
2725 hasExamples() ||
2726 // type constraints
2727 m_typeConstraints.hasParameters() ||
2728 // has source definition
2730 // has inline sources
2731 (inlineSources && hasSources()) ||
2732 // has references
2735 // call graph
2737 // caller graph
2739
2740 if (!hideUndocMembers) // if HIDE_UNDOC_MEMBERS is NO we also show the detailed section
2741 // if there is only some generated info
2742 {
2743 docFilter = docFilter || docInfo;
2744 }
2745
2746 // this is not a global static or global statics should be extracted
2747 bool staticFilter = getClassDef()!=nullptr || !isStatic() || extractStatic;
2748
2749 // only include members that are non-private unless EXTRACT_PRIVATE is
2750 // set to YES or the member is part of a group
2751 bool privateFilter = protectionLevelVisible(protection()) || m_mtype==MemberType::Friend ||
2752 (m_prot==Protection::Private && (m_virt!=Specifier::Normal || isOverride() || isFinal()) && extractPrivateVirtual);
2753
2754 // hide friend (class|struct|union) member if HIDE_FRIEND_COMPOUNDS
2755 // is true
2756 bool friendCompoundFilter = !(Config_getBool(HIDE_FRIEND_COMPOUNDS) && isFriend());
2757
2759 (docFilter && staticFilter && privateFilter && friendCompoundFilter && !isHidden());
2760 //printf("docFilter=%d docInfo=%d staticFilter=%d privateFilter=%d friendCompoundFilter=%d !isHidden()=%d",
2761 // docFilter,docInfo,staticFilter,privateFilter,friendCompoundFilter,!isHidden());
2763 }
2764 //printf("<hasDetailedDescription(cached=%d)\n",m_hasDetailedDescriptionCached);
2766}
QCString getSourceFileBase() const override
bool hasSourceReffedBy() const override
bool _isReimplements() const
bool hasMultiLineInitializer() const override
bool hasInlineSource() const override
bool hasReferencesRelation() const override
bool hasReferencedByRelation() const override
bool hasDocumentedEnumValues() const override
static std::mutex g_hasDetailedDescriptionMutex

References _countReimplementedBy(), _hasVisibleCallerGraph(), _hasVisibleCallGraph(), _isReimplements(), briefDescription(), Config_getBool, documentation(), EnumValue, Friend, g_hasDetailedDescriptionMutex, getClassDef(), DefinitionMixin< MemberDefMutable >::getSourceFileBase(), hasDocumentation(), hasDocumentedEnumValues(), hasExamples(), hasInlineSource(), hasMultiLineInitializer(), hasReferencedByRelation(), hasReferencesRelation(), DefinitionMixin< MemberDefMutable >::hasSourceReffedBy(), DefinitionMixin< MemberDefMutable >::hasSourceRefs(), DefinitionMixin< MemberDefMutable >::hasSources(), DefinitionMixin< MemberDefMutable >::inbodyDocumentation(), QCString::isEmpty(), isEnumerate(), isFinal(), isFriend(), DefinitionMixin< MemberDefMutable >::isHidden(), isOverride(), isStatic(), m_defArgList, m_detailedDescriptionCachedValue, m_hasDetailedDescriptionCached, m_mtype, m_prot, m_templateMaster, m_typeConstraints, m_virt, Normal, Private, protection(), and protectionLevelVisible().

Referenced by getOutputFileBase(), isDetailedSectionVisible(), warnIfUndocumented(), writeDeclaration(), and writeLink().

◆ hasDocumentation()

bool MemberDefImpl::hasDocumentation ( ) const
overridevirtual

Returns TRUE iff the definition is documented (which could be generated documentation)

See also
hasUserDocumentation()

Reimplemented from DefinitionMixin< MemberDefMutable >.

Definition at line 4301 of file memberdef.cpp.

4302{
4304 (m_mtype==MemberType::Enumeration && m_docEnumValues) || // has enum values
4305 (m_defArgList.hasDocumentation()); // has doc arguments
4306}
bool hasDocumentation() const override

References Enumeration, DefinitionMixin< Base >::hasDocumentation(), m_defArgList, m_docEnumValues, and m_mtype.

Referenced by _computeLinkableInProject(), hasDetailedDescription(), isBriefSectionVisible(), visibleInIndex(), warnIfUndocumentedParams(), and writeDeclaration().

◆ hasDocumentedEnumValues()

bool MemberDefImpl::hasDocumentedEnumValues ( ) const
overridevirtual

Implements MemberDef.

Definition at line 5499 of file memberdef.cpp.

5500{
5501 return m_docEnumValues;
5502}

References m_docEnumValues.

Referenced by hasDetailedDescription(), and writeEnumDeclaration().

◆ hasEnumValues()

bool MemberDefImpl::hasEnumValues ( ) const
overridevirtual

Implements MemberDef.

Definition at line 5698 of file memberdef.cpp.

5699{
5700 return m_hasEnumValues;
5701}

References m_hasEnumValues.

Referenced by _writeEnumValues().

◆ hasExamples()

bool MemberDefImpl::hasExamples ( ) const
overridevirtual

Implements MemberDef.

Definition at line 1626 of file memberdef.cpp.

1627{
1628 return !m_examples.empty();
1629}

References m_examples.

Referenced by _writeExamples(), and hasDetailedDescription().

◆ hasInlineSource()

bool MemberDefImpl::hasInlineSource ( ) const
overridevirtual

Implements MemberDef.

Definition at line 5693 of file memberdef.cpp.

5694{
5695 return m_hasInlineSource;
5696}

References m_hasInlineSource.

Referenced by hasDetailedDescription().

◆ hasMultiLineInitializer()

bool MemberDefImpl::hasMultiLineInitializer ( ) const
overridevirtual

Implements MemberDef.

Definition at line 4456 of file memberdef.cpp.

4457{
4458 //printf("initLines=%d userInitLines=%d maxInitLines=%d\n",
4459 // initLines,userInitLines,maxInitLines);
4460 bool isFuncLikeMacro = m_mtype==MemberType::Define && m_defArgList.hasParameters();
4461 return (m_initLines>0 || (!m_initializer.isEmpty() && isFuncLikeMacro)) &&
4462 ((m_initLines<m_maxInitLines && m_userInitLines==-1) // implicitly enabled
4463 || m_initLines<m_userInitLines // explicitly enabled
4464 );
4465}

References Define, m_defArgList, m_initializer, m_initLines, m_maxInitLines, m_mtype, and m_userInitLines.

Referenced by hasDetailedDescription(), and writeDocumentation().

◆ hasOneLineInitializer()

bool MemberDefImpl::hasOneLineInitializer ( ) const
overridevirtual

Implements MemberDef.

Definition at line 4445 of file memberdef.cpp.

4446{
4447 //printf("%s: init=%s, initLines=%d maxInitLines=%d userInitLines=%d\n",
4448 // qPrint(name()),qPrint(m_initializer),m_initLines,
4449 // m_maxInitLines,m_userInitLines);
4450 bool isFuncLikeMacro = m_mtype==MemberType::Define && m_defArgList.hasParameters();
4451 return !m_initializer.isEmpty() && m_initLines==0 && // one line initializer
4452 !isFuncLikeMacro &&
4453 ((m_maxInitLines>0 && m_userInitLines==-1) || m_userInitLines>0); // enabled by default or explicitly
4454}

References Define, m_defArgList, m_initializer, m_initLines, m_maxInitLines, m_mtype, and m_userInitLines.

Referenced by writeDeclaration(), writeDocumentation(), and writeMemberDocSimple().

◆ hasReferencedByRelation()

bool MemberDefImpl::hasReferencedByRelation ( ) const
overridevirtual

Implements MemberDef.

Definition at line 5683 of file memberdef.cpp.

5684{
5686}

References m_hasReferencedByRelation.

Referenced by hasDetailedDescription(), and writeDocumentation().

◆ hasReferencesRelation()

bool MemberDefImpl::hasReferencesRelation ( ) const
overridevirtual

Implements MemberDef.

Definition at line 5688 of file memberdef.cpp.

5689{
5691}

References m_hasReferencesRelation.

Referenced by hasDetailedDescription(), and writeDocumentation().

◆ hasUserDocumentation()

bool MemberDefImpl::hasUserDocumentation ( ) const
overridevirtual

Returns TRUE iff the definition is documented by the user.

Reimplemented from DefinitionMixin< MemberDefMutable >.

Definition at line 6297 of file memberdef.cpp.

6298{
6299 if (m_templateMaster)
6300 {
6301 return m_templateMaster->hasUserDocumentation();
6302 }
6303 else
6304 {
6306 }
6307}
bool hasUserDocumentation() const override

References DefinitionMixin< Base >::hasUserDocumentation(), and m_templateMaster.

Referenced by warnIfUndocumented().

◆ incrementFlowKeyWordCount()

void MemberDefImpl::incrementFlowKeyWordCount ( )
overridevirtual

Implements MemberDefMutable.

Definition at line 6099 of file memberdef.cpp.

6100{
6102}

References m_numberOfFlowKW.

◆ inheritsDocsFrom()

const MemberDef * MemberDefImpl::inheritsDocsFrom ( ) const
overridevirtual

Implements MemberDef.

Definition at line 5744 of file memberdef.cpp.

5745{
5746 return m_docProvider;
5747}

References m_docProvider.

◆ init()

void MemberDefImpl::init ( Definition * def,
const QCString & t,
const QCString & a,
const QCString & e,
Protection p,
Specifier v,
bool s,
Relationship r,
MemberType mt,
const ArgumentList & tal,
const ArgumentList & al,
const QCString & meta )
private

Definition at line 1318 of file memberdef.cpp.

1324{
1325 m_classDef=nullptr;
1326 m_fileDef=nullptr;
1327 m_moduleDef=nullptr;
1328 m_redefines=nullptr;
1329 m_relatedAlso=nullptr;
1330 m_accessorClass=nullptr;
1331 m_nspace=nullptr;
1332 m_memDef=nullptr;
1333 m_memDec=nullptr;
1334 m_group=nullptr;
1335 m_grpId=-1;
1336 m_enumScope=nullptr;
1338 m_hasCallGraph = Config_getBool(CALL_GRAPH);
1339 m_hasCallerGraph = Config_getBool(CALLER_GRAPH);
1340 m_hasReferencedByRelation = Config_getBool(REFERENCED_BY_RELATION);
1341 m_hasReferencesRelation = Config_getBool(REFERENCES_RELATION);
1342 m_hasEnumValues = Config_getBool(SHOW_ENUM_VALUES);
1343 m_hasInlineSource = Config_getBool(INLINE_SOURCES);
1344 m_initLines=0;
1345 m_type=t;
1346 if (mt==MemberType::Typedef) m_type.stripPrefix("typedef ");
1347 // type.stripPrefix("struct ");
1348 // type.stripPrefix("class " );
1349 // type.stripPrefix("union " );
1351 m_args=a;
1353 if (m_type.isEmpty()) m_decl=d->name()+m_args; else m_decl=m_type+" "+d->name()+m_args;
1354
1355 m_memberGroup=nullptr;
1356 m_virt=v;
1357 m_prot=p;
1358 m_related=r;
1359 m_stat=s;
1360 m_mtype=mt;
1361 m_exception=e;
1362 m_proto=FALSE;
1364 m_memSpec=TypeSpecifier();
1366 m_annMemb=nullptr;
1367 m_annEnumType=nullptr;
1368 m_groupAlias=nullptr;
1370 m_tspec=FALSE;
1371 m_cachedAnonymousType=nullptr;
1372 m_maxInitLines=Config_getInt(MAX_INITIALIZER_LINES);
1373 m_userInitLines=-1;
1375 // copy function template arguments (if any)
1376 m_tArgList = tal;
1377 //printf("new member al=%p\n",al);
1378 // copy function definition arguments (if any)
1379 m_defArgList = al;
1380 // convert function declaration arguments (if any)
1381 if (!m_args.isEmpty())
1382 {
1384 //printf("setDeclArgList %s to %s const=%d\n",qPrint(args),
1385 // qPrint(argListToString(declArgList)),declArgList->constSpecifier);
1386 }
1387 m_metaData = meta;
1388 m_templateMaster = nullptr;
1391 m_cachedTypedefValue = nullptr;
1393 m_groupMember = nullptr;
1396 m_docProvider = nullptr;
1397 m_isDMember = d->getDefFileName().lower().endsWith(".d");
1398}
std::unique_ptr< ArgumentList > stringToArgumentList(SrcLangExt lang, const QCString &argsString, QCString *extraTypeChars=nullptr)
Definition defargs.l:814

References Config_getBool, Config_getInt, QCString::endsWith(), FALSE, Definition::getDefFileName(), Definition::getLanguage(), QCString::lower(), m_accessorClass, m_annEnumType, m_annMemb, m_annScope, m_args, m_cachedAnonymousType, m_cachedTypedefValue, m_classDef, m_decl, m_declArgList, m_defArgList, m_docEnumValues, m_docProvider, m_docsForDefinition, m_enumScope, m_exception, m_explExt, m_extraTypeChars, m_fileDef, m_group, m_groupAlias, m_groupMember, m_grpId, m_hasCallerGraph, m_hasCallGraph, m_hasDocumentedParams, m_hasDocumentedReturnType, m_hasEnumValues, m_hasInlineSource, m_hasReferencedByRelation, m_hasReferencesRelation, m_implOnly, m_initLines, m_isDMember, m_isTypedefValCached, m_livesInsideEnum, m_maxInitLines, m_memberGroup, m_memDec, m_memDef, m_memSpec, m_metaData, m_moduleDef, m_mtype, m_nspace, m_prot, m_proto, m_redefines, m_related, m_relatedAlso, m_stat, m_tArgList, m_templateMaster, m_tspec, m_type, m_userInitLines, m_vhdlSpec, m_virt, Definition::name(), removeRedundantWhiteSpace(), stringToArgumentList(), TRUE, Typedef, and UNKNOWN.

Referenced by MemberDefImpl(), and writeDocumentation().

◆ initializer()

const QCString & MemberDefImpl::initializer ( ) const
overridevirtual

Implements MemberDef.

Definition at line 5040 of file memberdef.cpp.

5041{
5042 return m_initializer;
5043}

References m_initializer.

Referenced by setInitializer().

◆ initializerLines()

int MemberDefImpl::initializerLines ( ) const
overridevirtual

Implements MemberDef.

Definition at line 5045 of file memberdef.cpp.

5046{
5047 return m_initLines;
5048}

References m_initLines.

◆ insertEnumField()

void MemberDefImpl::insertEnumField ( MemberDef * md)
overridevirtual

Implements MemberDefMutable.

Definition at line 1615 of file memberdef.cpp.

1616{
1617 m_enumFields.push_back(md);
1618}

References m_enumFields.

◆ insertReimplementedBy()

void MemberDefImpl::insertReimplementedBy ( MemberDef * md)
overridevirtual

Implements MemberDefMutable.

Definition at line 1570 of file memberdef.cpp.

1571{
1572 if (m_templateMaster)
1573 {
1574 MemberDefMutable *mdm = toMemberDefMutable(m_templateMaster);
1575 if (mdm)
1576 {
1577 mdm->insertReimplementedBy(md);
1578 }
1579 }
1580 if (!m_redefinedBy.contains(md))
1581 {
1582 m_redefinedBy.inSort(md);
1583 }
1584}
virtual void insertReimplementedBy(MemberDef *md)=0

References MemberDefMutable::insertReimplementedBy(), m_redefinedBy, m_templateMaster, and toMemberDefMutable().

◆ invalidateCachedArgumentTypes()

void MemberDefImpl::invalidateCachedArgumentTypes ( )
overridevirtual

Implements MemberDefMutable.

Definition at line 6093 of file memberdef.cpp.

6094{
6097}
static void invalidateCachedTypesInArgumentList(ArgumentList &al)

References invalidateCachedTypesInArgumentList(), m_declArgList, and m_defArgList.

◆ invalidateTypedefValCache()

void MemberDefImpl::invalidateTypedefValCache ( )
overridevirtual

Implements MemberDefMutable.

Definition at line 5985 of file memberdef.cpp.

5986{
5988}

References FALSE, and m_isTypedefValCached.

◆ isAbstract()

bool MemberDefImpl::isAbstract ( ) const
overridevirtual

Implements MemberDef.

Definition at line 5335 of file memberdef.cpp.

5336{
5337 return m_memSpec.isAbstract();
5338}

References m_memSpec.

Referenced by getLabels().

◆ isAddable()

bool MemberDefImpl::isAddable ( ) const
overridevirtual

Implements MemberDef.

Definition at line 5285 of file memberdef.cpp.

5286{
5287 return m_memSpec.isAddable();
5288}

References m_memSpec.

Referenced by getLabels(), and writeDeclaration().

◆ isAssign()

bool MemberDefImpl::isAssign ( ) const
overridevirtual

Implements MemberDef.

Definition at line 5360 of file memberdef.cpp.

5361{
5362 return m_memSpec.isAssign();
5363}

References m_memSpec.

Referenced by getLabels().

◆ isAttribute()

bool MemberDefImpl::isAttribute ( ) const
overridevirtual

Implements MemberDef.

Definition at line 5417 of file memberdef.cpp.

5418{
5419 return m_memSpec.isAttribute();
5420}

References m_memSpec.

Referenced by getLabels().

◆ isBound()

bool MemberDefImpl::isBound ( ) const
overridevirtual

Implements MemberDef.

Definition at line 5432 of file memberdef.cpp.

5433{
5434 return m_memSpec.isBound();
5435}

References m_memSpec.

Referenced by getLabels().

◆ isBriefSectionVisible()

bool MemberDefImpl::isBriefSectionVisible ( ) const
overridevirtual

This methods returns TRUE iff the brief section (also known as declaration section) is visible in the documentation.

Implements MemberDef.

Definition at line 2032 of file memberdef.cpp.

2033{
2034 bool extractStatic = Config_getBool(EXTRACT_STATIC);
2035 bool extractPrivateVirtual = Config_getBool(EXTRACT_PRIV_VIRTUAL);
2036 bool hideUndocMembers = Config_getBool(HIDE_UNDOC_MEMBERS);
2037 bool briefMemberDesc = Config_getBool(BRIEF_MEMBER_DESC);
2038 bool repeatBrief = Config_getBool(REPEAT_BRIEF);
2039 bool hideFriendCompounds = Config_getBool(HIDE_FRIEND_COMPOUNDS);
2040
2041 //printf("Member %s grpId=%d docs=%s file=%s args=%s\n",
2042 // qPrint(name()),
2043 // 0,"", //grpId,grpId==-1?"<none>":Doxygen::memberDocDict[grpId]->data(),
2044 // "", //qPrint(getFileDef()->name()),
2045 // argsString());
2046
2047 bool hasDocs = hasDocumentation();
2048
2049 // only include static members with file/namespace scope if
2050 // explicitly enabled in the config file
2051 bool visibleIfStatic = !(getClassDef()==nullptr &&
2052 isStatic() &&
2053 !extractStatic
2054 );
2055
2056 // only include members is the are documented or
2057 // HIDE_UNDOC_MEMBERS is NO in the config file
2058 bool visibleIfDocumented = (!hideUndocMembers ||
2059 hasDocs ||
2061 );
2062
2063 // hide members with no detailed description and brief descriptions
2064 // explicitly disabled.
2065 bool visibleIfEnabled = !(hideUndocMembers &&
2066 documentation().isEmpty() &&
2067 !briefMemberDesc &&
2068 !repeatBrief
2069 );
2070
2071 // Hide friend (class|struct|union) declarations if HIDE_FRIEND_COMPOUNDS is true
2072 bool visibleIfFriendCompound = !(hideFriendCompounds &&
2073 isFriend() /*&&
2074 (m_type=="friend class" ||
2075 m_type=="friend struct" ||
2076 m_type=="friend union"
2077 )*/
2078 );
2079
2080 // only include members that are non-private unless EXTRACT_PRIVATE is
2081 // set to YES or the member is part of a group. And as a special case,
2082 // private *documented* virtual members are shown if EXTRACT_PRIV_VIRTUAL
2083 // is set to YES
2084 bool visibleIfPrivate = (protectionLevelVisible(protection()) ||
2087 (m_virt!=Specifier::Normal || isOverride() || isFinal()) && extractPrivateVirtual && hasDocs)
2088 );
2089
2090 // hide member if it overrides a member in a superclass and has no
2091 // documentation of its own
2092 //bool visibleIfDocVirtual = !reimplements() ||
2093 // !Config_getBool(INHERIT_DOCS) ||
2094 // hasDocs;
2095
2096 // true if this member is a constructor or destructor
2097 bool cOrDTor = isConstructor() || isDestructor();
2098
2099 // hide default constructors or destructors (no args) without
2100 // documentation
2101 bool visibleIfNotDefaultCDTor = !(cOrDTor &&
2102 (m_defArgList.empty() ||
2103 m_defArgList.front().type == "void"
2104 ) &&
2105 !hasDocs
2106 );
2107
2108
2109 //printf("visibleIfStatic=%d visibleIfDocumented=%d visibleIfEnabled=%d "
2110 // "visibleIfPrivate=%d visibleIfNotDefaultCDTor=%d "
2111 // "visibleIfFriendCompound=%d !annScope=%d\n",
2112 // visibleIfStatic,visibleIfDocumented,
2113 // visibleIfEnabled,visibleIfPrivate,visibleIfNotDefaultCDTor,
2114 // visibleIfFriendCompound,!m_annScope);
2115
2116 bool visible = visibleIfStatic && visibleIfDocumented &&
2117 visibleIfEnabled && visibleIfPrivate &&
2118 /*visibleIfDocVirtual &&*/ visibleIfNotDefaultCDTor &&
2119 visibleIfFriendCompound &&
2120 !m_annScope && !isHidden();
2121 //printf("MemberDefImpl::isBriefSectionVisible() %d\n",visible);
2122 return visible;
2123}
bool isConstructor() const override
bool isDocumentedFriendClass() const override

References Config_getBool, documentation(), Friend, getClassDef(), hasDocumentation(), isConstructor(), isDestructor(), isDocumentedFriendClass(), QCString::isEmpty(), isFinal(), isFriend(), DefinitionMixin< MemberDefMutable >::isHidden(), isOverride(), isStatic(), m_annScope, m_defArgList, m_mtype, m_prot, m_virt, Normal, Private, protection(), and protectionLevelVisible().

Referenced by writeEnumDeclaration().

◆ isCallable()

bool MemberDefImpl::isCallable ( ) const
overridevirtual

Implements MemberDef.

Definition at line 5483 of file memberdef.cpp.

5484{
5485 return isFunction() ||
5486 isSlot() ||
5487 isSignal() ||
5488 isConstructor() ||
5489 isDestructor() ||
5490 isObjCMethod() ||
5491 isFriend();
5492}

References isConstructor(), isDestructor(), isFriend(), isFunction(), isObjCMethod(), isSignal(), and isSlot().

Referenced by sourceRefName().

◆ isConstEval()

bool MemberDefImpl::isConstEval ( ) const
overridevirtual

Implements MemberDef.

Definition at line 5539 of file memberdef.cpp.

5540{
5541 return m_memSpec.isConstEval();
5542}

References m_memSpec.

Referenced by getLabels().

◆ isConstExpr()

bool MemberDefImpl::isConstExpr ( ) const
overridevirtual

Implements MemberDef.

Definition at line 5534 of file memberdef.cpp.

5535{
5536 return m_memSpec.isConstExpr();
5537}

References m_memSpec.

Referenced by getLabels().

◆ isConstInit()

bool MemberDefImpl::isConstInit ( ) const
overridevirtual

Implements MemberDef.

Definition at line 5544 of file memberdef.cpp.

5545{
5546 return m_memSpec.isConstInit();
5547}

References m_memSpec.

Referenced by getLabels().

◆ isConstrained()

bool MemberDefImpl::isConstrained ( ) const
overridevirtual

Implements MemberDef.

Definition at line 5437 of file memberdef.cpp.

5438{
5439 return m_memSpec.isConstrained();
5440}

References m_memSpec.

Referenced by getLabels().

◆ isConstructor()

bool MemberDefImpl::isConstructor ( ) const
overridevirtual

Implements MemberDef.

Definition at line 4686 of file memberdef.cpp.

4687{
4688 if (m_isConstructorCached==0)
4689 {
4690 MemberDefImpl *that = const_cast<MemberDefImpl*>(this);
4691 that->_computeIsConstructor();
4692 }
4694 return m_isConstructorCached==2;
4695
4696}
void _computeIsConstructor()
#define ASSERT(x)
Definition qcstring.h:39

References _computeIsConstructor(), ASSERT, m_isConstructorCached, and MemberDefImpl().

Referenced by isBriefSectionVisible(), isCallable(), and warnIfUndocumentedParams().

◆ isCopy()

bool MemberDefImpl::isCopy ( ) const
overridevirtual

Implements MemberDef.

Definition at line 5355 of file memberdef.cpp.

5356{
5357 return m_memSpec.isCopy();
5358}

References m_memSpec.

Referenced by getLabels().

◆ isCSharpProperty()

bool MemberDefImpl::isCSharpProperty ( ) const
overridevirtual

Implements MemberDef.

Definition at line 4947 of file memberdef.cpp.

4948{
4949 if (getClassDef() && getClassDef()->isCSharp() && isProperty()) return TRUE;
4950 return FALSE;
4951}
bool isProperty() const override

References FALSE, getClassDef(), isProperty(), and TRUE.

◆ isDCOP()

bool MemberDefImpl::isDCOP ( ) const
overridevirtual

Implements MemberDef.

Definition at line 5210 of file memberdef.cpp.

5211{
5212 return m_mtype==MemberType::DCOP;
5213}

References DCOP, and m_mtype.

◆ isDefault()

bool MemberDefImpl::isDefault ( ) const
overridevirtual

Implements MemberDef.

Definition at line 5402 of file memberdef.cpp.

5403{
5404 return m_memSpec.isDefault();
5405}

References m_memSpec.

Referenced by getLabels().

◆ isDefine()

bool MemberDefImpl::isDefine ( ) const
overridevirtual

Implements MemberDef.

Definition at line 5200 of file memberdef.cpp.

5201{
5203}

References Define, and m_mtype.

Referenced by writeDeclaration(), writeDocumentation(), and writeMemberDocSimple().

◆ isDelete()

bool MemberDefImpl::isDelete ( ) const
overridevirtual

Implements MemberDef.

Definition at line 5407 of file memberdef.cpp.

5408{
5409 return m_memSpec.isDelete();
5410}

References m_memSpec.

Referenced by getLabels().

◆ isDeleted()

bool MemberDefImpl::isDeleted ( ) const
overridevirtual

Implements MemberDef.

Definition at line 4296 of file memberdef.cpp.

4297{
4298 return m_defArgList.isDeleted();
4299}

References m_defArgList.

Referenced by warnIfUndocumented(), and warnIfUndocumentedParams().

◆ isDestructor()

bool MemberDefImpl::isDestructor ( ) const
overridevirtual

Implements MemberDef.

Definition at line 4727 of file memberdef.cpp.

4728{
4729 if (m_isDestructorCached==0)
4730 {
4731 MemberDefImpl *that=const_cast<MemberDefImpl*>(this);
4732 that->_computeIsDestructor();
4733 }
4735 return m_isDestructorCached==2;
4736}
void _computeIsDestructor()

References _computeIsDestructor(), ASSERT, m_isDestructorCached, and MemberDefImpl().

Referenced by _computeIsDestructor(), isBriefSectionVisible(), isCallable(), and warnIfUndocumentedParams().

◆ isDetailedSectionVisible()

bool MemberDefImpl::isDetailedSectionVisible ( MemberListContainer container) const
overridevirtual

Implements MemberDef.

Definition at line 2768 of file memberdef.cpp.

2769{
2770 bool separateMemPages = Config_getBool(SEPARATE_MEMBER_PAGES);
2771 bool inlineSimpleStructs = Config_getBool(INLINE_SIMPLE_STRUCTS);
2772 bool hideUndocMembers = Config_getBool(HIDE_UNDOC_MEMBERS);
2773 bool groupFilter = getGroupDef()==nullptr || container==MemberListContainer::Group || separateMemPages;
2774 bool fileFilter = getNamespaceDef()==nullptr || !getNamespaceDef()->isLinkable() || container!=MemberListContainer::File;
2775 bool simpleFilter = (hasBriefDescription() || !hideUndocMembers) && inlineSimpleStructs &&
2776 getClassDef()!=nullptr && getClassDef()->isSimple();
2777
2778 bool visible = hasDetailedDescription() && groupFilter && fileFilter &&
2779 !isReference();
2780 bool result = visible || simpleFilter;
2781 //printf("%s::isDetailedSectionVisible: %d groupFilter=%d fileFilter=%d\n",
2782 // qPrint(name()),result,groupFilter,fileFilter);
2783 return result;
2784}
bool hasBriefDescription() const override

References Config_getBool, File, getClassDef(), getGroupDef(), getNamespaceDef(), Group, DefinitionMixin< MemberDefMutable >::hasBriefDescription(), hasDetailedDescription(), Definition::isLinkable(), isReference(), and ClassDef::isSimple().

◆ isDictionary()

bool MemberDefImpl::isDictionary ( ) const
overridevirtual

Implements MemberDef.

Definition at line 5185 of file memberdef.cpp.

5186{
5188}

References Dictionary, and m_mtype.

◆ isDocsForDefinition()

bool MemberDefImpl::isDocsForDefinition ( ) const
overridevirtual

Implements MemberDef.

Definition at line 5509 of file memberdef.cpp.

5510{
5511 return m_docsForDefinition;
5512}

References m_docsForDefinition.

Referenced by warnIfUndocumentedParams().

◆ isDocumentedFriendClass()

bool MemberDefImpl::isDocumentedFriendClass ( ) const
overridevirtual

Implements MemberDef.

Definition at line 4286 of file memberdef.cpp.

4287{
4288 ClassDef *fcd=nullptr;
4289 QCString baseName=name();
4290 int i=baseName.find('<');
4291 if (i!=-1) baseName=baseName.left(i);
4292 return (isFriendClass() &&
4293 (fcd=getClass(baseName)) && fcd->isLinkable());
4294}
bool isFriendClass() const override

References QCString::find(), getClass(), isFriendClass(), Definition::isLinkable(), QCString::left(), and DefinitionMixin< MemberDefMutable >::name().

Referenced by isBriefSectionVisible(), and writeDeclaration().

◆ isEnumerate()

bool MemberDefImpl::isEnumerate ( ) const
overridevirtual

◆ isEnumStruct()

bool MemberDefImpl::isEnumStruct ( ) const
overridevirtual

Implements MemberDef.

Definition at line 5380 of file memberdef.cpp.

5381{
5382 return m_memSpec.isEnumStruct();
5383}

References m_memSpec.

Referenced by getDeclType(), and writeDocumentation().

◆ isEnumValue()

bool MemberDefImpl::isEnumValue ( ) const
overridevirtual

Implements MemberDef.

Definition at line 5170 of file memberdef.cpp.

5171{
5173}

References EnumValue, and m_mtype.

Referenced by displayDefinition(), and writeDocumentation().

◆ isEvent()

bool MemberDefImpl::isEvent ( ) const
overridevirtual

Implements MemberDef.

Definition at line 5220 of file memberdef.cpp.

5221{
5222 return m_mtype==MemberType::Event;
5223}

References Event, and m_mtype.

Referenced by writeDeclaration().

◆ isExplicit()

bool MemberDefImpl::isExplicit ( ) const
overridevirtual

Implements MemberDef.

Definition at line 5245 of file memberdef.cpp.

5246{
5247 return m_memSpec.isExplicit();
5248}

References m_memSpec.

Referenced by getLabels().

◆ isExternal()

bool MemberDefImpl::isExternal ( ) const
overridevirtual

Implements MemberDef.

Definition at line 5473 of file memberdef.cpp.

5474{
5475 return m_explExt;
5476}

References m_explExt.

Referenced by getLabels().

◆ isFinal()

bool MemberDefImpl::isFinal ( ) const
overridevirtual

Implements MemberDef.

Definition at line 5310 of file memberdef.cpp.

5311{
5312 return m_memSpec.isFinal();
5313}

References m_memSpec.

Referenced by _computeLinkableInProject(), getLabels(), hasDetailedDescription(), isBriefSectionVisible(), and writeDeclaration().

◆ isForeign()

bool MemberDefImpl::isForeign ( ) const
overridevirtual

Implements MemberDef.

Definition at line 5230 of file memberdef.cpp.

5231{
5233}

References Foreign, and m_related.

Referenced by isRelatedOrFriend().

◆ isFriend()

bool MemberDefImpl::isFriend ( ) const
overridevirtual

Implements MemberDef.

Definition at line 5205 of file memberdef.cpp.

5206{
5208}

References Friend, and m_mtype.

Referenced by getLabels(), hasDetailedDescription(), isBriefSectionVisible(), isCallable(), isFriendClass(), isNotFriend(), and isRelatedOrFriend().

◆ isFriendClass()

bool MemberDefImpl::isFriendClass ( ) const
overridevirtual

Implements MemberDef.

Definition at line 6324 of file memberdef.cpp.

6325{
6326 return (isFriend() &&
6327 (m_type=="friend class" || m_type=="friend struct" ||
6328 m_type=="friend union"));
6329}

References isFriend(), and m_type.

Referenced by isDocumentedFriendClass(), and warnIfUndocumented().

◆ isFriendToHide()

bool MemberDefImpl::isFriendToHide ( ) const
overridevirtual

Implements MemberDef.

Definition at line 6314 of file memberdef.cpp.

6315{
6316 bool hideFriendCompounds = Config_getBool(HIDE_FRIEND_COMPOUNDS);
6317 bool isFriendToHide = hideFriendCompounds &&
6318 (m_type=="friend class" ||
6319 m_type=="friend struct" ||
6320 m_type=="friend union");
6321 return isFriendToHide;
6322}
bool isFriendToHide() const override

References Config_getBool, isFriendToHide(), and m_type.

Referenced by isFriendToHide(), isNotFriend(), and isRelatedOrFriend().

◆ isFunction()

bool MemberDefImpl::isFunction ( ) const
overridevirtual

◆ isFunctionOrSignalSlot()

bool MemberDefImpl::isFunctionOrSignalSlot ( ) const
overridevirtual

Implements MemberDef.

Definition at line 6337 of file memberdef.cpp.

6338{
6339 return isFunction() || isSlot() || isSignal();
6340}

References isFunction(), isSignal(), and isSlot().

◆ isFunctionPtr()

bool MemberDefImpl::isFunctionPtr ( ) const
overridevirtual

Implements MemberDef.

Definition at line 5195 of file memberdef.cpp.

5196{
5197 return m_mtype==MemberType::Variable && QCString(argsString()).find(")(")!=-1;
5198}

References argsString(), QCString::find(), m_mtype, and Variable.

Referenced by writeMemberDocSimple().

◆ isGettable()

bool MemberDefImpl::isGettable ( ) const
overridevirtual

Implements MemberDef.

Definition at line 5255 of file memberdef.cpp.

5256{
5257 return m_memSpec.isGettable();
5258}

References m_memSpec.

Referenced by getLabels(), and writeDeclaration().

◆ isImplementation()

bool MemberDefImpl::isImplementation ( ) const
overridevirtual

Implements MemberDef.

Definition at line 5468 of file memberdef.cpp.

5469{
5470 return m_implOnly;
5471}

References m_implOnly.

Referenced by getLabels(), and writeDeclaration().

◆ isInitonly()

bool MemberDefImpl::isInitonly ( ) const
overridevirtual

Implements MemberDef.

Definition at line 5330 of file memberdef.cpp.

5331{
5332 return m_memSpec.isInitonly();
5333}

References m_memSpec.

Referenced by getLabels().

◆ isInline()

bool MemberDefImpl::isInline ( ) const
overridevirtual

Implements MemberDef.

Definition at line 5240 of file memberdef.cpp.

5241{
5242 return m_memSpec.isInline();
5243}

References m_memSpec.

Referenced by getLabels().

◆ isLinkable()

bool MemberDefImpl::isLinkable ( ) const
overridevirtual

Returns TRUE iff it is possible to link to this item. This can be a link to another project imported via a tag file.

Implements Definition.

Definition at line 1903 of file memberdef.cpp.

1904{
1905 if (m_templateMaster)
1906 {
1907 return m_templateMaster->isLinkable();
1908 }
1909 else
1910 {
1911 return isLinkableInProject() || isReference();
1912 }
1913}

References isLinkableInProject(), isReference(), and m_templateMaster.

Referenced by visibleInIndex(), writeDocumentation(), and writeLink().

◆ isLinkableInProject()

bool MemberDefImpl::isLinkableInProject ( ) const
overridevirtual

Returns TRUE iff it is possible to link to this item within this project.

Implements Definition.

Definition at line 1892 of file memberdef.cpp.

1893{
1894 if (m_isLinkableCached==0)
1895 {
1896 MemberDefImpl *that = const_cast<MemberDefImpl*>(this);
1898 }
1900 return m_isLinkableCached==2;
1901}
void _computeLinkableInProject()

References _computeLinkableInProject(), ASSERT, m_isLinkableCached, and MemberDefImpl().

Referenced by addListReference(), isLinkable(), writeEnumDeclaration(), and writeTagFile().

◆ isMaybeAmbiguous()

bool MemberDefImpl::isMaybeAmbiguous ( ) const
overridevirtual

Implements MemberDef.

Definition at line 5457 of file memberdef.cpp.

5458{
5459 return m_memSpec.isMaybeAmbiguous();
5460}

References m_memSpec.

Referenced by getLabels().

◆ isMaybeDefault()

bool MemberDefImpl::isMaybeDefault ( ) const
overridevirtual

Implements MemberDef.

Definition at line 5452 of file memberdef.cpp.

5453{
5454 return m_memSpec.isMaybeDefault();
5455}

References m_memSpec.

Referenced by getLabels().

◆ isMaybeVoid()

bool MemberDefImpl::isMaybeVoid ( ) const
overridevirtual

Implements MemberDef.

Definition at line 5447 of file memberdef.cpp.

5448{
5449 return m_memSpec.isMaybeVoid();
5450}

References m_memSpec.

Referenced by getLabels().

◆ isMutable()

bool MemberDefImpl::isMutable ( ) const
overridevirtual

Implements MemberDef.

Definition at line 5250 of file memberdef.cpp.

5251{
5252 return m_memSpec.isMutable();
5253}

References m_memSpec.

Referenced by getLabels().

◆ isNew()

bool MemberDefImpl::isNew ( ) const
overridevirtual

Implements MemberDef.

Definition at line 5315 of file memberdef.cpp.

5316{
5317 return m_memSpec.isNew();
5318}

References m_memSpec.

Referenced by getLabels().

◆ isNoDiscard()

bool MemberDefImpl::isNoDiscard ( ) const
overridevirtual

Implements MemberDef.

Definition at line 5529 of file memberdef.cpp.

5530{
5531 return m_memSpec.isNoDiscard();
5532}

References m_memSpec.

Referenced by getLabels().

◆ isNoExcept()

bool MemberDefImpl::isNoExcept ( ) const
overridevirtual

Implements MemberDef.

Definition at line 5412 of file memberdef.cpp.

5413{
5414 return m_memSpec.isNoExcept();
5415}

References m_memSpec.

Referenced by getLabels().

◆ isNonAtomic()

bool MemberDefImpl::isNonAtomic ( ) const
overridevirtual

Implements MemberDef.

Definition at line 5350 of file memberdef.cpp.

5351{
5352 return m_memSpec.isNonAtomic();
5353}

References m_memSpec.

Referenced by getLabels().

◆ isNotFriend()

bool MemberDefImpl::isNotFriend ( ) const
overridevirtual

Implements MemberDef.

Definition at line 6332 of file memberdef.cpp.

6333{
6334 return !(isFriend() && isFriendToHide());
6335}

References isFriend(), and isFriendToHide().

◆ isObjCMethod()

bool MemberDefImpl::isObjCMethod ( ) const
overridevirtual

Implements MemberDef.

Definition at line 4935 of file memberdef.cpp.

4936{
4937 if (getClassDef() && getClassDef()->isObjectiveC() && isFunction()) return TRUE;
4938 return FALSE;
4939}

References FALSE, getClassDef(), isFunction(), and TRUE.

Referenced by addListReference(), getDeclType(), getLabels(), isCallable(), qualifiedName(), writeDeclaration(), writeDocumentation(), writeLink(), and writeMemberDocSimple().

◆ isObjCProperty()

bool MemberDefImpl::isObjCProperty ( ) const
overridevirtual

Implements MemberDef.

Definition at line 4941 of file memberdef.cpp.

4942{
4943 if (getClassDef() && getClassDef()->isObjectiveC() && isProperty()) return TRUE;
4944 return FALSE;
4945}

References FALSE, getClassDef(), isProperty(), and TRUE.

Referenced by getLabels(), and writeDeclaration().

◆ isOptional()

bool MemberDefImpl::isOptional ( ) const
overridevirtual

Implements MemberDef.

Definition at line 5340 of file memberdef.cpp.

5341{
5342 return m_memSpec.isOptional();
5343}

References m_memSpec.

Referenced by getLabels().

◆ isOverride()

bool MemberDefImpl::isOverride ( ) const
overridevirtual

Implements MemberDef.

Definition at line 5325 of file memberdef.cpp.

5326{
5327 return m_memSpec.isOverride();
5328}

References m_memSpec.

Referenced by _computeLinkableInProject(), getLabels(), hasDetailedDescription(), isBriefSectionVisible(), and writeDeclaration().

◆ isPrivateGettable()

bool MemberDefImpl::isPrivateGettable ( ) const
overridevirtual

Implements MemberDef.

Definition at line 5260 of file memberdef.cpp.

5261{
5262 return m_memSpec.isPrivateGettable();
5263}

References m_memSpec.

Referenced by getLabels(), and writeDeclaration().

◆ isPrivateSettable()

bool MemberDefImpl::isPrivateSettable ( ) const
overridevirtual

Implements MemberDef.

Definition at line 5275 of file memberdef.cpp.

5276{
5277 return m_memSpec.isPrivateSettable();
5278}

References m_memSpec.

Referenced by getLabels(), and writeDeclaration().

◆ isProperty()

bool MemberDefImpl::isProperty ( ) const
overridevirtual

Implements MemberDef.

Definition at line 5215 of file memberdef.cpp.

5216{
5218}

References m_mtype, and Property.

Referenced by isCSharpProperty(), isObjCProperty(), and writeDeclaration().

◆ isProtectedGettable()

bool MemberDefImpl::isProtectedGettable ( ) const
overridevirtual

Implements MemberDef.

Definition at line 5265 of file memberdef.cpp.

5266{
5267 return m_memSpec.isProtectedGettable();
5268}

References m_memSpec.

Referenced by getLabels(), and writeDeclaration().

◆ isProtectedSettable()

bool MemberDefImpl::isProtectedSettable ( ) const
overridevirtual

Implements MemberDef.

Definition at line 5280 of file memberdef.cpp.

5281{
5282 return m_memSpec.isProtectedSettable();
5283}

References m_memSpec.

Referenced by getLabels(), and writeDeclaration().

◆ isPrototype()

bool MemberDefImpl::isPrototype ( ) const
overridevirtual

Implements MemberDef.

Definition at line 5559 of file memberdef.cpp.

5560{
5561 return m_proto;
5562}

References m_proto.

◆ isPublished()

bool MemberDefImpl::isPublished ( ) const
overridevirtual

Implements MemberDef.

Definition at line 5462 of file memberdef.cpp.

5463{
5464 return m_memSpec.isPublished();
5465}

References m_memSpec.

Referenced by getLabels().

◆ isRaisable()

bool MemberDefImpl::isRaisable ( ) const
overridevirtual

Implements MemberDef.

Definition at line 5295 of file memberdef.cpp.

5296{
5297 return m_memSpec.isRaisable();
5298}

References m_memSpec.

Referenced by getLabels(), and writeDeclaration().

◆ isReadable()

bool MemberDefImpl::isReadable ( ) const
overridevirtual

Implements MemberDef.

Definition at line 5300 of file memberdef.cpp.

5301{
5302 return m_memSpec.isReadable();
5303}

References m_memSpec.

Referenced by getLabels().

◆ isReadonly()

bool MemberDefImpl::isReadonly ( ) const
overridevirtual

Implements MemberDef.

Definition at line 5427 of file memberdef.cpp.

5428{
5429 return m_memSpec.isReadonly();
5430}

References m_memSpec.

Referenced by getLabels().

◆ isReference()

bool MemberDefImpl::isReference ( ) const
overridevirtual

Returns TRUE if this definition is imported via a tag file.

Reimplemented from DefinitionMixin< MemberDefMutable >.

Definition at line 6347 of file memberdef.cpp.

6348{
6350 (m_templateMaster && m_templateMaster->isReference());
6351}
bool isReference() const override

References DefinitionMixin< Base >::isReference(), and m_templateMaster.

Referenced by _computeLinkableInProject(), isDetailedSectionVisible(), isLinkable(), warnIfUndocumented(), warnIfUndocumentedParams(), and writeDeclaration().

◆ isReimplementedBy()

bool MemberDefImpl::isReimplementedBy ( const ClassDef * cd) const
overridevirtual

Implements MemberDef.

Definition at line 1596 of file memberdef.cpp.

1597{
1598 if (cd)
1599 {
1600 for (const auto &md : m_redefinedBy)
1601 {
1602 const ClassDef *mcd = md->getClassDef();
1603 if (mcd)
1604 {
1605 if (cd==mcd || cd->isBaseClass(mcd,TRUE))
1606 {
1607 return TRUE;
1608 }
1609 }
1610 }
1611 }
1612 return FALSE;
1613}
virtual int isBaseClass(const ClassDef *bcd, bool followInstances, const QCString &templSpec=QCString()) const =0
Returns TRUE iff bcd is a direct or indirect base class of this class.

References FALSE, ClassDef::isBaseClass(), m_redefinedBy, and TRUE.

◆ isRelated()

bool MemberDefImpl::isRelated ( ) const
overridevirtual

Implements MemberDef.

Definition at line 5225 of file memberdef.cpp.

5226{
5228}

References m_related, and Related.

Referenced by addListReference(), getLabels(), isRelatedOrFriend(), and writeLink().

◆ isRelatedOrFriend()

bool MemberDefImpl::isRelatedOrFriend ( ) const
overridevirtual

Implements MemberDef.

Definition at line 6342 of file memberdef.cpp.

6343{
6344 return isRelated() || isForeign() || (isFriend() && !isFriendToHide());
6345}
bool isForeign() const override

References isForeign(), isFriend(), isFriendToHide(), and isRelated().

◆ isRemovable()

bool MemberDefImpl::isRemovable ( ) const
overridevirtual

Implements MemberDef.

Definition at line 5290 of file memberdef.cpp.

5291{
5292 return m_memSpec.isRemovable();
5293}

References m_memSpec.

Referenced by getLabels(), and writeDeclaration().

◆ isRequired()

bool MemberDefImpl::isRequired ( ) const
overridevirtual

Implements MemberDef.

Definition at line 5345 of file memberdef.cpp.

5346{
5347 return m_memSpec.isRequired();
5348}

References m_memSpec.

Referenced by getLabels().

◆ isRetain()

bool MemberDefImpl::isRetain ( ) const
overridevirtual

Implements MemberDef.

Definition at line 5365 of file memberdef.cpp.

5366{
5367 return m_memSpec.isRetain();
5368}

References m_memSpec.

Referenced by getLabels().

◆ isSealed()

bool MemberDefImpl::isSealed ( ) const
overridevirtual

Implements MemberDef.

Definition at line 5320 of file memberdef.cpp.

5321{
5322 return m_memSpec.isSealed();
5323}

References m_memSpec.

Referenced by getLabels().

◆ isSequence()

bool MemberDefImpl::isSequence ( ) const
overridevirtual

Implements MemberDef.

Definition at line 5180 of file memberdef.cpp.

5181{
5183}

References m_mtype, and Sequence.

◆ isSettable()

bool MemberDefImpl::isSettable ( ) const
overridevirtual

Implements MemberDef.

Definition at line 5270 of file memberdef.cpp.

5271{
5272 return m_memSpec.isSettable();
5273}

References m_memSpec.

Referenced by getLabels(), and writeDeclaration().

◆ isSignal()

bool MemberDefImpl::isSignal ( ) const
overridevirtual

Implements MemberDef.

Definition at line 5150 of file memberdef.cpp.

5151{
5153}

References m_mtype, and Signal.

Referenced by _hasVisibleCallerGraph(), _hasVisibleCallGraph(), getLabels(), isCallable(), and isFunctionOrSignalSlot().

◆ isSliceLocal()

bool MemberDefImpl::isSliceLocal ( ) const
overridevirtual

Implements MemberDef.

Definition at line 5524 of file memberdef.cpp.

5525{
5526 return m_memSpec.isLocal();
5527}

References m_memSpec.

Referenced by displayDefinition(), and writeDocumentation().

◆ isSlot()

bool MemberDefImpl::isSlot ( ) const
overridevirtual

Implements MemberDef.

Definition at line 5155 of file memberdef.cpp.

5156{
5157 return m_mtype==MemberType::Slot;
5158}

References m_mtype, and Slot.

Referenced by _hasVisibleCallerGraph(), _hasVisibleCallGraph(), getLabels(), isCallable(), and isFunctionOrSignalSlot().

◆ isStatic()

bool MemberDefImpl::isStatic ( ) const
overridevirtual

◆ isStrong()

bool MemberDefImpl::isStrong ( ) const
overridevirtual

Implements MemberDef.

Definition at line 5375 of file memberdef.cpp.

5376{
5377 return m_memSpec.isStrong();
5378}

References m_memSpec.

Referenced by getDeclType(), getLabels(), getScopeString(), writeDocumentation(), and writeTagFile().

◆ isStrongEnumValue()

bool MemberDefImpl::isStrongEnumValue ( ) const
overridevirtual

Implements MemberDef.

Definition at line 5385 of file memberdef.cpp.

5386{
5388 m_enumScope &&
5389 m_enumScope->isStrong();
5390}

References EnumValue, m_enumScope, and m_mtype.

◆ isTemplateSpecialization()

bool MemberDefImpl::isTemplateSpecialization ( ) const
overridevirtual

Implements MemberDef.

Definition at line 5478 of file memberdef.cpp.

5479{
5480 return m_tspec;
5481}

References m_tspec.

Referenced by writeDocumentation().

◆ isTransient()

bool MemberDefImpl::isTransient ( ) const
overridevirtual

Implements MemberDef.

Definition at line 5442 of file memberdef.cpp.

5443{
5444 return m_memSpec.isTransient();
5445}

References m_memSpec.

Referenced by getLabels().

◆ isTypeAlias()

bool MemberDefImpl::isTypeAlias ( ) const
overridevirtual

Implements MemberDef.

Definition at line 5397 of file memberdef.cpp.

5398{
5399 return m_memSpec.isAlias();
5400}

References m_memSpec.

Referenced by getDeclType(), writeDeclaration(), and writeDocumentation().

◆ isTypedef()

bool MemberDefImpl::isTypedef ( ) const
overridevirtual

Implements MemberDef.

Definition at line 5175 of file memberdef.cpp.

5176{
5178}

References m_mtype, and Typedef.

Referenced by fieldType(), getDeclType(), writeDeclaration(), and writeDocumentation().

◆ isTypedefValCached()

bool MemberDefImpl::isTypedefValCached ( ) const
overridevirtual

Implements MemberDef.

Definition at line 5713 of file memberdef.cpp.

5714{
5715 return m_isTypedefValCached;
5716}

References m_isTypedefValCached.

◆ isUNOProperty()

bool MemberDefImpl::isUNOProperty ( ) const
overridevirtual

Implements MemberDef.

Definition at line 5422 of file memberdef.cpp.

5423{
5424 return m_memSpec.isProperty();
5425}

References m_memSpec.

Referenced by getLabels().

◆ isUnretained()

bool MemberDefImpl::isUnretained ( ) const
overridevirtual

Implements MemberDef.

Definition at line 5392 of file memberdef.cpp.

5393{
5394 return m_memSpec.isUnretained();
5395}

References m_memSpec.

Referenced by getLabels().

◆ isVariable()

bool MemberDefImpl::isVariable ( ) const
overridevirtual

Implements MemberDef.

Definition at line 5160 of file memberdef.cpp.

5161{
5163}

References m_mtype, and Variable.

Referenced by writeDocumentation(), and writeMemberDocSimple().

◆ isWeak()

bool MemberDefImpl::isWeak ( ) const
overridevirtual

Implements MemberDef.

Definition at line 5370 of file memberdef.cpp.

5371{
5372 return m_memSpec.isWeak();
5373}

References m_memSpec.

Referenced by getLabels().

◆ isWritable()

bool MemberDefImpl::isWritable ( ) const
overridevirtual

Implements MemberDef.

Definition at line 5305 of file memberdef.cpp.

5306{
5307 return m_memSpec.isWritable();
5308}

References m_memSpec.

Referenced by getLabels().

◆ livesInsideEnum()

bool MemberDefImpl::livesInsideEnum ( ) const
overridevirtual

Implements MemberDef.

Definition at line 5519 of file memberdef.cpp.

5520{
5521 return m_livesInsideEnum;
5522}

References m_livesInsideEnum.

Referenced by setEnumScope().

◆ makeForeign()

void MemberDefImpl::makeForeign ( )
overridevirtual

Implements MemberDefMutable.

Definition at line 5868 of file memberdef.cpp.

5869{
5872}

References Foreign, m_isLinkableCached, and m_related.

◆ makeImplementationDetail()

void MemberDefImpl::makeImplementationDetail ( )
overridevirtual

Implements MemberDefMutable.

Definition at line 5944 of file memberdef.cpp.

5945{
5947}

References m_implOnly, and TRUE.

◆ makeRelated()

void MemberDefImpl::makeRelated ( )
overridevirtual

Implements MemberDefMutable.

Definition at line 5862 of file memberdef.cpp.

5863{
5866}

References m_isLinkableCached, m_related, and Related.

◆ memberDeclaration()

MemberDef * MemberDefImpl::memberDeclaration ( ) const
overridevirtual

Implements MemberDef.

Definition at line 5739 of file memberdef.cpp.

5740{
5741 return m_memDec;
5742}

References m_memDec.

◆ memberDefinition()

MemberDef * MemberDefImpl::memberDefinition ( ) const
overridevirtual

Implements MemberDef.

Definition at line 5734 of file memberdef.cpp.

5735{
5736 return m_memDef;
5737}

References m_memDef.

◆ memberType()

MemberType MemberDefImpl::memberType ( ) const
overridevirtual

Implements MemberDef.

Definition at line 5145 of file memberdef.cpp.

5146{
5147 return m_mtype;
5148}

References m_mtype.

Referenced by codeSymbolType().

◆ memberTypeName()

QCString MemberDefImpl::memberTypeName ( ) const
overridevirtual

Implements MemberDef.

Definition at line 4044 of file memberdef.cpp.

4045{
4046 switch (m_mtype)
4047 {
4048 case MemberType::Define: return "macro definition";
4049 case MemberType::Function: return "function";
4050 case MemberType::Variable: return "variable";
4051 case MemberType::Typedef: return "typedef";
4052 case MemberType::Enumeration: return "enumeration";
4053 case MemberType::EnumValue: return "enumvalue";
4054 case MemberType::Signal: return "signal";
4055 case MemberType::Slot: return "slot";
4056 case MemberType::Friend: return "friend";
4057 case MemberType::DCOP: return "dcop";
4058 case MemberType::Property: return "property";
4059 case MemberType::Event: return "event";
4060 case MemberType::Interface: return "interface";
4061 case MemberType::Service: return "service";
4062 case MemberType::Sequence: return "sequence";
4063 case MemberType::Dictionary: return "dictionary";
4064 default: return "unknown";
4065 }
4066}

References DCOP, Define, Dictionary, Enumeration, EnumValue, Event, Friend, Function, Interface, m_mtype, Property, Sequence, Service, Signal, Slot, Typedef, and Variable.

Referenced by warnIfUndocumented().

◆ mergeMemberSpecifiers()

void MemberDefImpl::mergeMemberSpecifiers ( TypeSpecifier s)
overridevirtual

Implements MemberDefMutable.

Definition at line 5812 of file memberdef.cpp.

5813{
5814 m_memSpec.merge(s);
5815}

References m_memSpec.

◆ moveArgumentList()

void MemberDefImpl::moveArgumentList ( std::unique_ptr< ArgumentList > al)
overridevirtual

Implements MemberDefMutable.

Definition at line 4863 of file memberdef.cpp.

4864{
4865 m_defArgList = *al;
4866}

References m_defArgList.

◆ moveDeclArgumentList()

void MemberDefImpl::moveDeclArgumentList ( std::unique_ptr< ArgumentList > al)
overridevirtual

Implements MemberDefMutable.

Definition at line 4868 of file memberdef.cpp.

4869{
4870 m_declArgList = *al;
4871}

References m_declArgList.

◆ moveTo()

void MemberDefImpl::moveTo ( Definition * scope)
overridevirtual

Implements MemberDef.

Definition at line 1541 of file memberdef.cpp.

1542{
1543 setOuterScope(scope);
1545 {
1546 m_classDef = toClassDef(scope);
1547 }
1548 else if (scope->definitionType()==Definition::TypeFile)
1549 {
1550 m_fileDef = toFileDef(scope);
1551 }
1552 else if (scope->definitionType()==Definition::TypeModule)
1553 {
1554 m_moduleDef = toModuleDef(scope);
1555 }
1556 else if (scope->definitionType()==Definition::TypeNamespace)
1557 {
1558 m_nspace = toNamespaceDef(scope);
1559 }
1562}
void setOuterScope(Definition *def) override
FileDef * toFileDef(Definition *d)
Definition filedef.cpp:1894
ModuleDef * toModuleDef(Definition *d)
NamespaceDef * toNamespaceDef(Definition *d)

References Definition::definitionType(), m_classDef, m_fileDef, m_isConstructorCached, m_isLinkableCached, m_moduleDef, m_nspace, DefinitionMixin< MemberDefMutable >::setOuterScope(), toClassDef(), toFileDef(), toModuleDef(), toNamespaceDef(), Definition::TypeClass, Definition::TypeFile, Definition::TypeModule, and Definition::TypeNamespace.

◆ numberOfFlowKeyWords()

int MemberDefImpl::numberOfFlowKeyWords ( ) const
overridevirtual

Implements MemberDef.

Definition at line 6104 of file memberdef.cpp.

6105{
6106 return m_numberOfFlowKW;
6107}

References m_numberOfFlowKW.

◆ objCMethodName()

QCString MemberDefImpl::objCMethodName ( bool localLink,
bool showStatic ) const
overridevirtual

Implements MemberDef.

Definition at line 4988 of file memberdef.cpp.

4989{
4990 QCString qm;
4991 if (showStatic)
4992 {
4993 if (isStatic()) qm="+ "; else qm="- ";
4994 }
4995 qm+=name();
4996 if (!localLink) // link to method of same class
4997 {
4998 qm+=" (";
4999 qm+=getClassDef()->name();
5000 qm+=")";
5001 }
5002 return qm;
5003}

References getClassDef(), isStatic(), Definition::name(), and DefinitionMixin< MemberDefMutable >::name().

◆ overrideCallerGraph()

void MemberDefImpl::overrideCallerGraph ( bool e)
overridevirtual

Implements MemberDefMutable.

Definition at line 4907 of file memberdef.cpp.

4908{
4911}
static bool parseSourcesNeeded
Definition doxygen.h:123

References m_hasCallerGraph, Doxygen::parseSourcesNeeded, and TRUE.

◆ overrideCallGraph()

void MemberDefImpl::overrideCallGraph ( bool e)
overridevirtual

Implements MemberDefMutable.

Definition at line 4901 of file memberdef.cpp.

4902{
4905}

References m_hasCallGraph, Doxygen::parseSourcesNeeded, and TRUE.

◆ overrideEnumValues()

void MemberDefImpl::overrideEnumValues ( bool e)
overridevirtual

Implements MemberDefMutable.

Definition at line 4925 of file memberdef.cpp.

4926{
4928}

References m_hasEnumValues.

◆ overrideInlineSource()

void MemberDefImpl::overrideInlineSource ( bool e)
overridevirtual

Implements MemberDefMutable.

Definition at line 4930 of file memberdef.cpp.

4931{
4933}

References m_hasInlineSource.

◆ overrideReferencedByRelation()

void MemberDefImpl::overrideReferencedByRelation ( bool e)
overridevirtual

Implements MemberDefMutable.

Definition at line 4913 of file memberdef.cpp.

4914{
4917}

References m_hasReferencedByRelation, Doxygen::parseSourcesNeeded, and TRUE.

◆ overrideReferencesRelation()

void MemberDefImpl::overrideReferencesRelation ( bool e)
overridevirtual

Implements MemberDefMutable.

Definition at line 4919 of file memberdef.cpp.

4920{
4923}

References m_hasReferencesRelation, Doxygen::parseSourcesNeeded, and TRUE.

◆ protection()

Protection MemberDefImpl::protection ( ) const
overridevirtual

Implements MemberDef.

Definition at line 5140 of file memberdef.cpp.

5141{
5142 return m_prot;
5143}

References m_prot.

Referenced by getLabels(), hasDetailedDescription(), isBriefSectionVisible(), and writeDeclaration().

◆ qualifiedName()

QCString MemberDefImpl::qualifiedName ( ) const
overridevirtual

Returns the fully qualified name of this definition

Reimplemented from DefinitionMixin< MemberDefMutable >.

Definition at line 4953 of file memberdef.cpp.

4954{
4955 if (isObjCMethod())
4956 {
4957 QCString qm;
4958 if (isStatic()) qm="+"; else qm="-";
4959 qm+="[";
4960 qm+=getClassDef()->name()+" ";
4961 qm+=name();
4962 qm+="]";
4963 return qm;
4964 }
4965 else if (m_enumScope && m_enumScope->isStrong())
4966 {
4967 return m_enumScope->qualifiedName()+
4969 localName();
4970 }
4971 else
4972 {
4974 }
4975}
QCString qualifiedName() const override

References getClassDef(), DefinitionMixin< MemberDefMutable >::getLanguage(), getLanguageSpecificSeparator(), isObjCMethod(), isStatic(), DefinitionMixin< MemberDefMutable >::localName(), m_enumScope, Definition::name(), DefinitionMixin< MemberDefMutable >::name(), and DefinitionMixin< Base >::qualifiedName().

Referenced by _computeLinkableInProject(), _writeCallerGraph(), _writeCallGraph(), addListReference(), warnIfUndocumented(), warnIfUndocumentedParams(), and writeTagFile().

◆ reimplementedBy()

const MemberVector & MemberDefImpl::reimplementedBy ( ) const
overridevirtual

Implements MemberDef.

Definition at line 1591 of file memberdef.cpp.

1592{
1593 return m_redefinedBy;
1594}

References m_redefinedBy.

Referenced by _countReimplementedBy(), and _writeReimplementedBy().

◆ reimplements()

const MemberDef * MemberDefImpl::reimplements ( ) const
overridevirtual

Implements MemberDef.

Definition at line 1586 of file memberdef.cpp.

1587{
1588 return m_redefines;
1589}

References m_redefines.

Referenced by _isReimplements(), _writeReimplements(), and virtualness().

◆ relatedAlso()

ClassDef * MemberDefImpl::relatedAlso ( ) const
overridevirtual

Implements MemberDef.

Definition at line 5494 of file memberdef.cpp.

5495{
5496 return m_relatedAlso;
5497}

References m_relatedAlso.

◆ requiresClause()

QCString MemberDefImpl::requiresClause ( ) const
overridevirtual

Implements MemberDef.

Definition at line 6035 of file memberdef.cpp.

6036{
6037 return m_requiresClause;
6038}

References m_requiresClause.

◆ resolveAlias() [1/2]

const MemberDef * MemberDefImpl::resolveAlias ( ) const
inlineoverridevirtual

Implements MemberDef.

Definition at line 66 of file memberdef.cpp.

66{ return this; }

◆ resolveAlias() [2/2]

MemberDef * MemberDefImpl::resolveAlias ( )
inlineoverridevirtual

Implements MemberDef.

Definition at line 65 of file memberdef.cpp.

65{ return this; }

◆ resolveUnnamedParameters()

void MemberDefImpl::resolveUnnamedParameters ( const MemberDef * md)
overridevirtual

Implements MemberDefMutable.

Definition at line 5574 of file memberdef.cpp.

5575{
5576 ArgumentList &decAl = m_declArgList;
5577 ArgumentList &defAl = m_defArgList;
5578 const ArgumentList &decAlSrc = md->declArgumentList();
5579 const ArgumentList &defAlSrc = md->argumentList();
5580 auto decSrc = decAlSrc.begin(), defSrc = defAlSrc.begin();
5581 for (auto decIt = decAl.begin(), defIt = defAl.begin();
5582 decIt != decAl.end() && defIt != defAl.end() && decSrc != decAlSrc.end() && defSrc != defAlSrc.end();
5583 ++decIt, ++defIt, ++decSrc, ++defSrc++)
5584 {
5585 Argument &decA = *decIt;
5586 Argument &defA = *defIt;
5587 const Argument &decAS = *decSrc;
5588 const Argument &defAS = *defSrc;
5589 if (decA.name.isEmpty())
5590 {
5591 if (!defA.name.isEmpty())
5592 {
5593 decA.name = defA.name;
5594 }
5595 else if (!decAS.name.isEmpty())
5596 {
5597 decA.name = decAS.name;
5598 }
5599 else if (!defAS.name.isEmpty())
5600 {
5601 decA.name = defAS.name;
5602 }
5603 }
5604 if (defA.name.isEmpty())
5605 {
5606 if (!decA.name.isEmpty())
5607 {
5608 defA.name = decA.name;
5609 }
5610 else if (!decAS.name.isEmpty())
5611 {
5612 defA.name = decAS.name;
5613 }
5614 else if (!defAS.name.isEmpty())
5615 {
5616 defA.name = defAS.name;
5617 }
5618 }
5619 }
5620}

References MemberDef::argumentList(), ArgumentList::begin(), MemberDef::declArgumentList(), ArgumentList::end(), QCString::isEmpty(), m_declArgList, m_defArgList, and Argument::name.

◆ setAccessorType()

void MemberDefImpl::setAccessorType ( ClassDef * cd,
const QCString & t )
overridevirtual

Implements MemberDefMutable.

Definition at line 4883 of file memberdef.cpp.

4884{
4885 m_accessorClass = cd;
4886 m_accessorType = t;
4887}

References m_accessorClass, and m_accessorType.

◆ setAnchor()

void MemberDefImpl::setAnchor ( )
overridevirtual

Implements MemberDefMutable.

Definition at line 4323 of file memberdef.cpp.

4324{
4325 QCString memAnchor = name();
4326 if (!m_args.isEmpty()) memAnchor+=m_args;
4327 if (m_memSpec.isAlias()) // this is for backward compatibility
4328 {
4329 memAnchor.prepend(" = "+m_initializer);
4330 }
4331 memAnchor.prepend(definition()); // actually the method name is now included
4332 // twice, which is silly, but we keep it this way for backward
4333 // compatibility.
4334
4335
4336 // include number of template arguments as well,
4337 // to distinguish between two template
4338 // specializations that only differ in the template parameters.
4339 if (m_tArgList.hasParameters())
4340 {
4341 char buf[20];
4342 qsnprintf(buf,20,"%d:",static_cast<int>(m_tArgList.size()));
4343 buf[19]='\0';
4344 memAnchor.prepend(buf);
4345 }
4346 if (!m_requiresClause.isEmpty())
4347 {
4348 memAnchor+=" "+m_requiresClause;
4349 }
4350
4351 // convert to md5 hash
4352 uint8_t md5_sig[16];
4353 char sigStr[33];
4354 MD5Buffer(memAnchor.data(),static_cast<unsigned int>(memAnchor.length()),md5_sig);
4355 MD5SigToString(md5_sig,sigStr);
4356 m_anc = QCString("a")+sigStr;
4357}
const char * data() const
Returns a pointer to the contents of the string in the form of a 0-terminated C string.
Definition qcstring.h:159
#define qsnprintf
Definition qcstring.h:49

References QCString::data(), definition(), QCString::length(), m_anc, m_args, m_initializer, m_memSpec, m_requiresClause, m_tArgList, DefinitionMixin< MemberDefMutable >::name(), QCString::prepend(), and qsnprintf.

◆ setAnonymousEnumType()

void MemberDefImpl::setAnonymousEnumType ( const MemberDef * md)
overridevirtual

Implements MemberDefMutable.

Definition at line 5901 of file memberdef.cpp.

5902{
5903 m_annEnumType = md;
5904}

References m_annEnumType.

◆ setArgsString()

void MemberDefImpl::setArgsString ( const QCString & as)
overridevirtual

Implements MemberDefMutable.

Definition at line 5879 of file memberdef.cpp.

5880{
5881 m_args = as;
5882}

References m_args.

◆ setBitfields()

void MemberDefImpl::setBitfields ( const QCString & s)
overridevirtual

Implements MemberDefMutable.

Definition at line 5834 of file memberdef.cpp.

5835{
5836 m_bitfields = QCString(s).simplifyWhiteSpace();
5837}

References m_bitfields, and QCString::simplifyWhiteSpace().

◆ setBriefDescription()

void MemberDefImpl::setBriefDescription ( const QCString & b,
const QCString & briefFile,
int briefLine )
overridevirtual

Sets the brief description of this definition to b. A dot is added to the sentence if not available.

Reimplemented from DefinitionMixin< MemberDefMutable >.

Definition at line 1874 of file memberdef.cpp.

1875{
1878}
virtual int briefLine() const =0
virtual QCString briefFile() const =0
void setBriefDescription(const QCString &brief, const QCString &briefFile, int briefLine) override

References DefinitionMixin< MemberDefMutable >::briefFile(), DefinitionMixin< MemberDefMutable >::briefLine(), m_isLinkableCached, and DefinitionMixin< Base >::setBriefDescription().

◆ setCategory()

void MemberDefImpl::setCategory ( ClassDef * def)
overridevirtual

Implements MemberDefMutable.

Definition at line 6005 of file memberdef.cpp.

6006{
6007 m_category = def;
6008}

References m_category.

◆ setCategoryRelation()

void MemberDefImpl::setCategoryRelation ( const MemberDef * md)
overridevirtual

Implements MemberDefMutable.

Definition at line 6015 of file memberdef.cpp.

6016{
6017 m_categoryRelation = md;
6018}

References m_categoryRelation.

◆ setDeclFile()

void MemberDefImpl::setDeclFile ( const QCString & df,
int line,
int column )
overridevirtual

Implements MemberDefMutable.

Definition at line 5932 of file memberdef.cpp.

5933{
5934 m_declFileName = df;
5935 m_declLine = line;
5936 m_declColumn = column;
5937}

References m_declColumn, m_declFileName, and m_declLine.

Referenced by setExplicitExternal(), and setPrototype().

◆ setDefinition()

void MemberDefImpl::setDefinition ( const QCString & d)
overridevirtual

Implements MemberDefMutable.

Definition at line 5778 of file memberdef.cpp.

5779{
5780 m_def=d;
5781}

References m_def.

◆ setDefinitionTemplateParameterLists()

void MemberDefImpl::setDefinitionTemplateParameterLists ( const ArgumentLists & lists)
overridevirtual

Implements MemberDefMutable.

Definition at line 1916 of file memberdef.cpp.

1917{
1918 m_defTmpArgLists = lists;
1919}

References m_defTmpArgLists.

◆ setDocsForDefinition()

void MemberDefImpl::setDocsForDefinition ( bool b)
overridevirtual

Implements MemberDefMutable.

Definition at line 5975 of file memberdef.cpp.

5976{
5978}

References m_docsForDefinition.

◆ setDocumentation()

void MemberDefImpl::setDocumentation ( const QCString & d,
const QCString & docFile,
int docLine,
bool stripWhiteSpace = TRUE )
overridevirtual

Sets the documentation of this definition to d.

Reimplemented from DefinitionMixin< MemberDefMutable >.

Definition at line 1868 of file memberdef.cpp.

1869{
1872}
virtual QCString docFile() const =0
virtual int docLine() const =0
void setDocumentation(const QCString &doc, const QCString &docFile, int docLine, bool stripWhiteSpace=TRUE) override
std::string_view stripWhiteSpace(std::string_view s)
Given a string view s, returns a new, narrower view on that string, skipping over any leading or trai...
Definition stringutil.h:72

References DefinitionMixin< MemberDefMutable >::docFile(), DefinitionMixin< MemberDefMutable >::docLine(), m_isLinkableCached, DefinitionMixin< Base >::setDocumentation(), and stripWhiteSpace().

◆ setDocumentedEnumValues()

void MemberDefImpl::setDocumentedEnumValues ( bool value)
overridevirtual

Implements MemberDefMutable.

Definition at line 5896 of file memberdef.cpp.

5897{
5898 m_docEnumValues=value;
5899}

References m_docEnumValues.

◆ setEnumBaseType()

void MemberDefImpl::setEnumBaseType ( const QCString & type)
overridevirtual

Implements MemberDefMutable.

Definition at line 6020 of file memberdef.cpp.

6021{
6022 m_enumBaseType = type;
6023}

References m_enumBaseType.

◆ setEnumClassScope()

void MemberDefImpl::setEnumClassScope ( ClassDef * cd)
overridevirtual

Implements MemberDefMutable.

Definition at line 5889 of file memberdef.cpp.

5890{
5891 m_classDef = cd;
5894}

References m_classDef, m_isConstructorCached, and m_isLinkableCached.

◆ setEnumScope()

void MemberDefImpl::setEnumScope ( MemberDef * md,
bool livesInsideEnum = FALSE )
overridevirtual

Implements MemberDefMutable.

Definition at line 4373 of file memberdef.cpp.

4374{
4375 m_enumScope=md;
4377 if (md->getGroupDef())
4378 {
4379 m_group = md->getGroupDef();
4380 m_grouppri = md->getGroupPri();
4385 }
4386}
virtual bool getGroupHasDocs() const =0
virtual GroupDef * getGroupDef()=0
virtual int getGroupStartLine() const =0
virtual Grouping::GroupPri_t getGroupPri() const =0
virtual QCString getGroupFileName() const =0
bool livesInsideEnum() const override

References MemberDef::getGroupDef(), MemberDef::getGroupFileName(), MemberDef::getGroupHasDocs(), MemberDef::getGroupPri(), MemberDef::getGroupStartLine(), livesInsideEnum(), m_enumScope, m_group, m_groupFileName, m_groupHasDocs, m_grouppri, m_groupStartLine, m_isLinkableCached, and m_livesInsideEnum.

◆ setExplicitExternal()

void MemberDefImpl::setExplicitExternal ( bool b,
const QCString & df,
int line,
int column )
overridevirtual

Implements MemberDefMutable.

Definition at line 5919 of file memberdef.cpp.

5920{
5921 m_explExt=b;
5922 if (b)
5923 {
5924 setDeclFile(df,line,column);
5925 }
5926 else
5927 {
5928 setDefFile(df,line,column);
5929 }
5930}
void setDefFile(const QCString &df, int defLine, int defColumn) override
void setDeclFile(const QCString &df, int line, int column) override

References m_explExt, setDeclFile(), and DefinitionMixin< MemberDefMutable >::setDefFile().

◆ setFileDef()

void MemberDefImpl::setFileDef ( FileDef * fd)
overridevirtual

Implements MemberDefMutable.

Definition at line 5783 of file memberdef.cpp.

5784{
5785 m_fileDef=fd;
5789}

References m_fileDef, m_isConstructorCached, m_isDestructorCached, and m_isLinkableCached.

◆ setFormalTemplateArguments()

void MemberDefImpl::setFormalTemplateArguments ( const ArgumentList & al)
overridevirtual

Implements MemberDefMutable.

Definition at line 5970 of file memberdef.cpp.

5971{
5973}

References m_formalTemplateArguments.

◆ setFromAnonymousMember()

void MemberDefImpl::setFromAnonymousMember ( MemberDef * m)
overridevirtual

Implements MemberDefMutable.

Definition at line 5954 of file memberdef.cpp.

5955{
5956 m_annMemb=m;
5957}

References m_annMemb.

◆ setFromAnonymousScope()

void MemberDefImpl::setFromAnonymousScope ( bool b)
overridevirtual

Implements MemberDefMutable.

Definition at line 5949 of file memberdef.cpp.

5950{
5951 m_annScope=b;
5952}

References m_annScope.

◆ setGroupAlias()

void MemberDefImpl::setGroupAlias ( const MemberDef * md)
overridevirtual

Implements MemberDefMutable.

Definition at line 5980 of file memberdef.cpp.

5981{
5982 m_groupAlias = md;
5983}

References m_groupAlias.

◆ setGroupDef()

void MemberDefImpl::setGroupDef ( GroupDef * gd,
Grouping::GroupPri_t pri,
const QCString & fileName,
int startLine,
bool hasDocs,
MemberDef * member = nullptr )
overridevirtual

Implements MemberDefMutable.

Definition at line 4359 of file memberdef.cpp.

4362{
4363 //printf("%s MemberDefImpl::setGroupDef(%s)\n",qPrint(name()),qPrint(gd->name()));
4364 m_group=gd;
4365 m_grouppri=pri;
4366 m_groupFileName=fileName;
4367 m_groupStartLine=startLine;
4368 m_groupHasDocs=hasDocs;
4369 m_groupMember=member;
4371}

References m_group, m_groupFileName, m_groupHasDocs, m_groupMember, m_grouppri, m_groupStartLine, and m_isLinkableCached.

◆ setHidden()

void MemberDefImpl::setHidden ( bool b)
overridevirtual

Reimplemented from DefinitionMixin< MemberDefMutable >.

Definition at line 1886 of file memberdef.cpp.

1887{
1890}
void setHidden(bool b) override

References m_isLinkableCached, and DefinitionMixin< Base >::setHidden().

◆ setInbodyDocumentation()

void MemberDefImpl::setInbodyDocumentation ( const QCString & d,
const QCString & docFile,
int docLine )
overridevirtual

Set the documentation that was found inside the body of an item. If there was already some documentation set, the new documentation will be appended.

Reimplemented from DefinitionMixin< MemberDefMutable >.

Definition at line 1880 of file memberdef.cpp.

1881{
1884}
virtual int inbodyLine() const =0
virtual QCString inbodyFile() const =0
void setInbodyDocumentation(const QCString &doc, const QCString &docFile, int docLine) override

References DefinitionMixin< MemberDefMutable >::inbodyFile(), DefinitionMixin< MemberDefMutable >::inbodyLine(), m_isLinkableCached, and DefinitionMixin< Base >::setInbodyDocumentation().

◆ setInheritsDocsFrom()

void MemberDefImpl::setInheritsDocsFrom ( const MemberDef * md)
overridevirtual

Implements MemberDefMutable.

Definition at line 5874 of file memberdef.cpp.

5875{
5876 m_docProvider = md;
5877}

References m_docProvider.

◆ setInitializer()

void MemberDefImpl::setInitializer ( const QCString & i)
overridevirtual

Implements MemberDefMutable.

Definition at line 4467 of file memberdef.cpp.

4468{
4470 int l=static_cast<int>(m_initializer.length());
4471 int p=l-1;
4472 while (p>=0 && isspace(static_cast<uint8_t>(m_initializer.at(p)))) p--;
4473 m_initializer=m_initializer.left(p+1);
4474 m_initLines=m_initializer.contains('\n');
4475 //printf("%s::setInitializer(%s)\n",qPrint(name()),qPrint(m_initializer));
4476}
const QCString & initializer() const override

References initializer(), m_initializer, and m_initLines.

◆ setMaxInitLines()

void MemberDefImpl::setMaxInitLines ( int lines)
overridevirtual

Implements MemberDefMutable.

Definition at line 5839 of file memberdef.cpp.

5840{
5841 if (lines!=-1)
5842 {
5843 m_userInitLines=lines;
5844 }
5845}

References m_userInitLines.

◆ setMemberClass()

void MemberDefImpl::setMemberClass ( ClassDef * cd)
overridevirtual

◆ setMemberDeclaration()

void MemberDefImpl::setMemberDeclaration ( MemberDef * md)
overridevirtual

Implements MemberDefMutable.

Definition at line 5995 of file memberdef.cpp.

5996{
5997 m_memDec=md;
5998}

References m_memDec.

◆ setMemberDefinition()

void MemberDefImpl::setMemberDefinition ( MemberDef * md)
overridevirtual

Implements MemberDefMutable.

Definition at line 5990 of file memberdef.cpp.

5991{
5992 m_memDef=md;
5993}

References m_memDef.

◆ setMemberGroup()

void MemberDefImpl::setMemberGroup ( MemberGroup * grp)
overridevirtual

Implements MemberDef.

Definition at line 4309 of file memberdef.cpp.

4310{
4311 m_memberGroup = grp;
4312}

References m_memberGroup.

◆ setMemberGroupId()

void MemberDefImpl::setMemberGroupId ( int id)
overridevirtual

Implements MemberDefMutable.

Definition at line 5939 of file memberdef.cpp.

5940{
5941 m_grpId=id;
5942}
virtual QCString id() const =0

References DefinitionMixin< MemberDefMutable >::id(), and m_grpId.

◆ setMemberSpecifiers()

void MemberDefImpl::setMemberSpecifiers ( TypeSpecifier s)
overridevirtual

Implements MemberDefMutable.

Definition at line 5802 of file memberdef.cpp.

5803{
5804 m_memSpec=s;
5805}

References m_memSpec.

◆ setMemberType()

void MemberDefImpl::setMemberType ( MemberType t)
overridevirtual

Implements MemberDefMutable.

Definition at line 5772 of file memberdef.cpp.

5773{
5774 m_mtype=t;
5776}

References m_isLinkableCached, and m_mtype.

◆ setModuleDef()

void MemberDefImpl::setModuleDef ( ModuleDef * mod)
overridevirtual

Implements MemberDefMutable.

Definition at line 5791 of file memberdef.cpp.

5792{
5793 m_moduleDef=mod;
5794}

References m_moduleDef.

◆ setNamespace()

void MemberDefImpl::setNamespace ( NamespaceDef * nd)
overridevirtual

Implements MemberDefMutable.

Definition at line 4396 of file memberdef.cpp.

4397{
4398 m_nspace=nd;
4399 setOuterScope(nd);
4400}

References m_nspace, and DefinitionMixin< MemberDefMutable >::setOuterScope().

◆ setProtection()

void MemberDefImpl::setProtection ( Protection p)
overridevirtual

Implements MemberDefMutable.

Definition at line 5796 of file memberdef.cpp.

5797{
5798 m_prot=p;
5800}

References m_isLinkableCached, and m_prot.

◆ setPrototype()

void MemberDefImpl::setPrototype ( bool p,
const QCString & df,
int line,
int column )
overridevirtual

Implements MemberDefMutable.

Definition at line 5906 of file memberdef.cpp.

5907{
5908 m_proto=p;
5909 if (p)
5910 {
5911 setDeclFile(df,line,column);
5912 }
5913 else
5914 {
5915 setDefFile(df,line,column);
5916 }
5917}

References m_proto, setDeclFile(), and DefinitionMixin< MemberDefMutable >::setDefFile().

◆ setReadAccessor()

void MemberDefImpl::setReadAccessor ( const QCString & r)
overridevirtual

Implements MemberDefMutable.

Definition at line 5847 of file memberdef.cpp.

5848{
5849 m_read=r;
5850}

References m_read.

◆ setReimplements()

void MemberDefImpl::setReimplements ( MemberDef * md)
overridevirtual

Implements MemberDefMutable.

Definition at line 1565 of file memberdef.cpp.

1566{
1567 m_redefines = md;
1568}

References m_redefines.

◆ setRelatedAlso()

void MemberDefImpl::setRelatedAlso ( ClassDef * cd)
overridevirtual

Implements MemberDefMutable.

Definition at line 5884 of file memberdef.cpp.

5885{
5886 m_relatedAlso=cd;
5887}

References m_relatedAlso.

◆ setRequiresClause()

void MemberDefImpl::setRequiresClause ( const QCString & req)
overridevirtual

Implements MemberDefMutable.

Definition at line 6030 of file memberdef.cpp.

6031{
6032 m_requiresClause = req;
6033}

References m_requiresClause.

◆ setSectionList()

void MemberDefImpl::setSectionList ( const Definition * container,
const MemberList * sl )
overridevirtual

Implements MemberDefMutable.

Definition at line 4544 of file memberdef.cpp.

4545{
4546 //printf("MemberDefImpl::setSectionList(%s,%p) name=%s\n",qPrint(d->name()),sl,qPrint(name()));
4547 m_sectionMap.emplace(container,sl);
4548}

References m_sectionMap.

◆ setTagInfo()

void MemberDefImpl::setTagInfo ( const TagInfo * i)
overridevirtual

Implements MemberDefMutable.

Definition at line 4977 of file memberdef.cpp.

4978{
4979 if (ti)
4980 {
4981 //printf("%s: Setting tag name=%s anchor=%s\n",qPrint(name()),qPrint(ti->tagName),qPrint(ti->anchor));
4982 m_anc=ti->anchor;
4983 setReference(ti->tagName);
4985 }
4986}
void setReference(const QCString &r) override
QCString stripExtension(const QCString &fName)
Definition util.cpp:5265

References TagInfo::anchor, TagInfo::fileName, m_anc, m_explicitOutputFileBase, DefinitionMixin< MemberDefMutable >::setReference(), stripExtension(), and TagInfo::tagName.

◆ setTemplateMaster()

void MemberDefImpl::setTemplateMaster ( MemberDef * mt)
overridevirtual

Implements MemberDefMutable.

Definition at line 5964 of file memberdef.cpp.

5965{
5968}

References m_isLinkableCached, and m_templateMaster.

◆ setTemplateSpecialization()

void MemberDefImpl::setTemplateSpecialization ( bool b)
overridevirtual

Implements MemberDefMutable.

Definition at line 5857 of file memberdef.cpp.

5858{
5859 m_tspec=b;
5860}

References m_tspec.

◆ setType()

void MemberDefImpl::setType ( const QCString & t)
overridevirtual

Implements MemberDefMutable.

Definition at line 4878 of file memberdef.cpp.

4879{
4880 m_type = t;
4881}

References m_type.

◆ setTypeConstraints()

void MemberDefImpl::setTypeConstraints ( const ArgumentList & al)
overridevirtual

Implements MemberDefMutable.

Definition at line 4873 of file memberdef.cpp.

4874{
4875 m_typeConstraints = al;
4876}

References m_typeConstraints.

◆ setVhdlSpecifiers()

void MemberDefImpl::setVhdlSpecifiers ( VhdlSpecifier s)
overridevirtual

Implements MemberDefMutable.

Definition at line 5807 of file memberdef.cpp.

5808{
5809 m_vhdlSpec=s;
5810}

References m_vhdlSpec.

◆ setWriteAccessor()

void MemberDefImpl::setWriteAccessor ( const QCString & w)
overridevirtual

Implements MemberDefMutable.

Definition at line 5852 of file memberdef.cpp.

5853{
5854 m_write=w;
5855}

References m_write.

◆ sourceRefName()

QCString MemberDefImpl::sourceRefName ( ) const
overridevirtual

Implements MemberDef.

Definition at line 1631 of file memberdef.cpp.

1632{
1633 QCString n = name();
1634 QCString s = getScopeString();
1635
1636 if (!s.isEmpty())
1637 {
1638 n.prepend(s+"::");
1639 }
1640 else if (isStatic() && getFileDef())
1641 {
1642 n.prepend(getFileDef()->name()+":");
1643 }
1644 if (isCallable())
1645 {
1646 n.append(argsString());
1647 }
1648 return n;
1649}
bool isCallable() const override
QCString getScopeString() const override
QCString & append(char c)
Definition qcstring.h:381

References QCString::append(), argsString(), getFileDef(), getScopeString(), isCallable(), QCString::isEmpty(), isStatic(), DefinitionMixin< MemberDefMutable >::name(), and QCString::prepend().

◆ templateArguments()

const ArgumentList & MemberDefImpl::templateArguments ( ) const
overridevirtual

Implements MemberDef.

Definition at line 5622 of file memberdef.cpp.

5623{
5624 return m_tArgList;
5625}

References m_tArgList.

◆ templateMaster()

const MemberDef * MemberDefImpl::templateMaster ( ) const
overridevirtual

Implements MemberDef.

Definition at line 5703 of file memberdef.cpp.

5704{
5705 return m_templateMaster;
5706}

References m_templateMaster.

Referenced by _computeLinkableInProject(), getOutputFileBase(), and getReference().

◆ typeConstraints()

const ArgumentList & MemberDefImpl::typeConstraints ( ) const
overridevirtual

Implements MemberDef.

Definition at line 6309 of file memberdef.cpp.

6310{
6311 return m_typeConstraints;
6312}

References m_typeConstraints.

◆ typeString()

QCString MemberDefImpl::typeString ( ) const
overridevirtual

Implements MemberDef.

Definition at line 5020 of file memberdef.cpp.

5021{
5022 return m_type;
5023}

References m_type.

Referenced by _computeIsDestructor(), warnIfUndocumentedParams(), and writeTagFile().

◆ virtualness()

Specifier MemberDefImpl::virtualness ( int count = 0) const
overridevirtual

Implements MemberDef.

Definition at line 4550 of file memberdef.cpp.

4551{
4552 if (count>25)
4553 {
4555 "Internal inconsistency: recursion detected in overload relation for member %s!"
4556 ,qPrint(name())
4557 );
4558 return Specifier::Normal;
4559 }
4560 Specifier v = m_virt;
4561 const MemberDef *rmd = reimplements();
4562 while (rmd && v==Specifier::Normal)
4563 {
4565 rmd = rmd->reimplements();
4566 }
4567 return v;
4568}
virtual const MemberDef * reimplements() const =0

References DefinitionMixin< MemberDefMutable >::getDefFileName(), DefinitionMixin< MemberDefMutable >::getDefLine(), m_virt, DefinitionMixin< MemberDefMutable >::name(), Normal, qPrint(), MemberDef::reimplements(), reimplements(), Virtual, MemberDef::virtualness(), and warn.

Referenced by getLabels().

◆ visibleInIndex()

bool MemberDefImpl::visibleInIndex ( ) const
overridevirtual

Implements MemberDef.

Definition at line 4140 of file memberdef.cpp.

4141{
4142 bool hideUndocMembers = Config_getBool(HIDE_UNDOC_MEMBERS);
4143 bool extractStatic = Config_getBool(EXTRACT_STATIC);
4144 return (!isAnonymous() &&
4145 (!hideUndocMembers || hasDocumentation()) &&
4146 (!isStatic() || extractStatic) &&
4147 isLinkable()
4148 );
4149}
bool isLinkable() const override

References Config_getBool, hasDocumentation(), DefinitionMixin< MemberDefMutable >::isAnonymous(), isLinkable(), and isStatic().

◆ warnIfUndocumented()

void MemberDefImpl::warnIfUndocumented ( ) const
overridevirtual

Implements MemberDef.

Definition at line 4068 of file memberdef.cpp.

4069{
4070 /*
4071 * Removed bug_303020:
4072 * if (m_memberGroup) return;
4073 */
4074 const ClassDef *cd = getClassDef();
4075 const NamespaceDef *nd = getNamespaceDef();
4076 const FileDef *fd = getFileDef();
4077 const GroupDef *gd = getGroupDef();
4078 const Definition *d=nullptr;
4079 QCString t;
4080 if (cd)
4081 {
4082 t=cd->compoundTypeString();
4083 d=cd;
4084 }
4085 else if (nd)
4086 {
4087 t=nd->compoundTypeString();
4088 d=nd;
4089 }
4090 else if (gd)
4091 {
4092 t="group";
4093 d=gd;
4094 }
4095 else
4096 {
4097 t="file";
4098 d=fd;
4099 }
4100 bool extractAll = Config_getBool(EXTRACT_ALL);
4101
4102 //printf("%s:warnIfUndoc: hasUserDocs=%d isFriendClass=%d protection=%d isRef=%d isDel=%d\n",
4103 // qPrint(name()),
4104 // hasUserDocumentation(),isFriendClass(),protectionLevelVisible(m_prot),isReference(),isDeleted());
4105 if ((!hasUserDocumentation() && !extractAll) &&
4106 !isFriendClass() &&
4107 name().find('@')==-1 && d && d->name().find('@')==-1 &&
4110 !isReference() && !isDeleted()
4111 )
4112 {
4113 SrcLangExt lang = getLanguage();
4114 QCString sep = getLanguageSpecificSeparator(lang,TRUE);
4115 warn_undoc(getDefFileName(),getDefLine(),"Member %s%s (%s) of %s %s is not documented.",
4117 qPrint(substitute(d->name(),"::",sep)));
4118 }
4119 else if (!hasDetailedDescription())
4120 {
4122 }
4123
4124 // if it is an enum, we check that its members are documented
4125 if (!extractAll && isEnumerate() && Config_getBool(WARN_IF_UNDOC_ENUM_VAL))
4126 {
4127 for (const auto &fmd : enumFieldList())
4128 {
4129 if (!fmd->isLinkableInProject())
4130 {
4131 SrcLangExt lang = getLanguage();
4132 QCString sep = getLanguageSpecificSeparator(lang,TRUE);
4133 warn(fmd->getDefFileName(),fmd->getDefLine(), "Documentation for enum member '%s%s%s' is missing.",
4134 qPrint(qualifiedName()),qPrint(sep),qPrint(fmd->name()));
4135 }
4136 }
4137 }
4138}
virtual QCString compoundTypeString() const =0
Returns the type of compound as a string.
void warnIfUndocumentedParams() const override
QCString memberTypeName() const override
bool hasUserDocumentation() const override
bool _isAnonymousBitField() const
bool isDeleted() const override
virtual QCString compoundTypeString() const =0
#define warn_undoc(file, line, fmt,...)
Definition message.h:64

References _isAnonymousBitField(), argsString(), ClassDef::compoundTypeString(), NamespaceDef::compoundTypeString(), Config_getBool, enumFieldList(), QCString::find(), getClassDef(), DefinitionMixin< MemberDefMutable >::getDefFileName(), DefinitionMixin< MemberDefMutable >::getDefLine(), getFileDef(), getGroupDef(), DefinitionMixin< MemberDefMutable >::getLanguage(), getLanguageSpecificSeparator(), getNamespaceDef(), hasDetailedDescription(), hasUserDocumentation(), isDeleted(), isEnumerate(), isFriendClass(), isReference(), m_prot, memberTypeName(), Definition::name(), DefinitionMixin< MemberDefMutable >::name(), protectionLevelVisible(), qPrint(), qualifiedName(), substitute(), TRUE, warn, warn_undoc, and warnIfUndocumentedParams().

Referenced by writeDeclaration().

◆ warnIfUndocumentedParams()

void MemberDefImpl::warnIfUndocumentedParams ( ) const
overridevirtual

Implements MemberDef.

Definition at line 4229 of file memberdef.cpp.

4230{
4231 QCString returnType = typeString();
4232 bool isFortran = getLanguage()==SrcLangExt::Fortran;
4233 bool isFortranSubroutine = isFortran && returnType.find("subroutine")!=-1;
4234
4235 bool isVoidReturn = returnType=="void" || returnType.endsWith(" void");
4236 if (!isVoidReturn && (returnType=="auto" || returnType.endsWith(" auto")))
4237 {
4238 const ArgumentList &defArgList=isDocsForDefinition() ? argumentList() : declArgumentList();
4239 if (!defArgList.trailingReturnType().isEmpty())
4240 {
4241 QCString strippedTrailingReturn = stripTrailingReturn(defArgList.trailingReturnType());
4242 isVoidReturn = (strippedTrailingReturn=="void") || (strippedTrailingReturn.endsWith(" void"));
4243 }
4244 }
4245 if (!Config_getBool(EXTRACT_ALL) &&
4246 Config_getBool(WARN_IF_UNDOCUMENTED) &&
4247 Config_getBool(WARN_NO_PARAMDOC) &&
4248 isFunction() &&
4249 !isDeleted() &&
4250 !isReference() &&
4252 {
4254 {
4256 "parameters of member %s are not documented",
4258 }
4260 hasDocumentation() && !returnType.isEmpty() &&
4261 !( // not one of the cases where nothing is returned
4262 isVoidReturn || // void return type
4263 isFortranSubroutine || // fortran subroutine
4264 isConstructor() || // a constructor
4265 isDestructor() // or destructor
4266 )
4267 )
4268 {
4270 "return type of member %s is not documented",
4272 }
4273 }
4274 if (Config_getBool(WARN_IF_DOC_ERROR) &&
4276 (isVoidReturn || // void return type
4277 isFortranSubroutine || // fortran subroutine
4278 isConstructor() || // a constructor
4279 isDestructor())) // or destructor
4280 {
4281 warn_doc_error(docFile(),docLine(),"found documented return type for %s that does not return anything",
4283 }
4284}
QCString trailingReturnType() const
Definition arguments.h:107
static bool suppressDocWarnings
Definition doxygen.h:132
bool isDocsForDefinition() const override
bool endsWith(const char *s) const
Definition qcstring.h:509
#define warn_doc_error(file, line, fmt,...)
Definition message.h:74

References argumentList(), Config_getBool, declArgumentList(), DefinitionMixin< MemberDefMutable >::docFile(), DefinitionMixin< MemberDefMutable >::docLine(), QCString::endsWith(), QCString::find(), Fortran, DefinitionMixin< MemberDefMutable >::getLanguage(), hasDocumentation(), isConstructor(), isDeleted(), isDestructor(), isDocsForDefinition(), QCString::isEmpty(), isFunction(), isReference(), m_hasDocumentedParams, m_hasDocumentedReturnType, qPrint(), qualifiedName(), stripTrailingReturn(), Doxygen::suppressDocWarnings, ArgumentList::trailingReturnType(), typeString(), and warn_doc_error.

Referenced by warnIfUndocumented(), and writeDocumentation().

◆ writeDeclaration()

void MemberDefImpl::writeDeclaration ( OutputList & ol,
const ClassDef * cd,
const NamespaceDef * nd,
const FileDef * fd,
const GroupDef * gd,
const ModuleDef * mod,
bool inGroup,
int indentLevel,
const ClassDef * inheritFrom = nullptr,
const QCString & inheritId = QCString() ) const
overridevirtual

init.isEmpty() && initLines==0 && // one line initializer

Implements MemberDef.

Definition at line 2221 of file memberdef.cpp.

2224{
2225 //printf("> %s MemberDefImpl::writeDeclaration() inGroup=%d inheritId=%s\n",qPrint(qualifiedName()),inGroup,qPrint(inheritId));
2226
2227 // hide enum value, since they appear already as part of the enum, unless they
2228 // are explicitly grouped.
2229 if (!inGroup && m_mtype==MemberType::EnumValue) return;
2230
2231 const Definition *d=nullptr;
2232 ASSERT (cd!=nullptr || nd!=nullptr || fd!=nullptr || gd!=nullptr || mod!=nullptr); // member should belong to something
2233 if (cd) d=cd;
2234 else if (nd) d=nd;
2235 else if (mod) d=mod;
2236 else if (fd) d=fd;
2237 else d=gd;
2238 if (d==gd) // see bug 753608
2239 {
2240 if (getClassDef()) d = getClassDef();
2241 else if (getNamespaceDef()) d = getNamespaceDef();
2242 else if (getFileDef()) d = getFileDef();
2243 }
2244 else if (d==fd) // see issue #9850, namespace member can be shown in file scope as well
2245 {
2246 if (getNamespaceDef()) d = getNamespaceDef();
2247 }
2248 if (d==nullptr)
2249 {
2250 err("No context could be derived for member '%s'\n",qPrint(name()));
2251 return; // should not happen
2252 }
2253
2254 QCString cname = d->name();
2255 QCString cdname = d->displayName();
2256 QCString cfname = getOutputFileBase();
2257
2258 // search for the last anonymous scope in the member type
2259 ClassDef *annoClassDef=getClassDefOfAnonymousType();
2260
2262
2263 // start a new member declaration
2264 bool isAnonType = annoClassDef || m_annMemb || m_annEnumType;
2268 ol.startMemberItem(anchor(), anonType, inheritId);
2269
2270 // If there is no detailed description we need to write the anchor here.
2271 bool detailsVisible = hasDetailedDescription();
2272 bool writeAnchor = (inGroup || getGroupDef()==nullptr) && // only write anchors for member that have no details and are
2273 !detailsVisible && !m_annMemb && // rendered inside the group page or are not grouped at all
2274 inheritId.isEmpty();
2275 if (writeAnchor)
2276 {
2277 QCString doxyArgs=argsString();
2278 QCString doxyName=name();
2279 if (!cname.isEmpty())
2280 {
2282 }
2283 ol.startDoxyAnchor(cfname,cname,anchor(),doxyName,doxyArgs);
2284 ol.addLabel(cfname,anchor());
2285 }
2286
2287 if (!detailsVisible)
2288 {
2289 ol.pushGeneratorState();
2293 ol.docify("\n");
2294 ol.popGeneratorState();
2295 }
2296
2297 if (annoClassDef || m_annMemb)
2298 {
2299 for (int j=0;j<indentLevel;j++)
2300 {
2302 }
2303 }
2304
2305 // *** write template lists
2306 if (m_tArgList.hasParameters() && getLanguage()==SrcLangExt::Cpp)
2307 {
2308 if (!isAnonType) ol.startMemberTemplateParams();
2310 if (!isAnonType) ol.endMemberTemplateParams(anchor(),inheritId);
2311 }
2312
2313
2314 // *** write type
2315 QCString ltype(m_type);
2317 {
2318 ltype.prepend("typedef ");
2319 }
2320 if (isTypeAlias())
2321 {
2322 ltype="using";
2323 }
2324 // strip 'friend' keyword from ltype
2325 ltype.stripPrefix("friend ");
2326 static const reg::Ex r(R"(@\d+)");
2327 reg::Match match;
2328 std::string stype = ltype.str();
2329 bool endAnonScopeNeeded=FALSE;
2330 if (reg::search(stype,match,r)) // member has an anonymous type
2331 {
2332 int i = static_cast<int>(match.position());
2333 int l = static_cast<int>(match.length());
2334 //printf("annoClassDef=%p annMemb=%p scopeName='%s' anonymous='%s'\n",
2335 // annoClassDef,annMemb,qPrint(cname),qPrint(ltype.mid(i,l)));
2336
2337 if (annoClassDef) // type is an anonymous compound
2338 {
2339 int ir=i+l;
2340 //printf("<<<<<<<<<<<<<<\n");
2341 ol.startAnonTypeScope(indentLevel);
2342 annoClassDef->writeDeclaration(ol,m_annMemb,inGroup,indentLevel+1,inheritedFrom,inheritId);
2343 //printf(">>>>>>>>>>>>>> startMemberItem(2)\n");
2345 ol.startMemberItem(anchor(),anonType,inheritId);
2346 for (int j=0;j< indentLevel;j++)
2347 {
2349 }
2350 QCString varName=ltype.right(ltype.length()-ir).stripWhiteSpace();
2351 //printf(">>>>>> ltype='%s' varName='%s'\n",qPrint(ltype),qPrint(varName));
2352 ol.docify("}");
2353 if (varName.isEmpty() && isAnonymous())
2354 {
2355 ol.docify(";");
2356 }
2357 else if (!varName.isEmpty() && (varName.at(0)=='*' || varName.at(0)=='&'))
2358 {
2359 ol.docify(" ");
2360 ol.docify(varName);
2361 }
2362 endAnonScopeNeeded=TRUE;
2363 }
2364 else
2365 {
2366 if (getAnonymousEnumType()) // type is an anonymous enum
2367 {
2368 linkifyText(TextGeneratorOLImpl(ol), // out
2369 d, // scope
2370 getBodyDef(), // fileScope
2371 this, // self
2372 ltype.left(i), // text
2373 FALSE // autoBreak
2374 );
2375 getAnonymousEnumType()->writeEnumDeclaration(ol,cd,nd,fd,gd,mod);
2376 //ol+=*getAnonymousEnumType()->enumDecl();
2377 linkifyText(TextGeneratorOLImpl(ol),d,getFileDef(),this,ltype.right(ltype.length()-i-l),TRUE);
2378 }
2379 else
2380 {
2381 ltype = ltype.left(i) + " { ... } " + removeAnonymousScopes(ltype.right(ltype.length()-i-l));
2382 linkifyText(TextGeneratorOLImpl(ol), // out
2383 d, // scope
2384 getBodyDef(), // fileScope
2385 this, // self
2386 ltype, // text
2387 FALSE // autoBreak
2388 );
2389 }
2390 }
2391 }
2392 else if (ltype=="@") // rename type from enum values
2393 {
2394 ltype="";
2395 }
2396 else
2397 {
2398 if (isObjCMethod())
2399 {
2400 ltype.prepend("(");
2401 ltype.append(")");
2402 }
2403 linkifyText(TextGeneratorOLImpl(ol), // out
2404 d, // scope
2405 getBodyDef(), // fileScope
2406 this, // self
2407 ltype, // text
2408 FALSE // autoBreak
2409 );
2410 }
2411 bool htmlOn = ol.isEnabled(OutputType::Html);
2412 if (htmlOn && !ltype.isEmpty())
2413 {
2415 }
2416 if (!ltype.isEmpty()) ol.docify(" ");
2417 if (htmlOn)
2418 {
2420 }
2421
2422 if (m_annMemb)
2423 {
2424 ol.pushGeneratorState();
2427 ol.popGeneratorState();
2428 }
2429 else
2430 {
2431 ol.insertMemberAlign(m_tArgList.hasParameters());
2432 }
2433
2434 // *** write name
2435 if (!isAnonymous() && !_isAnonymousBitField()) // hide anonymous stuff
2436 {
2437 bool extractPrivateVirtual = Config_getBool(EXTRACT_PRIV_VIRTUAL);
2438 bool extractStatic = Config_getBool(EXTRACT_STATIC);
2439 MemberDefMutable *annMemb = toMemberDefMutable(m_annMemb);
2440 bool visibleIfPrivate = (protectionLevelVisible(protection()) ||
2444 extractPrivateVirtual && hasDocumentation()
2445 ));
2446 //printf("Member name=`%s gd=%p md->groupDef=%p inGroup=%d isLinkable()=%d hasDocumentation=%d\n",qPrint(name()),gd,getGroupDef(),inGroup,isLinkable(),hasDocumentation());
2447 if (!name().isEmpty() && // name valid
2448 (hasDetailedDescription() || isReference()) && // has docs
2449 visibleIfPrivate &&
2450 !(isStatic() && getClassDef()==nullptr && !extractStatic) // hidden due to static-ness
2451 )
2452 {
2453 if (annMemb)
2454 {
2455 //printf("anchor=%s ann_anchor=%s\n",anchor(),annMemb->anchor());
2456 annMemb->writeLink(ol,
2457 annMemb->getClassDef(),
2458 annMemb->getNamespaceDef(),
2459 annMemb->getFileDef(),
2460 annMemb->getGroupDef(),
2461 annMemb->getModuleDef());
2462 }
2463 else
2464 {
2465 //printf("writeLink %s->%d\n",qPrint(name),hasDocumentation());
2466 const ClassDef *rcd = cd;
2467 if (isReference() && getClassDef()) rcd = getClassDef();
2468 writeLink(ol,rcd,nd,fd,gd,mod);
2469 }
2470 }
2471 else if (isDocumentedFriendClass())
2472 // if the member is an undocumented friend declaration for some class,
2473 // then maybe we can link to the class
2474 {
2475 writeLink(ol,getClass(name()),nullptr,nullptr,nullptr,nullptr);
2476 }
2477 else
2478 // there is a brief member description and brief member
2479 // descriptions are enabled or there is no detailed description.
2480 {
2481 const ClassDef *rcd = cd;
2482 if (isReference() && getClassDef()) rcd = getClassDef();
2483 writeLink(ol,rcd,nd,fd,gd,mod,TRUE);
2484 }
2485 }
2486
2487 // *** write arguments
2488 if (!argsString().isEmpty() && !isObjCMethod())
2489 {
2490 if (!isDefine() && !isTypedef()) ol.writeString(" ");
2491 linkifyText(TextGeneratorOLImpl(ol), // out
2492 d, // scope
2493 getBodyDef(), // fileScope
2494 this, // self
2495 isDefine() ?
2496 substitute(argsString(),",",", ") :
2497 isTypedef() ?
2498 substitute(argsString(),")(",") (") :
2500 m_annMemb!=nullptr, // autoBreak
2501 TRUE, // external
2502 FALSE, // keepSpaces
2503 indentLevel
2504 );
2505 }
2506
2507 // *** write bitfields
2508 if (!m_bitfields.isEmpty()) // add bitfields
2509 {
2510 linkifyText(TextGeneratorOLImpl(ol),d,getBodyDef(),this,m_bitfields);
2511 }
2512 else if (hasOneLineInitializer()
2513 //!init.isEmpty() && initLines==0 && // one line initializer
2514 //((maxInitLines>0 && userInitLines==-1) || userInitLines>0) // enabled by default or explicitly
2515 ) // add initializer
2516 {
2517 if (isTypeAlias()) // using statement
2518 {
2519 ol.writeString(" = ");
2520 linkifyText(TextGeneratorOLImpl(ol),d,getBodyDef(),this,m_initializer.simplifyWhiteSpace());
2521 }
2522 else if (!isDefine())
2523 {
2524 //ol.writeString(" = ");
2525 ol.writeString(" ");
2526 linkifyText(TextGeneratorOLImpl(ol),d,getBodyDef(),this,m_initializer.simplifyWhiteSpace());
2527 }
2528 else
2529 {
2531 linkifyText(TextGeneratorOLImpl(ol),d,getBodyDef(),this,m_initializer);
2532 }
2533 }
2534
2535
2537 {
2538 ol.startTypewriter();
2539 ol.docify(" [implementation]");
2540 ol.endTypewriter();
2541 }
2542
2543 bool extractPrivate = Config_getBool(EXTRACT_PRIVATE);
2544
2545 if (isProperty() && (isSettable() || isGettable() ||
2548 {
2549 ol.writeLatexSpacing();
2550 ol.startTypewriter();
2551 ol.docify(" [");
2552 StringVector sl;
2553
2554 if (isGettable()) sl.emplace_back("get");
2555 if (isProtectedGettable()) sl.emplace_back("protected get");
2556 if (isSettable()) sl.emplace_back("set");
2557 if (isProtectedSettable()) sl.emplace_back("protected set");
2558 if (extractPrivate)
2559 {
2560 if (isPrivateGettable()) sl.emplace_back("private get");
2561 if (isPrivateSettable()) sl.emplace_back("private set");
2562 }
2563 bool first=true;
2564 for (const auto &s : sl)
2565 {
2566 if (!first)
2567 {
2568 ol.docify(", ");
2569 }
2570 first=false;
2571 ol.docify(s.c_str());
2572 }
2573 ol.docify("]");
2574 ol.endTypewriter();
2575 }
2576
2577 if (isEvent() && (isAddable() || isRemovable() || isRaisable()))
2578 {
2579 ol.writeLatexSpacing();
2580 ol.startTypewriter();
2581 ol.docify(" [");
2582 StringVector sl;
2583 if (isAddable()) sl.emplace_back("add");
2584 if (isRemovable()) sl.emplace_back("remove");
2585 if (isRaisable()) sl.emplace_back("raise");
2586 bool first=true;
2587 for (const auto &s : sl)
2588 {
2589 if (!first)
2590 {
2591 ol.docify(", ");
2592 }
2593 first=false;
2594 ol.docify(s.c_str());
2595 }
2596 ol.docify("]");
2597 ol.endTypewriter();
2598 }
2599
2600 if (writeAnchor)
2601 {
2602 ol.endDoxyAnchor(cfname,anchor());
2603 }
2604
2605 //printf("endMember %s annoClassDef=%p annEnumType=%p\n",
2606 // qPrint(name()),annoClassDef,annEnumType);
2607 ol.endMemberItem(anonType);
2608 if (endAnonScopeNeeded)
2609 {
2610 ol.endAnonTypeScope(indentLevel);
2611 }
2612
2613 // write brief description
2614 if (!briefDescription().isEmpty() &&
2615 Config_getBool(BRIEF_MEMBER_DESC)
2616 )
2617 {
2618 auto parser { createDocParser() };
2619 auto ast { validatingParseDoc(*parser.get(),
2620 briefFile(),briefLine(),
2623 QCString(),TRUE,FALSE,Config_getBool(MARKDOWN_SUPPORT)) };
2624 if (!ast->isEmpty())
2625 {
2626 ol.startMemberDescription(anchor(),inheritId);
2627 ol.writeDoc(ast.get(),getOuterScope()?getOuterScope():d,this);
2628 if (detailsVisible) // add More.. link only when both brief and details are visible
2629 {
2630 if (!isAnonymous()) // hide anonymous stuff
2631 {
2632 ol.pushGeneratorState();
2634 ol.docify(" ");
2635 MemberDefMutable *annMemb = toMemberDefMutable(m_annMemb);
2636 if (annMemb)
2637 {
2638 ol.startTextLink(annMemb->getOutputFileBase(),annMemb->anchor());
2640 ol.endTextLink();
2641 }
2642 ol.popGeneratorState();
2643 }
2644 }
2645 // for RTF we need to add an extra empty paragraph
2646 ol.pushGeneratorState();
2648 ol.startParagraph();
2649 ol.endParagraph();
2650 ol.popGeneratorState();
2652 }
2653 }
2654
2655 ol.endMemberDeclaration(anchor(),inheritId);
2656
2658 //printf("< %s MemberDefImpl::writeDeclaration() inGroup=%d\n",qPrint(qualifiedName()),inGroup);
2659}
virtual void writeDeclaration(OutputList &ol, const MemberDef *md, bool inGroup, int indentLevel, const ClassDef *inheritedFrom, const QCString &inheritId) const =0
virtual SrcLangExt getLanguage() const =0
Returns the programming language this definition was written in.
virtual void writeEnumDeclaration(OutputList &typeDecl, const ClassDef *cd, const NamespaceDef *nd, const FileDef *fd, const GroupDef *gd, const ModuleDef *mod) const =0
virtual const FileDef * getFileDef() const =0
virtual const ModuleDef * getModuleDef() const =0
virtual const NamespaceDef * getNamespaceDef() const =0
virtual void writeLink(OutputList &ol, const ClassDef *cd, const NamespaceDef *nd, const FileDef *fd, const GroupDef *gd, const ModuleDef *md, bool onlyText=FALSE) const =0
void warnIfUndocumented() const override
bool isDefine() const override
ClassDef * getClassDefOfAnonymousType() const override
QCString excpString() const override
void _writeTemplatePrefix(OutputList &ol, const Definition *def, const ArgumentList &al, bool writeReqClause=true) const
const MemberDef * getAnonymousEnumType() const override
bool hasOneLineInitializer() const override
bool isEvent() const override
void writeLink(OutputList &ol, const ClassDef *cd, const NamespaceDef *nd, const FileDef *fd, const GroupDef *gd, const ModuleDef *mod, bool onlyText=FALSE) const override
bool isEnabled(OutputType o)
void startMemberDeclaration()
Definition outputlist.h:570
void endMemberTemplateParams(const QCString &anchor, const QCString &inheritId)
Definition outputlist.h:500
void writeLatexSpacing()
Definition outputlist.h:546
void enable(OutputType o)
void endMemberDescription()
Definition outputlist.h:568
void writeDoc(const IDocNodeAST *ast, const Definition *ctx, const MemberDef *md)
Definition outputlist.h:384
void startMemberDescription(const QCString &anchor, const QCString &inheritId=QCString(), bool typ=false)
Definition outputlist.h:566
void startAnonTypeScope(int i1)
Definition outputlist.h:490
void endTextLink()
Definition outputlist.h:445
void endMemberItem(OutputGenerator::MemberItemType type)
Definition outputlist.h:496
void pushGeneratorState()
void insertMemberAlign(bool templ=FALSE)
Definition outputlist.h:518
void popGeneratorState()
void endAnonTypeScope(int i1)
Definition outputlist.h:492
void endMemberDeclaration(const QCString &anchor, const QCString &inheritId)
Definition outputlist.h:572
void startMemberItem(const QCString &anchor, OutputGenerator::MemberItemType type, const QCString &id=QCString())
Definition outputlist.h:494
void writeNonBreakableSpace(int num)
Definition outputlist.h:625
void startTextLink(const QCString &file, const QCString &anchor)
Definition outputlist.h:443
void startMemberTemplateParams()
Definition outputlist.h:498
virtual QCString trMore()=0
IDocParserPtr createDocParser()
factory function to create a parser
Definition docparser.cpp:54
IDocNodeASTPtr validatingParseDoc(IDocParser &parserIntf, const QCString &fileName, int startLine, const Definition *ctx, const MemberDef *md, const QCString &input, bool indexWords, bool isExample, const QCString &exampleName, bool singleLine, bool linkFromIndex, bool markdownSupport)
static QCString combineArgsAndException(QCString args, QCString exception)

References _isAnonymousBitField(), _writeTemplatePrefix(), OutputList::addLabel(), Definition::anchor(), anchor(), OutputGenerator::AnonymousEnd, OutputGenerator::AnonymousStart, QCString::append(), argsString(), ASSERT, QCString::at(), briefDescription(), DefinitionMixin< MemberDefMutable >::briefFile(), DefinitionMixin< MemberDefMutable >::briefLine(), combineArgsAndException(), Config_getBool, Cpp, createDocParser(), OutputList::disable(), OutputList::disableAllBut(), Definition::displayName(), Docbook, OutputList::docify(), OutputList::enable(), OutputList::endAnonTypeScope(), OutputList::endDoxyAnchor(), OutputList::endMemberDeclaration(), OutputList::endMemberDescription(), OutputList::endMemberItem(), OutputList::endMemberTemplateParams(), OutputList::endParagraph(), OutputList::endTextLink(), OutputList::endTypewriter(), EnumValue, err, excpString(), FALSE, Friend, getAnonymousEnumType(), DefinitionMixin< MemberDefMutable >::getBodyDef(), getClass(), MemberDef::getClassDef(), getClassDef(), getClassDefOfAnonymousType(), MemberDef::getFileDef(), getFileDef(), MemberDef::getGroupDef(), getGroupDef(), DefinitionMixin< MemberDefMutable >::getLanguage(), getLanguageSpecificSeparator(), MemberDef::getModuleDef(), MemberDef::getNamespaceDef(), getNamespaceDef(), DefinitionMixin< MemberDefMutable >::getOuterScope(), Definition::getOutputFileBase(), getOutputFileBase(), hasDetailedDescription(), hasDocumentation(), hasOneLineInitializer(), Html, OutputList::insertMemberAlign(), isAddable(), DefinitionMixin< MemberDefMutable >::isAnonymous(), isDefine(), isDocumentedFriendClass(), QCString::isEmpty(), OutputList::isEnabled(), isEvent(), isFinal(), isGettable(), isImplementation(), isObjCMethod(), isObjCProperty(), isOverride(), isPrivateGettable(), isPrivateSettable(), isProperty(), isProtectedGettable(), isProtectedSettable(), isRaisable(), isReference(), isRemovable(), isSettable(), isStatic(), isTypeAlias(), isTypedef(), Latex, QCString::left(), QCString::length(), linkifyText(), m_annEnumType, m_annMemb, m_bitfields, m_initializer, m_mtype, m_prot, m_tArgList, m_type, m_virt, Man, Definition::name(), DefinitionMixin< MemberDefMutable >::name(), OutputGenerator::Normal, Normal, OutputList::parseText(), OutputList::popGeneratorState(), QCString::prepend(), Private, protection(), protectionLevelVisible(), OutputList::pushGeneratorState(), qPrint(), removeAnonymousScopes(), QCString::right(), RTF, reg::search(), Slice, OutputList::startAnonTypeScope(), OutputList::startDoxyAnchor(), OutputList::startMemberDeclaration(), OutputList::startMemberDescription(), OutputList::startMemberItem(), OutputList::startMemberTemplateParams(), OutputList::startParagraph(), OutputList::startTextLink(), OutputList::startTypewriter(), QCString::str(), QCString::stripPrefix(), QCString::stripWhiteSpace(), substitute(), OutputGenerator::Templated, theTranslator, toMemberDefMutable(), TRUE, validatingParseDoc(), warnIfUndocumented(), ClassDef::writeDeclaration(), OutputList::writeDoc(), MemberDef::writeEnumDeclaration(), OutputList::writeLatexSpacing(), MemberDef::writeLink(), writeLink(), OutputList::writeNonBreakableSpace(), and OutputList::writeString().

◆ writeDocumentation()

void MemberDefImpl::writeDocumentation ( const MemberList * ml,
int memCount,
int memTotal,
OutputList & ol,
const QCString & scName,
const Definition * container,
bool inGroup,
bool showEnumValues = FALSE,
bool showInline = FALSE ) const
overridevirtual

Writes the "detailed documentation" section of this member to all active output formats.

Implements MemberDefMutable.

Definition at line 3432 of file memberdef.cpp.

3441{
3442 // if this member is in a group find the real scope name.
3443 bool hasParameterList = FALSE;
3444
3445 //printf("MemberDefImpl::writeDocumentation(): name='%s' hasDocs='%d' containerType=%d inGroup=%d sectionLinkable=%d\n",
3446 // qPrint(name()),hasDocs,container->definitionType(),inGroup,hasDetailedDescription());
3447
3448 //if ( !hasDocs ) return;
3449 //if (isEnumValue() && !showEnumValues) return;
3450
3451 SrcLangExt lang = getLanguage();
3452 //printf("member=%s lang=%d\n",qPrint(name()),lang);
3453 bool optVhdl = lang==SrcLangExt::VHDL;
3454 QCString sep = getLanguageSpecificSeparator(lang,TRUE);
3455
3456 QCString scopeName = scName;
3457 QCString memAnchor = anchor();
3458 QCString ciname = container->displayName();
3459 const Definition *scopedContainer = container; // see bug 753608
3460 if (container->definitionType()==TypeGroup)
3461 {
3462 if (getClassDef()) { scopeName=getClassDef()->displayName(); scopedContainer=getClassDef(); }
3463 else if (getNamespaceDef()) { scopeName=getNamespaceDef()->displayName(); scopedContainer=getNamespaceDef(); }
3464 else if (getFileDef()) { scopeName=getFileDef()->displayName(); scopedContainer=getFileDef(); }
3465 ciname = (toGroupDef(container))->groupTitle();
3466 }
3467 else if (container->definitionType()==TypeFile && getNamespaceDef() && getNamespaceDef()->isLinkable())
3468 { // member is in a namespace, but is written as part of the file documentation
3469 // as well, so we need to make sure its anchor is unique (it is not really used).
3470 memAnchor.prepend("file_");
3471 }
3472
3473 QCString cname = container->name();
3474 QCString cfname = getOutputFileBase();
3475
3476 // get member name
3477 QCString doxyName=name();
3478 // prepend scope if there is any. TODO: make this optional for C only docs
3479 if (!scopeName.isEmpty())
3480 {
3481 doxyName.prepend(scopeName+sep);
3482 }
3483 QCString doxyArgs=argsString();
3484
3485 QCString ldef = definition();
3486 QCString title = name();
3487 //printf("member '%s' def='%s'\n",qPrint(name()),qPrint(ldef));
3488 if (isEnumerate())
3489 {
3490 if (title.at(0)=='@')
3491 {
3492 ldef = title = "anonymous enum";
3493 if (!m_enumBaseType.isEmpty())
3494 {
3495 ldef+=" : "+m_enumBaseType;
3496 }
3497 }
3498 else
3499 {
3500 if (lang==SrcLangExt::Cpp)
3501 {
3502 if (isEnumStruct()) ldef.prepend("struct ");
3503 else if (isStrong()) ldef.prepend("class ");
3504 }
3505 ldef.prepend("enum ");
3506 if (isSliceLocal())
3507 {
3508 ldef.prepend("local ");
3509 }
3510 }
3511 }
3512 else if (isEnumValue())
3513 {
3514 if (ldef.at(0)=='@')
3515 {
3516 ldef=ldef.mid(2);
3517 }
3518 }
3519 else if (isFunction() && !isObjCMethod())
3520 {
3521 title += "()";
3522 }
3523 if (lang == SrcLangExt::Slice)
3524 {
3525 // Remove the container scope from the member name.
3526 QCString prefix = scName + sep;
3527 int pos = ldef.findRev(prefix.data());
3528 if(pos != -1)
3529 {
3530 ldef.remove(pos, prefix.length());
3531 }
3532 }
3533 ldef.stripPrefix("constexpr ");
3534 ldef.stripPrefix("consteval ");
3535 ldef.stripPrefix("constinit ");
3536
3537 //----------------------------------------
3538
3539 ol.pushGeneratorState();
3540
3541 bool htmlEndLabelTable=FALSE;
3542 StringVector sl = getLabels(scopedContainer);
3543
3544 static const reg::Ex r(R"(@\d+)");
3545 reg::Match match;
3546 std::string sdef = ldef.str();
3547 if ((isVariable() || isTypedef()) && reg::search(sdef,match,r))
3548 {
3549 // find enum type and insert it in the definition
3550 bool found=false;
3551 for (const auto &vmd : *ml)
3552 {
3553 if (vmd->isEnumerate() && match.str()==vmd->name())
3554 {
3555 ol.startDoxyAnchor(cfname, cname, memAnchor, doxyName, doxyArgs);
3556 ol.startMemberDoc(ciname,name(),memAnchor,name(),memCount,memTotal,showInline);
3557 ol.addLabel(cfname, memAnchor);
3558 std::string prefix = match.prefix().str();
3559 std::string suffix = match.suffix().str();
3560 linkifyText(TextGeneratorOLImpl(ol),scopedContainer,getBodyDef(),this,prefix.c_str());
3561 vmd->writeEnumDeclaration(ol,getClassDef(),getNamespaceDef(),getFileDef(),getGroupDef(),getModuleDef());
3562 linkifyText(TextGeneratorOLImpl(ol),scopedContainer,getBodyDef(),this,suffix.c_str());
3563
3564 found=true;
3565 break;
3566 }
3567 }
3568 if (!found) // anonymous compound
3569 {
3570 ClassDef *annoClassDef=getClassDefOfAnonymousType();
3571 QCString typeName;
3572 if (annoClassDef) typeName=annoClassDef->compoundTypeString();
3573 ol.startDoxyAnchor(cfname, cname, memAnchor, doxyName, doxyArgs);
3574 ol.startMemberDoc(ciname,name(),memAnchor,"["+typeName+"]",memCount,memTotal,showInline);
3575 ol.addLabel(cfname, memAnchor);
3576 // search for the last anonymous compound name in the definition
3577
3579 if (reg::search(sdef,match,reAnonymous))
3580 {
3581 std::string prefix = match.prefix().str();
3582 std::string suffix = match.suffix().str();
3583 ol.docify(prefix.c_str());
3584 ol.docify(" { ... } ");
3585 linkifyText(TextGeneratorOLImpl(ol),scopedContainer,getBodyDef(),this,removeAnonymousScopes(suffix.c_str()));
3586 }
3587 else
3588 {
3589 linkifyText(TextGeneratorOLImpl(ol),scopedContainer,getBodyDef(),this,ldef);
3590 }
3591 }
3592 }
3593 else // not an enum value or anonymous compound
3594 {
3595 ol.startDoxyAnchor(cfname, cname, memAnchor, doxyName, doxyArgs);
3596 ol.startMemberDoc(ciname,name(),memAnchor,title,memCount,memTotal,showInline);
3597 ol.addLabel(cfname, memAnchor);
3598
3599 if (!m_metaData.isEmpty() && getLanguage()==SrcLangExt::Slice)
3600 {
3602 ol.docify(m_metaData);
3604 }
3605
3606 const ClassDef *cd=getClassDef();
3607 const NamespaceDef *nd=getNamespaceDef();
3608 if (!m_defTmpArgLists.empty() && lang==SrcLangExt::Cpp)
3609 // definition has explicit template parameter declarations
3610 {
3611 for (const ArgumentList &tal : m_defTmpArgLists)
3612 {
3613 if (!tal.empty())
3614 {
3616 _writeTemplatePrefix(ol,scopedContainer,tal);
3618 }
3619 }
3620 }
3621 else // definition gets it template parameters from its class
3622 // (since no definition was found)
3623 {
3624 if (cd && lang==SrcLangExt::Cpp && !isTemplateSpecialization())
3625 {
3626 for (const ArgumentList &tal : cd->getTemplateParameterLists())
3627 {
3628 if (!tal.empty())
3629 {
3631 _writeTemplatePrefix(ol,scopedContainer,tal,false);
3633 }
3634 }
3635 }
3636 if (m_tArgList.hasParameters() && lang==SrcLangExt::Cpp) // function template prefix
3637 {
3639 _writeTemplatePrefix(ol,scopedContainer,m_tArgList);
3641 }
3642 }
3643
3644 if (!sl.empty())
3645 {
3646 ol.pushGeneratorState();
3647 ol.disableAll();
3649 ol.writeString("<table class=\"mlabels\">\n");
3650 ol.writeString(" <tr>\n");
3651 ol.writeString(" <td class=\"mlabels-left\">\n");
3652 ol.popGeneratorState();
3653 htmlEndLabelTable=TRUE;
3654 }
3655
3657 if (cd && cd->isObjectiveC())
3658 {
3659 // strip scope name
3660 int ep = ldef.find("::");
3661 if (ep!=-1)
3662 {
3663 int sp=ldef.findRev(' ',ep);
3664 if (sp!=-1)
3665 {
3666 ldef=ldef.left(sp+1)+ldef.mid(ep+2);
3667 } else {
3668 ldef=ldef.mid(ep+2);
3669 }
3670 }
3671 // strip keywords
3672 int dp = ldef.find(':');
3673 if (dp!=-1)
3674 {
3675 ldef=ldef.left(dp+1);
3676 }
3677 int dl=static_cast<int>(ldef.length());
3678 //printf("start >%s<\n",qPrint(ldef));
3679 int i=dl-1;
3680 while (i>=0 && (isId(ldef.at(i)) || ldef.at(i)==':')) i--;
3681 while (i>=0 && isspace(static_cast<uint8_t>(ldef.at(i)))) i--;
3682 if (i>0)
3683 {
3684 // insert branches around the type
3685 ldef="("+ldef.left(i+1)+")"+ldef.mid(i+1);
3686 }
3687 //printf("end >%s< i=%d\n",qPrint(ldef),i);
3688 if (isStatic()) ldef.prepend("+ "); else ldef.prepend("- ");
3689 }
3690
3691 if (optVhdl)
3692 {
3693 hasParameterList=VhdlDocGen::writeVHDLTypeDocumentation(this,scopedContainer,ol);
3694 }
3695 else if (lang==SrcLangExt::Slice)
3696 {
3697 // Eliminate the self-reference.
3698 int pos = ldef.findRev(' ');
3699 if (pos<0) pos=0;
3700 if (pos>0)
3701 {
3702 linkifyText(TextGeneratorOLImpl(ol),
3703 scopedContainer,
3704 getBodyDef(),
3705 this,
3706 ldef.left(pos)
3707 );
3708 }
3709 ol.docify(ldef.mid(pos));
3710 const Definition *scope = cd;
3711 if (scope==nullptr) scope = nd;
3712 hasParameterList=writeDefArgumentList(ol,scope,this);
3713 }
3714 else
3715 {
3716 linkifyText(TextGeneratorOLImpl(ol),
3717 scopedContainer,
3718 getBodyDef(),
3719 this,
3720 substitute(ldef,"::",sep)
3721 );
3722 const Definition *scope = cd;
3723 if (scope==nullptr) scope = nd;
3724 hasParameterList=writeDefArgumentList(ol,scope,this);
3725 }
3726
3727 if (hasOneLineInitializer()) // add initializer
3728 {
3729 if (isTypeAlias())
3730 {
3731 ol.docify(" = ");
3732 QCString init = m_initializer.simplifyWhiteSpace();
3733 linkifyText(TextGeneratorOLImpl(ol),scopedContainer,getBodyDef(),this,init);
3734 }
3735 else if (!isDefine())
3736 {
3737 ol.docify(" ");
3738 QCString init = m_initializer.simplifyWhiteSpace();
3739 linkifyText(TextGeneratorOLImpl(ol),scopedContainer,getBodyDef(),this,init);
3740 }
3741 else
3742 {
3744 linkifyText(TextGeneratorOLImpl(ol),scopedContainer,getBodyDef(),this,m_initializer);
3745 }
3746 }
3747 if (!excpString().isEmpty()) // add exception list
3748 {
3749 writeExceptionList(ol,cd,this);
3750 hasParameterList=true; // call endParameterList below
3751 }
3752 }
3753
3754 ol.pushGeneratorState();
3756 if (!sl.empty())
3757 {
3758 ol.startLabels();
3759 size_t count=0;
3760 for (const auto &s : sl)
3761 {
3762 count++;
3763 ol.writeLabel(s.c_str(),count==sl.size());
3764 }
3765 ol.endLabels();
3766 }
3767 ol.popGeneratorState();
3768
3769 if (hasParameterList)
3770 {
3771 ol.endParameterList();
3772 ol.endMemberDoc(TRUE);
3773 }
3774 else
3775 {
3776 ol.endMemberDocName();
3777 ol.endMemberDoc(FALSE);
3778 }
3779
3780 // for HTML write the labels here
3781 ol.pushGeneratorState();
3782 ol.disableAll();
3784 if (htmlEndLabelTable)
3785 {
3786 ol.writeString(" </td>\n");
3787 ol.writeString(" <td class=\"mlabels-right\">\n");
3788 ol.startLabels();
3789 size_t count=0;
3790 for (const auto &s : sl)
3791 {
3792 count++;
3793 ol.writeLabel(s.c_str(),count==sl.size());
3794 }
3795 ol.endLabels();
3796 ol.writeString(" </td>\n");
3797 ol.writeString(" </tr>\n");
3798 ol.writeString("</table>\n");
3799 }
3800 ol.writeString("</div>");
3801 ol.popGeneratorState();
3802
3803
3804 ol.endDoxyAnchor(cfname,memAnchor);
3805 ol.startIndent();
3806
3807 _writeGroupInclude(ol,inGroup);
3808
3809 /* write multi-line initializer (if any) */
3811
3812 /* write brief description */
3813 QCString brief = briefDescription();
3814 if (!brief.isEmpty() &&
3815 (Config_getBool(REPEAT_BRIEF) ||
3816 !Config_getBool(BRIEF_MEMBER_DESC)
3817 )
3818 )
3819 {
3820 ol.startParagraph();
3822 scopedContainer,this,
3823 brief,FALSE,FALSE,
3824 QCString(),TRUE,FALSE,Config_getBool(MARKDOWN_SUPPORT));
3825 ol.endParagraph();
3826 }
3827
3828 /* write detailed description */
3829 QCString detailed = documentation();
3830 if (!detailed.isEmpty() ||
3831 !inbodyDocumentation().isEmpty())
3832 {
3833 // write vhdl inline code with or without option INLINE_SOURCE
3834 if (optVhdl && VhdlDocGen::isMisc(this))
3835 {
3836 VhdlDocGen::writeSource(this,ol,cname);
3837 return;
3838 }
3839 else
3840 {
3841 ol.generateDoc(docFile(),docLine(),scopedContainer,this,detailed+"\n",TRUE,FALSE,
3842 QCString(),FALSE,FALSE,Config_getBool(MARKDOWN_SUPPORT));
3843 }
3844
3845 if (!inbodyDocumentation().isEmpty())
3846 {
3848 scopedContainer,this,
3850 QCString(),FALSE,FALSE,Config_getBool(MARKDOWN_SUPPORT));
3851 }
3852 }
3853 else if (!brief.isEmpty() && (Config_getBool(REPEAT_BRIEF) || !Config_getBool(BRIEF_MEMBER_DESC)))
3854 {
3855 if (!inbodyDocumentation().isEmpty())
3856 {
3857 ol.generateDoc(inbodyFile(),inbodyLine(),scopedContainer,this,inbodyDocumentation()+"\n",TRUE,FALSE,
3858 QCString(),FALSE,FALSE,Config_getBool(MARKDOWN_SUPPORT));
3859 }
3860 }
3861
3862
3863 //printf("***** defArgList=%p name=%s docs=%s hasDocs=%d\n",
3864 // defArgList,
3865 // defArgList?defArgList->hasDocumentation():-1);
3866 const ArgumentList &docArgList = m_templateMaster ?
3867 m_templateMaster->argumentList() :
3869 ol.generateDoc(
3870 docFile(),docLine(),
3871 scopedContainer,
3872 this, // memberDef
3873 inlineArgListToDoc(docArgList), // docStr
3874 TRUE, // indexWords
3875 FALSE, // isExample
3876 QCString(),FALSE,FALSE,Config_getBool(MARKDOWN_SUPPORT)
3877 );
3878
3879 _writeEnumValues(ol,scopedContainer,cfname,ciname,cname);
3883 _writeExamples(ol);
3885 QCString scopeStr = getScopeString();
3886 writeSourceDef(ol);
3887 writeInlineCode(ol,scopeStr);
3888 if (hasReferencesRelation()) writeSourceRefs(ol,scopeStr);
3889 if (hasReferencedByRelation()) writeSourceReffedBy(ol,scopeStr);
3890 _writeCallGraph(ol);
3892
3893 ol.endIndent();
3894
3895 // enable LaTeX again
3896 //if (Config_getBool(EXTRACT_ALL) && !hasDocs) ol.enable(OutputType::Latex);
3897 ol.popGeneratorState();
3898
3900}
constexpr auto prefix
Definition anchor.cpp:44
virtual ArgumentLists getTemplateParameterLists() const =0
Returns the template parameter lists that form the template declaration of this class.
virtual QCString inbodyDocumentation() const =0
void writeSourceDef(OutputList &ol) const override
QCString inbodyFile() const override
void writeSourceRefs(OutputList &ol, const QCString &scopeName) const override
QCString briefFile() const override
void writeSourceReffedBy(OutputList &ol, const QCString &scopeName) const override
void writeInlineCode(OutputList &ol, const QCString &scopeName) const override
void _writeCallerGraph(OutputList &ol) const
void _writeEnumValues(OutputList &ol, const Definition *container, const QCString &cfname, const QCString &ciname, const QCString &cname) const
void _writeTypeConstraints(OutputList &ol) const
void _writeExamples(OutputList &ol) const
void _writeReimplementedBy(OutputList &ol) const
StringVector getLabels(const Definition *container) const override
void _writeCategoryRelation(OutputList &ol) const
bool isTemplateSpecialization() const override
void _writeMultiLineInitializer(OutputList &ol, const QCString &scopeName) const
void _writeReimplements(OutputList &ol) const
void _writeGroupInclude(OutputList &ol, bool inGroup) const
bool isVariable() const override
void _writeCallGraph(OutputList &ol) const
void endIndent()
Definition outputlist.h:585
void startMemberDoc(const QCString &clName, const QCString &memName, const QCString &anchor, const QCString &title, int memCount, int memTotal, bool showInline)
Definition outputlist.h:532
void startMemberDocName(bool align)
Definition outputlist.h:679
void endMemberDocName()
Definition outputlist.h:681
void endMemberDoc(bool hasArgs)
Definition outputlist.h:536
void startIndent()
Definition outputlist.h:583
void disableAll()
void endMemberDocPrefixItem()
Definition outputlist.h:677
void endLabels()
Definition outputlist.h:741
void endParameterList()
Definition outputlist.h:701
void writeLabel(const QCString &l, bool isLast)
Definition outputlist.h:739
void startLabels()
Definition outputlist.h:737
void startMemberDocPrefixItem()
Definition outputlist.h:675
QCString & remove(size_t index, size_t len)
Definition qcstring.h:427
bool stripPrefix(const QCString &prefix)
Definition qcstring.h:198
static bool writeVHDLTypeDocumentation(const MemberDef *mdef, const Definition *d, OutputList &ol)
static void writeSource(const MemberDef *mdef, OutputList &ol, const QCString &cname)
static bool isMisc(const MemberDef *mdef)
GroupDef * toGroupDef(Definition *d)
static void writeExceptionList(OutputList &ol, const ClassDef *cd, const MemberDef *md)
static bool writeDefArgumentList(OutputList &ol, const Definition *scope, const MemberDef *md)
bool found
Definition util.cpp:984
QCString inlineArgListToDoc(const ArgumentList &al)
Definition util.cpp:1156

References _writeCallerGraph(), _writeCallGraph(), _writeCategoryRelation(), _writeEnumValues(), _writeExamples(), _writeGroupInclude(), _writeMultiLineInitializer(), _writeReimplementedBy(), _writeReimplements(), _writeTemplatePrefix(), _writeTypeConstraints(), OutputList::addLabel(), anchor(), argsString(), QCString::at(), briefDescription(), DefinitionMixin< MemberDefMutable >::briefFile(), DefinitionMixin< MemberDefMutable >::briefLine(), ClassDef::compoundTypeString(), Config_getBool, Cpp, definition(), Definition::definitionType(), OutputList::disable(), OutputList::disableAll(), Definition::displayName(), DefinitionMixin< MemberDefMutable >::docFile(), OutputList::docify(), DefinitionMixin< MemberDefMutable >::docLine(), documentation(), ArgumentList::empty(), OutputList::enable(), OutputList::endDoxyAnchor(), OutputList::endIndent(), OutputList::endLabels(), OutputList::endMemberDoc(), OutputList::endMemberDocName(), OutputList::endMemberDocPrefixItem(), OutputList::endParagraph(), OutputList::endParameterList(), excpString(), FALSE, QCString::find(), QCString::findRev(), found, OutputList::generateDoc(), DefinitionMixin< MemberDefMutable >::getBodyDef(), getClassDef(), getClassDefOfAnonymousType(), getFileDef(), getGroupDef(), getLabels(), DefinitionMixin< MemberDefMutable >::getLanguage(), getLanguageSpecificSeparator(), getModuleDef(), getNamespaceDef(), getOutputFileBase(), getScopeString(), ClassDef::getTemplateParameterLists(), hasMultiLineInitializer(), hasOneLineInitializer(), hasReferencedByRelation(), hasReferencesRelation(), Html, DefinitionMixin< MemberDefMutable >::inbodyDocumentation(), DefinitionMixin< MemberDefMutable >::inbodyFile(), DefinitionMixin< MemberDefMutable >::inbodyLine(), init(), inlineArgListToDoc(), isDefine(), QCString::isEmpty(), isEnumerate(), isEnumStruct(), isEnumValue(), isFunction(), isId(), isLinkable(), VhdlDocGen::isMisc(), isObjCMethod(), ClassDef::isObjectiveC(), isSliceLocal(), isStatic(), isStrong(), isTemplateSpecialization(), isTypeAlias(), isTypedef(), isVariable(), QCString::left(), QCString::length(), linkifyText(), m_defArgList, m_defTmpArgLists, m_enumBaseType, m_initializer, m_metaData, m_tArgList, m_templateMaster, QCString::mid(), Definition::name(), DefinitionMixin< MemberDefMutable >::name(), OutputList::popGeneratorState(), prefix, QCString::prepend(), OutputList::pushGeneratorState(), reAnonymous, QCString::remove(), removeAnonymousScopes(), reg::search(), Slice, OutputList::startDoxyAnchor(), OutputList::startIndent(), OutputList::startLabels(), OutputList::startMemberDoc(), OutputList::startMemberDocName(), OutputList::startMemberDocPrefixItem(), OutputList::startParagraph(), QCString::str(), QCString::stripPrefix(), substitute(), toGroupDef(), TRUE, Definition::TypeFile, Definition::TypeGroup, VHDL, warnIfUndocumentedParams(), writeDefArgumentList(), writeExceptionList(), DefinitionMixin< MemberDefMutable >::writeInlineCode(), OutputList::writeLabel(), OutputList::writeNonBreakableSpace(), VhdlDocGen::writeSource(), DefinitionMixin< MemberDefMutable >::writeSourceDef(), DefinitionMixin< MemberDefMutable >::writeSourceReffedBy(), DefinitionMixin< MemberDefMutable >::writeSourceRefs(), OutputList::writeString(), and VhdlDocGen::writeVHDLTypeDocumentation().

◆ writeEnumDeclaration()

void MemberDefImpl::writeEnumDeclaration ( OutputList & typeDecl,
const ClassDef * cd,
const NamespaceDef * nd,
const FileDef * fd,
const GroupDef * gd,
const ModuleDef * mod ) const
overridevirtual

Implements MemberDef.

Definition at line 4738 of file memberdef.cpp.

4740{
4741 int enumMemCount=0;
4742
4743 uint32_t numVisibleEnumValues=0;
4744 for (const auto &fmd : m_enumFields)
4745 {
4746 if (fmd->isBriefSectionVisible()) numVisibleEnumValues++;
4747 }
4748 if (numVisibleEnumValues==0 && !isBriefSectionVisible())
4749 {
4750 return;
4751 }
4752
4753 QCString n = name();
4754 int i=n.findRev("::");
4755 if (i!=-1) n=n.right(n.length()-i-2); // strip scope (TODO: is this needed?)
4756 if (n[0]!='@') // not an anonymous enum
4757 {
4759 {
4760 //_writeTagData(compoundType);
4761 writeLink(typeDecl,cd,nd,fd,gd,mod);
4762 }
4763 else
4764 {
4765 typeDecl.startBold();
4766 typeDecl.docify(n);
4767 typeDecl.endBold();
4768 }
4769 typeDecl.writeChar(' ');
4770 }
4771 if (!m_enumBaseType.isEmpty())
4772 {
4773 typeDecl.writeChar(':');
4774 typeDecl.writeChar(' ');
4775 typeDecl.docify(m_enumBaseType);
4776 typeDecl.writeChar(' ');
4777 }
4778
4779 uint32_t enumValuesPerLine = static_cast<uint32_t>(Config_getInt(ENUM_VALUES_PER_LINE));
4780 if (numVisibleEnumValues>0 && enumValuesPerLine>0)
4781 {
4782 typeDecl.docify("{ ");
4783
4784 auto it = m_enumFields.begin();
4785 if (it!=m_enumFields.end())
4786 {
4787 const MemberDef *fmd=*it;
4788 bool fmdVisible = fmd->isBriefSectionVisible();
4789 bool first=true;
4790 while (fmd)
4791 {
4792 if (fmdVisible)
4793 {
4794 if (!first)
4795 {
4796 typeDecl.writeString(", ");
4797 }
4798 /* in html we start a new line after a number of items */
4799 if (numVisibleEnumValues>enumValuesPerLine
4800 && (enumMemCount%enumValuesPerLine)==0
4801 )
4802 {
4803 typeDecl.pushGeneratorState();
4805 typeDecl.enable(OutputType::Latex);
4806 typeDecl.enable(OutputType::Docbook);
4807 typeDecl.lineBreak();
4808 typeDecl.disable(OutputType::Latex);
4809 typeDecl.disable(OutputType::Docbook);
4810 typeDecl.writeString("&#160;&#160;");
4811 typeDecl.popGeneratorState();
4812 }
4813
4814 if (fmd->hasDocumentation()) // enum value has docs
4815 {
4816 fmd->writeLink(typeDecl,cd,nd,fd,gd,mod);
4817 }
4818 else // no docs for this enum value
4819 {
4820 typeDecl.startBold();
4821 typeDecl.docify(fmd->name());
4822 typeDecl.endBold();
4823 }
4824 if (fmd->hasOneLineInitializer()) // enum value has initializer
4825 {
4826 //typeDecl.writeString(" = ");
4827 typeDecl.writeString(" ");
4828 typeDecl.parseText(fmd->initializer());
4829 }
4830 first=false;
4831 }
4832
4833 bool prevVisible = fmdVisible;
4834 ++it;
4835 if (it!=m_enumFields.end())
4836 {
4837 fmd=*it;
4838 }
4839 else
4840 {
4841 fmd=nullptr;
4842 }
4843 if (prevVisible)
4844 {
4845 typeDecl.disable(OutputType::Man);
4846 typeDecl.writeString("\n"); // to prevent too long lines in LaTeX
4847 typeDecl.enable(OutputType::Man);
4848 enumMemCount++;
4849 }
4850 }
4851 if (numVisibleEnumValues>enumValuesPerLine)
4852 {
4853 typeDecl.pushGeneratorState();
4855 typeDecl.lineBreak();
4856 typeDecl.popGeneratorState();
4857 }
4858 }
4859 typeDecl.docify(" }");
4860 }
4861}
virtual bool hasDocumentation() const =0
virtual bool hasOneLineInitializer() const =0
virtual bool isBriefSectionVisible() const =0
virtual const QCString & initializer() const =0
bool isBriefSectionVisible() const override
void writeChar(char c)
Definition outputlist.h:530

References Config_getInt, OutputList::disable(), OutputList::disableAllBut(), Docbook, OutputList::docify(), OutputList::enable(), OutputList::endBold(), QCString::findRev(), Definition::hasDocumentation(), hasDocumentedEnumValues(), MemberDef::hasOneLineInitializer(), Html, MemberDef::initializer(), MemberDef::isBriefSectionVisible(), isBriefSectionVisible(), isLinkableInProject(), Latex, QCString::length(), OutputList::lineBreak(), m_enumBaseType, m_enumFields, Man, Definition::name(), DefinitionMixin< MemberDefMutable >::name(), OutputList::parseText(), OutputList::popGeneratorState(), OutputList::pushGeneratorState(), QCString::right(), OutputList::startBold(), OutputList::writeChar(), MemberDef::writeLink(), writeLink(), and OutputList::writeString().

◆ writeLink()

void MemberDefImpl::writeLink ( OutputList & ol,
const ClassDef * cd,
const NamespaceDef * nd,
const FileDef * fd,
const GroupDef * gd,
const ModuleDef * mod,
bool onlyText = FALSE ) const
overridevirtual

Implements MemberDef.

Definition at line 1921 of file memberdef.cpp.

1924{
1925 SrcLangExt lang = getLanguage();
1926 bool hideScopeNames = Config_getBool(HIDE_SCOPE_NAMES);
1927 QCString sep = getLanguageSpecificSeparator(lang,TRUE);
1928 QCString n = name();
1929 const ClassDef *classDef = getClassDef();
1930 const ModuleDef *moduleDef = getModuleDef();
1931 const NamespaceDef *nspace = getNamespaceDef();
1932 if (!hideScopeNames)
1933 {
1934 if (m_enumScope && m_livesInsideEnum && getGroupDef()!=nullptr)
1935 {
1936 n.prepend(m_enumScope->displayName()+sep);
1937 }
1938 if (classDef && gd && !isRelated())
1939 {
1940 n.prepend(classDef->displayName()+sep);
1941 }
1942 else if (nspace && (gd || fd || moduleDef))
1943 {
1944 n.prepend(nspace->displayName()+sep);
1945 }
1946 }
1947
1948 if (isObjCMethod())
1949 {
1950 if (isStatic()) ol.docify("+ "); else ol.docify("- ");
1951 }
1952 if (!onlyText && (isLinkable() || hasDetailedDescription())) // write link
1953 {
1954 if (m_mtype==MemberType::EnumValue && getGroupDef()==nullptr && // enum value is not grouped
1955 getEnumScope() && getEnumScope()->getGroupDef()) // but its container is
1956 {
1957 const GroupDef *enumValGroup = getEnumScope()->getGroupDef();
1958 ol.writeObjectLink(enumValGroup->getReference(),
1959 enumValGroup->getOutputFileBase(),
1960 anchor(),n);
1961 }
1962 else
1963 {
1965 }
1966 }
1967 else // write only text
1968 {
1969 ol.startBold();
1970 ol.docify(n);
1971 ol.endBold();
1972 }
1973}

References anchor(), Config_getBool, Definition::displayName(), OutputList::docify(), OutputList::endBold(), EnumValue, getClassDef(), getEnumScope(), MemberDef::getGroupDef(), getGroupDef(), DefinitionMixin< MemberDefMutable >::getLanguage(), getLanguageSpecificSeparator(), getModuleDef(), getNamespaceDef(), Definition::getOutputFileBase(), getOutputFileBase(), Definition::getReference(), getReference(), hasDetailedDescription(), isLinkable(), isObjCMethod(), isRelated(), isStatic(), m_enumScope, m_livesInsideEnum, m_mtype, DefinitionMixin< MemberDefMutable >::name(), QCString::prepend(), OutputList::startBold(), TRUE, and OutputList::writeObjectLink().

Referenced by writeDeclaration(), and writeEnumDeclaration().

◆ writeMemberDocSimple()

void MemberDefImpl::writeMemberDocSimple ( OutputList & ol,
const Definition * container ) const
overridevirtual

Implements MemberDefMutable.

Definition at line 3932 of file memberdef.cpp.

3933{
3934 Definition *scope = getOuterScope();
3935 QCString doxyName = name();
3936 QCString doxyArgs = argsString();
3937 QCString memAnchor = anchor();
3938 QCString cfname = getOutputFileBase();
3939 QCString cname;
3940 if (scope) cname = scope->name();
3941 if (doxyName.at(0)=='@')
3942 {
3943 doxyName="__unnamed__";
3944 }
3945
3946 ClassDef *cd = m_accessorClass;
3947 //printf("===> %s::anonymous: %s\n",qPrint(name()),cd?qPrint(cd->name()):"<none>");
3948
3949 if (container && container->definitionType()==Definition::TypeClass &&
3950 !(toClassDef(container))->isJavaEnum())
3951 {
3953 ol.startDoxyAnchor(cfname,cname,memAnchor,doxyName,doxyArgs);
3954 ol.addLabel(cfname,memAnchor);
3955
3956 QCString ts = fieldType();
3957
3958 if (isFunctionPtr())
3959 ts = m_type + m_args;
3960
3961 if (cd) // cd points to an anonymous struct pointed to by this member
3962 // so we add a link to it from the type column.
3963 {
3964 int i=0;
3965 const char *prefixes[] = { "struct ","union ","class ", nullptr };
3966 const char **p = prefixes;
3967 while (*p)
3968 {
3969 int l=qstrlen(*p);
3970 if (ts.left(l)==*p)
3971 {
3972 ol.writeString(*p);
3973 i=l;
3974 }
3975 p++;
3976 }
3978 cd->getOutputFileBase(),
3979 cd->anchor(),ts.mid(i));
3980 }
3981 else // use standard auto linking
3982 {
3983 linkifyText(TextGeneratorOLImpl(ol), // out
3984 scope, // scope
3985 getBodyDef(), // fileScope
3986 this, // self
3987 ts // text
3988 );
3989 }
3990 ol.endDoxyAnchor(cfname,memAnchor);
3992 }
3993
3995 ol.docify(doxyName);
3996 if (isVariable() && !argsString().isEmpty() && !isObjCMethod() && !isFunctionPtr())
3997 {
3998 linkifyText(TextGeneratorOLImpl(ol),getOuterScope(),getBodyDef(),this,argsString());
3999 }
4000 if (!m_bitfields.isEmpty()) // add bitfields
4001 {
4002 linkifyText(TextGeneratorOLImpl(ol),getOuterScope(),getBodyDef(),this,m_bitfields);
4003 }
4004 if (hasOneLineInitializer() && !isDefine())
4005 {
4006 ol.writeString(" ");
4007 linkifyText(TextGeneratorOLImpl(ol),getOuterScope(),getBodyDef(),this,m_initializer.simplifyWhiteSpace());
4008 }
4010
4012
4013 QCString brief = briefDescription();
4014 QCString detailed = documentation();
4015
4016 /* write brief description */
4017 if (!brief.isEmpty())
4018 {
4020 getOuterScope()?getOuterScope():container,this,
4021 brief,FALSE,FALSE,
4022 QCString(),TRUE,FALSE,Config_getBool(MARKDOWN_SUPPORT));
4023 }
4024
4025 /* write detailed description */
4026 if (!detailed.isEmpty())
4027 {
4028 if (!brief.isEmpty())
4029 {
4031 ol.lineBreak();
4033 }
4035 getOuterScope()?getOuterScope():container,this,
4036 detailed+"\n",FALSE,FALSE,
4037 QCString(),FALSE,FALSE,Config_getBool(MARKDOWN_SUPPORT));
4038
4039 }
4040
4041 ol.endInlineMemberDoc();
4042}
QCString fieldType() const override
bool isFunctionPtr() const override
void endInlineMemberType()
Definition outputlist.h:727
void startInlineMemberType()
Definition outputlist.h:725
void startInlineMemberDoc()
Definition outputlist.h:733
void endInlineMemberDoc()
Definition outputlist.h:735
void startInlineMemberName()
Definition outputlist.h:729
void endInlineMemberName()
Definition outputlist.h:731
uint32_t qstrlen(const char *str)
Returns the length of string str, or 0 if a null pointer is passed.
Definition qcstring.h:58

References OutputList::addLabel(), Definition::anchor(), anchor(), argsString(), QCString::at(), briefDescription(), DefinitionMixin< MemberDefMutable >::briefFile(), DefinitionMixin< MemberDefMutable >::briefLine(), Config_getBool, Definition::definitionType(), OutputList::disable(), DefinitionMixin< MemberDefMutable >::docFile(), OutputList::docify(), DefinitionMixin< MemberDefMutable >::docLine(), documentation(), OutputList::enable(), OutputList::endDoxyAnchor(), OutputList::endInlineMemberDoc(), OutputList::endInlineMemberName(), OutputList::endInlineMemberType(), FALSE, fieldType(), OutputList::generateDoc(), DefinitionMixin< MemberDefMutable >::getBodyDef(), DefinitionMixin< MemberDefMutable >::getOuterScope(), Definition::getOutputFileBase(), getOutputFileBase(), Definition::getReference(), hasOneLineInitializer(), Html, isDefine(), QCString::isEmpty(), isFunctionPtr(), isObjCMethod(), isVariable(), QCString::left(), OutputList::lineBreak(), linkifyText(), m_accessorClass, m_args, m_bitfields, m_initializer, m_type, QCString::mid(), Definition::name(), DefinitionMixin< MemberDefMutable >::name(), qstrlen(), OutputList::startDoxyAnchor(), OutputList::startInlineMemberDoc(), OutputList::startInlineMemberName(), OutputList::startInlineMemberType(), toClassDef(), TRUE, Definition::TypeClass, OutputList::writeObjectLink(), and OutputList::writeString().

◆ writeTagFile()

void MemberDefImpl::writeTagFile ( TextStream & tagFile,
bool useQualifiedName,
bool showNamespaceMembers ) const
overridevirtual

Implements MemberDefMutable.

Definition at line 4570 of file memberdef.cpp.

4571{
4572 if (!isLinkableInProject()) return;
4573 if (!showNamespaceMembers && getNamespaceDef()) return;
4574 tagFile << " <member kind=\"";
4575 switch (m_mtype)
4576 {
4577 case MemberType::Define: tagFile << "define"; break;
4578 case MemberType::EnumValue: tagFile << "enumvalue"; break;
4579 case MemberType::Property: tagFile << "property"; break;
4580 case MemberType::Event: tagFile << "event"; break;
4581 case MemberType::Variable: tagFile << "variable"; break;
4582 case MemberType::Typedef: tagFile << "typedef"; break;
4583 case MemberType::Enumeration: tagFile << "enumeration"; break;
4584 case MemberType::Function: tagFile << "function"; break;
4585 case MemberType::Signal: tagFile << "signal"; break;
4586 case MemberType::Friend: tagFile << "friend"; break;
4587 case MemberType::DCOP: tagFile << "dcop"; break;
4588 case MemberType::Slot: tagFile << "slot"; break;
4589 case MemberType::Interface: tagFile << "interface"; break;
4590 case MemberType::Service: tagFile << "service"; break;
4591 case MemberType::Sequence: tagFile << "sequence"; break;
4592 case MemberType::Dictionary: tagFile << "dictionary"; break;
4593 }
4595 {
4596 tagFile << "\" protection=\"";
4597 if (m_prot==Protection::Protected) tagFile << "protected";
4598 else if (m_prot==Protection::Package) tagFile << "package";
4599 else /* Private */ tagFile << "private";
4600 }
4602 {
4603 tagFile << "\" virtualness=\"";
4604 if (m_virt==Specifier::Virtual) tagFile << "virtual";
4605 else /* Pure */ tagFile << "pure";
4606 }
4607 if (isStatic())
4608 {
4609 tagFile << "\" static=\"yes";
4610 }
4611 tagFile << "\">\n";
4612 if (typeString()!=QCString("@"))
4613 {
4614 tagFile << " <type>" << convertToXML(typeString()) << "</type>\n";
4615 }
4616 QCString fn = getOutputFileBase();
4618 tagFile << " <name>" << convertToXML(useQualifiedName ? qualifiedName() : name()) << "</name>\n";
4619 tagFile << " <anchorfile>" << convertToXML(fn) << "</anchorfile>\n";
4620 tagFile << " <anchor>" << convertToXML(anchor()) << "</anchor>\n";
4621 QCString idStr = id();
4622 if (!idStr.isEmpty())
4623 {
4624 tagFile << " <clangid>" << convertToXML(idStr) << "</clangid>\n";
4625 }
4626 tagFile << " <arglist>" << convertToXML(argsString()) << "</arglist>\n";
4627 if (isStrong())
4628 {
4629 for (const auto &fmd : m_enumFields)
4630 {
4631 if (!fmd->isReference())
4632 {
4633 tagFile << " <enumvalue file=\"" << convertToXML(fn);
4634 tagFile << "\" anchor=\"" << convertToXML(fmd->anchor());
4635 idStr = fmd->id();
4636 if (!idStr.isEmpty())
4637 {
4638 tagFile << "\" clangid=\"" << convertToXML(idStr);
4639 }
4640 tagFile << "\">" << convertToXML(fmd->name()) << "</enumvalue>\n";
4641 }
4642 }
4643 }
4644 writeDocAnchorsToTagFile(tagFile);
4645 tagFile << " </member>\n";
4646}
void writeDocAnchorsToTagFile(TextStream &fs) const override
QCString convertToXML(const QCString &s, bool keepEntities)
Definition util.cpp:4266
void addHtmlExtensionIfMissing(QCString &fName)
Definition util.cpp:5243

References addHtmlExtensionIfMissing(), anchor(), argsString(), convertToXML(), DCOP, Define, Dictionary, Enumeration, EnumValue, Event, Friend, Function, getNamespaceDef(), getOutputFileBase(), DefinitionMixin< MemberDefMutable >::id(), Interface, QCString::isEmpty(), isLinkableInProject(), isStatic(), isStrong(), m_enumFields, m_mtype, m_prot, m_virt, DefinitionMixin< MemberDefMutable >::name(), Normal, Package, Property, Protected, Public, qualifiedName(), Sequence, Service, Signal, Slot, Typedef, typeString(), Variable, Virtual, and DefinitionMixin< MemberDefMutable >::writeDocAnchorsToTagFile().

Member Data Documentation

◆ m_accessorClass

ClassDef* MemberDefImpl::m_accessorClass = nullptr
private

Definition at line 415 of file memberdef.cpp.

Referenced by accessorClass(), deepCopy(), init(), setAccessorType(), and writeMemberDocSimple().

◆ m_accessorType

QCString MemberDefImpl::m_accessorType
private

Definition at line 414 of file memberdef.cpp.

Referenced by deepCopy(), fieldType(), and setAccessorType().

◆ m_anc

QCString MemberDefImpl::m_anc
private

Definition at line 418 of file memberdef.cpp.

Referenced by anchor(), deepCopy(), setAnchor(), and setTagInfo().

◆ m_annEnumType

const MemberDef* MemberDefImpl::m_annEnumType = nullptr
private

◆ m_annMemb

MemberDef* MemberDefImpl::m_annMemb = nullptr
private

◆ m_annScope

bool MemberDefImpl::m_annScope = false
private

◆ m_args

QCString MemberDefImpl::m_args
private

◆ m_bitfields

QCString MemberDefImpl::m_bitfields
private

◆ m_cachedAnonymousType

ClassDef* MemberDefImpl::m_cachedAnonymousType = nullptr
mutableprivate

Definition at line 452 of file memberdef.cpp.

Referenced by deepCopy(), getClassDefOfAnonymousType(), and init().

◆ m_cachedResolvedType

QCString MemberDefImpl::m_cachedResolvedType
private

Definition at line 470 of file memberdef.cpp.

Referenced by cacheTypedefVal(), deepCopy(), and getCachedResolvedTypedef().

◆ m_cachedTypedefTemplSpec

QCString MemberDefImpl::m_cachedTypedefTemplSpec
private

Definition at line 469 of file memberdef.cpp.

Referenced by cacheTypedefVal(), deepCopy(), and getCachedTypedefTemplSpec().

◆ m_cachedTypedefValue

const ClassDef* MemberDefImpl::m_cachedTypedefValue = nullptr
private

Definition at line 468 of file memberdef.cpp.

Referenced by cacheTypedefVal(), deepCopy(), getCachedTypedefVal(), and init().

◆ m_category

ClassDef* MemberDefImpl::m_category = nullptr
private

Definition at line 508 of file memberdef.cpp.

Referenced by _writeCategoryRelation(), category(), deepCopy(), and setCategory().

◆ m_categoryRelation

const MemberDef* MemberDefImpl::m_categoryRelation = nullptr
private

◆ m_classDef

ClassDef* MemberDefImpl::m_classDef = nullptr
private

◆ m_decl

QCString MemberDefImpl::m_decl
private

Definition at line 421 of file memberdef.cpp.

Referenced by declaration(), deepCopy(), and init().

◆ m_declArgList

◆ m_declColumn

int MemberDefImpl::m_declColumn = -1
private

Definition at line 512 of file memberdef.cpp.

Referenced by deepCopy(), getDeclColumn(), and setDeclFile().

◆ m_declFileName

QCString MemberDefImpl::m_declFileName
private

Definition at line 510 of file memberdef.cpp.

Referenced by deepCopy(), getDeclFileName(), and setDeclFile().

◆ m_declLine

int MemberDefImpl::m_declLine = -1
private

Definition at line 511 of file memberdef.cpp.

Referenced by deepCopy(), getDeclLine(), and setDeclFile().

◆ m_def

QCString MemberDefImpl::m_def
private

Definition at line 417 of file memberdef.cpp.

Referenced by createTemplateInstanceMember(), deepCopy(), definition(), and setDefinition().

◆ m_defArgList

◆ m_defTmpArgLists

ArgumentLists MemberDefImpl::m_defTmpArgLists
private

◆ m_detailedDescriptionCachedValue

bool MemberDefImpl::m_detailedDescriptionCachedValue = false
mutableprivate

Definition at line 494 of file memberdef.cpp.

Referenced by deepCopy(), and hasDetailedDescription().

◆ m_docEnumValues

bool MemberDefImpl::m_docEnumValues = false
private

◆ m_docProvider

const MemberDef* MemberDefImpl::m_docProvider = nullptr
private

Definition at line 473 of file memberdef.cpp.

Referenced by deepCopy(), inheritsDocsFrom(), init(), and setInheritsDocsFrom().

◆ m_docsForDefinition

bool MemberDefImpl::m_docsForDefinition = false
private

Definition at line 505 of file memberdef.cpp.

Referenced by deepCopy(), init(), isDocsForDefinition(), and setDocsForDefinition().

◆ m_enumBaseType

QCString MemberDefImpl::m_enumBaseType
private

◆ m_enumFields

MemberVector MemberDefImpl::m_enumFields
private

◆ m_enumScope

const MemberDef* MemberDefImpl::m_enumScope = nullptr
private

◆ m_examples

ExampleList MemberDefImpl::m_examples
private

Definition at line 411 of file memberdef.cpp.

Referenced by _writeExamples(), addExample(), deepCopy(), getExamples(), and hasExamples().

◆ m_exception

QCString MemberDefImpl::m_exception
private

Definition at line 426 of file memberdef.cpp.

Referenced by createTemplateInstanceMember(), deepCopy(), excpString(), and init().

◆ m_explExt

bool MemberDefImpl::m_explExt = false
private

Definition at line 502 of file memberdef.cpp.

Referenced by deepCopy(), init(), isExternal(), and setExplicitExternal().

◆ m_explicitOutputFileBase

QCString MemberDefImpl::m_explicitOutputFileBase
private

Definition at line 476 of file memberdef.cpp.

Referenced by deepCopy(), getOutputFileBase(), and setTagInfo().

◆ m_extraTypeChars

QCString MemberDefImpl::m_extraTypeChars
private

Definition at line 428 of file memberdef.cpp.

Referenced by deepCopy(), extraTypeChars(), and init().

◆ m_fileDef

FileDef* MemberDefImpl::m_fileDef = nullptr
private

Definition at line 395 of file memberdef.cpp.

Referenced by deepCopy(), getFileDef(), getFileDef(), init(), moveTo(), and setFileDef().

◆ m_formalTemplateArguments

std::optional<ArgumentList> MemberDefImpl::m_formalTemplateArguments
private

Definition at line 446 of file memberdef.cpp.

Referenced by deepCopy(), formalTemplateArguments(), and setFormalTemplateArguments().

◆ m_group

GroupDef* MemberDefImpl::m_group = nullptr
private

Definition at line 461 of file memberdef.cpp.

Referenced by deepCopy(), getGroupDef(), getGroupDef(), init(), setEnumScope(), and setGroupDef().

◆ m_groupAlias

const MemberDef* MemberDefImpl::m_groupAlias = nullptr
private

Definition at line 458 of file memberdef.cpp.

Referenced by anchor(), deepCopy(), getGroupAlias(), init(), and setGroupAlias().

◆ m_groupFileName

QCString MemberDefImpl::m_groupFileName
private

Definition at line 463 of file memberdef.cpp.

Referenced by deepCopy(), getGroupFileName(), setEnumScope(), and setGroupDef().

◆ m_groupHasDocs

bool MemberDefImpl::m_groupHasDocs = false
private

Definition at line 504 of file memberdef.cpp.

Referenced by deepCopy(), getGroupHasDocs(), setEnumScope(), and setGroupDef().

◆ m_groupMember

MemberDef* MemberDefImpl::m_groupMember = nullptr
private

Definition at line 465 of file memberdef.cpp.

Referenced by anchor(), deepCopy(), init(), and setGroupDef().

◆ m_grouppri

Grouping::GroupPri_t MemberDefImpl::m_grouppri = Grouping::GROUPING_AUTO_DEF
private

Definition at line 462 of file memberdef.cpp.

Referenced by deepCopy(), getGroupPri(), setEnumScope(), and setGroupDef().

◆ m_groupStartLine

int MemberDefImpl::m_groupStartLine = 0
private

Definition at line 464 of file memberdef.cpp.

Referenced by deepCopy(), getGroupStartLine(), setEnumScope(), and setGroupDef().

◆ m_grpId

int MemberDefImpl::m_grpId = 0
private

Definition at line 459 of file memberdef.cpp.

Referenced by deepCopy(), getMemberGroupId(), init(), and setMemberGroupId().

◆ m_hasCallerGraph

bool MemberDefImpl::m_hasCallerGraph = false
private

◆ m_hasCallGraph

bool MemberDefImpl::m_hasCallGraph = false
private

Definition at line 496 of file memberdef.cpp.

Referenced by _hasVisibleCallGraph(), deepCopy(), hasCallGraph(), init(), and overrideCallGraph().

◆ m_hasDetailedDescriptionCached

bool MemberDefImpl::m_hasDetailedDescriptionCached = false
mutableprivate

Definition at line 493 of file memberdef.cpp.

Referenced by deepCopy(), and hasDetailedDescription().

◆ m_hasDocumentedParams

bool MemberDefImpl::m_hasDocumentedParams = false
mutableprivate

Definition at line 484 of file memberdef.cpp.

Referenced by deepCopy(), detectUndocumentedParams(), init(), and warnIfUndocumentedParams().

◆ m_hasDocumentedReturnType

bool MemberDefImpl::m_hasDocumentedReturnType = false
mutableprivate

Definition at line 485 of file memberdef.cpp.

Referenced by deepCopy(), detectUndocumentedParams(), init(), and warnIfUndocumentedParams().

◆ m_hasEnumValues

bool MemberDefImpl::m_hasEnumValues = false
private

Definition at line 501 of file memberdef.cpp.

Referenced by deepCopy(), hasEnumValues(), init(), and overrideEnumValues().

◆ m_hasInlineSource

bool MemberDefImpl::m_hasInlineSource = false
private

Definition at line 500 of file memberdef.cpp.

Referenced by deepCopy(), hasInlineSource(), init(), and overrideInlineSource().

◆ m_hasReferencedByRelation

bool MemberDefImpl::m_hasReferencedByRelation = false
private

◆ m_hasReferencesRelation

bool MemberDefImpl::m_hasReferencesRelation = false
private

Definition at line 499 of file memberdef.cpp.

Referenced by deepCopy(), hasReferencesRelation(), init(), and overrideReferencesRelation().

◆ m_implOnly

bool MemberDefImpl::m_implOnly = false
private

Definition at line 482 of file memberdef.cpp.

Referenced by deepCopy(), init(), isImplementation(), and makeImplementationDetail().

◆ m_initializer

◆ m_initLines

int MemberDefImpl::m_initLines = 0
private

◆ m_isConstructorCached

uint8_t MemberDefImpl::m_isConstructorCached
private

◆ m_isDestructorCached

uint8_t MemberDefImpl::m_isDestructorCached
private

Definition at line 392 of file memberdef.cpp.

Referenced by _computeIsDestructor(), isDestructor(), MemberDefImpl(), and setFileDef().

◆ m_isDMember

bool MemberDefImpl::m_isDMember = false
private

Definition at line 486 of file memberdef.cpp.

Referenced by _computeIsConstructor(), _computeIsDestructor(), deepCopy(), and init().

◆ m_isLinkableCached

◆ m_isTypedefValCached

bool MemberDefImpl::m_isTypedefValCached = false
private

◆ m_livesInsideEnum

bool MemberDefImpl::m_livesInsideEnum = false
private

Definition at line 400 of file memberdef.cpp.

Referenced by deepCopy(), init(), livesInsideEnum(), setEnumScope(), and writeLink().

◆ m_maxInitLines

int MemberDefImpl::m_maxInitLines = 0
private

Definition at line 436 of file memberdef.cpp.

Referenced by deepCopy(), hasMultiLineInitializer(), hasOneLineInitializer(), and init().

◆ m_memberGroup

MemberGroup* MemberDefImpl::m_memberGroup = nullptr
private

Definition at line 460 of file memberdef.cpp.

Referenced by deepCopy(), getMemberGroup(), init(), and setMemberGroup().

◆ m_memDec

MemberDef* MemberDefImpl::m_memDec = nullptr
private

Definition at line 408 of file memberdef.cpp.

Referenced by deepCopy(), init(), memberDeclaration(), and setMemberDeclaration().

◆ m_memDef

MemberDef* MemberDefImpl::m_memDef = nullptr
private

Definition at line 407 of file memberdef.cpp.

Referenced by deepCopy(), init(), memberDefinition(), and setMemberDefinition().

◆ m_memSpec

◆ m_metaData

QCString MemberDefImpl::m_metaData
private

Definition at line 450 of file memberdef.cpp.

Referenced by deepCopy(), init(), and writeDocumentation().

◆ m_moduleDef

ModuleDef* MemberDefImpl::m_moduleDef = nullptr
private

Definition at line 397 of file memberdef.cpp.

Referenced by deepCopy(), getModuleDef(), init(), moveTo(), and setModuleDef().

◆ m_mtype

◆ m_nspace

NamespaceDef* MemberDefImpl::m_nspace = nullptr
private

Definition at line 396 of file memberdef.cpp.

Referenced by deepCopy(), getNamespaceDef(), getNamespaceDef(), init(), moveTo(), and setNamespace().

◆ m_numberOfFlowKW

int MemberDefImpl::m_numberOfFlowKW = 0
private

Definition at line 513 of file memberdef.cpp.

Referenced by deepCopy(), incrementFlowKeyWordCount(), and numberOfFlowKeyWords().

◆ m_prot

◆ m_proto

bool MemberDefImpl::m_proto = false
private

Definition at line 489 of file memberdef.cpp.

Referenced by deepCopy(), init(), isPrototype(), and setPrototype().

◆ m_qualifiers

StringVector MemberDefImpl::m_qualifiers
private

Definition at line 479 of file memberdef.cpp.

Referenced by addQualifiers(), deepCopy(), getLabels(), and getQualifiers().

◆ m_read

QCString MemberDefImpl::m_read
private

Definition at line 424 of file memberdef.cpp.

Referenced by deepCopy(), getReadAccessor(), and setReadAccessor().

◆ m_redefinedBy

MemberVector MemberDefImpl::m_redefinedBy
private

Definition at line 405 of file memberdef.cpp.

Referenced by deepCopy(), insertReimplementedBy(), isReimplementedBy(), and reimplementedBy().

◆ m_redefines

MemberDef* MemberDefImpl::m_redefines = nullptr
private

Definition at line 404 of file memberdef.cpp.

Referenced by deepCopy(), init(), reimplements(), and setReimplements().

◆ m_related

Relationship MemberDefImpl::m_related = Relationship::Member
private

◆ m_relatedAlso

ClassDef* MemberDefImpl::m_relatedAlso = nullptr
private

Definition at line 409 of file memberdef.cpp.

Referenced by deepCopy(), init(), relatedAlso(), and setRelatedAlso().

◆ m_requiresClause

QCString MemberDefImpl::m_requiresClause
private

◆ m_sectionMap

std::map<const Definition *,const MemberList *> MemberDefImpl::m_sectionMap
private

Definition at line 456 of file memberdef.cpp.

Referenced by deepCopy(), getSectionList(), and setSectionList().

◆ m_stat

bool MemberDefImpl::m_stat = false
private

◆ m_tArgList

ArgumentList MemberDefImpl::m_tArgList
private

◆ m_templateMaster

◆ m_tspec

bool MemberDefImpl::m_tspec = false
private

Definition at line 503 of file memberdef.cpp.

Referenced by deepCopy(), init(), isTemplateSpecialization(), and setTemplateSpecialization().

◆ m_type

◆ m_typeConstraints

ArgumentList MemberDefImpl::m_typeConstraints
private

◆ m_userInitLines

int MemberDefImpl::m_userInitLines = 0
private

◆ m_vhdlSpec

VhdlSpecifier MemberDefImpl::m_vhdlSpec
private

Definition at line 434 of file memberdef.cpp.

Referenced by deepCopy(), getVhdlSpecifiers(), init(), and setVhdlSpecifiers().

◆ m_virt

◆ m_write

QCString MemberDefImpl::m_write
private

Definition at line 425 of file memberdef.cpp.

Referenced by deepCopy(), getWriteAccessor(), and setWriteAccessor().


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