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

#include <src/moduledef.h>

+ Inheritance diagram for ModuleLinkedRefMap:
+ Collaboration diagram for ModuleLinkedRefMap:

Public Member Functions

bool declVisible () const
 
void writeDeclaration (OutputList &ol, const QCString &header, bool localNames) const
 
- Public Member Functions inherited from LinkedRefMap< ModuleDef >
const ModuleDeffind (const std::string &key) const
 find an object given the key.
 
const ModuleDeffind (const QCString &key) const
 find an object given the key.
 
const ModuleDeffind (const char *key) const
 find an object given the key.
 
ModuleDeffind (const char *key)
 non-const wrapper for find() const
 
ModuleDeffind (const QCString &key)
 
ModuleDeffind (const std::string &key)
 non-const wrapper for find() const
 
bool add (const char *k, ModuleDef *obj)
 Adds an object reference to the ordered vector if it was not added already.
 
bool add (const QCString &k, ModuleDef *obj)
 
bool prepend (const char *k, ModuleDef *obj)
 Prepends an object reference to the ordered vector if it was not added already.
 
bool prepend (const QCString &key, ModuleDef *obj)
 
bool del (const QCString &key)
 Removes an object from the container and deletes it.
 
Ptroperator[] (size_t pos)
 
const Ptroperator[] (size_t pos) const
 
iterator begin ()
 
const_iterator begin () const
 
iterator end ()
 
const_iterator end () const
 
reverse_iterator rbegin ()
 
const_reverse_iterator rbegin () const
 
reverse_iterator rend ()
 
const_reverse_iterator rend () const
 
bool empty () const
 
size_t size () const
 
void clear ()
 

Additional Inherited Members

- Public Types inherited from LinkedRefMap< ModuleDef >
using Ptr
 
using Vec
 
using iterator
 
using const_iterator
 
using reverse_iterator
 
using const_reverse_iterator
 

Detailed Description

Definition at line 99 of file moduledef.h.

Member Function Documentation

◆ declVisible()

bool ModuleLinkedRefMap::declVisible ( ) const

Definition at line 1145 of file moduledef.cpp.

1146{
1147 bool hideUndocClasses = Config_getBool(HIDE_UNDOC_CLASSES);
1148 for (const auto &mod : *this)
1149 {
1150 bool isLink = mod->isLinkable();
1151 if (isLink || !hideUndocClasses)
1152 {
1153 return true;
1154 }
1155 }
1156 return false;
1157}
#define Config_getBool(name)
Definition config.h:33

References Config_getBool.

◆ writeDeclaration()

void ModuleLinkedRefMap::writeDeclaration ( OutputList & ol,
const QCString & header,
bool localNames ) const

Definition at line 1159 of file moduledef.cpp.

1160{
1161 bool found=FALSE;
1162 for (const auto &mod : *this)
1163 {
1164 toModuleDefImpl(mod)->writeDeclarationLink(ol,found,header,localNames);
1165 }
1166 if (found) ol.endMemberList();
1167}
void writeDeclarationLink(OutputList &ol, bool &found, const QCString &header, bool localNames) const
void endMemberList()
Definition outputlist.h:484
static ModuleDefImpl * toModuleDefImpl(ModuleDef *m)
#define FALSE
Definition qcstring.h:34
bool found
Definition util.cpp:984

References OutputList::endMemberList(), FALSE, found, toModuleDefImpl(), and ModuleDefImpl::writeDeclarationLink().


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