Doxygen
Loading...
Searching...
No Matches
moduledef.h File Reference
#include "definition.h"
#include "linkedmap.h"
#include "filedef.h"
+ Include dependency graph for moduledef.h:
+ This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

struct  ImportInfo
 
class  ModuleDef
 
class  ModuleLinkedMap
 
class  ModuleLinkedRefMap
 
class  ModuleList
 
class  ModuleManager
 

Typedefs

using ImportInfoList = std::vector<ImportInfo>
 
using ModuleMap = std::unordered_map<std::string,ModuleDef *>
 
using ImportInfoMap = std::unordered_map<std::string,ImportInfoList>
 

Functions

ModuleDeftoModuleDef (Definition *d)
 
const ModuleDeftoModuleDef (const Definition *d)
 

Typedef Documentation

◆ ImportInfoList

using ImportInfoList = std::vector<ImportInfo>

Definition at line 59 of file moduledef.h.

◆ ImportInfoMap

using ImportInfoMap = std::unordered_map<std::string,ImportInfoList>

Definition at line 61 of file moduledef.h.

◆ ModuleMap

using ModuleMap = std::unordered_map<std::string,ModuleDef *>

Definition at line 60 of file moduledef.h.

Function Documentation

◆ toModuleDef() [1/2]

const ModuleDef * toModuleDef ( const Definition * d)

Definition at line 1132 of file moduledef.cpp.

1133{
1134 if (d==nullptr) return nullptr;
1135 return (typeid(*d)==typeid(ModuleDefImpl)) ? static_cast<const ModuleDef*>(d) : nullptr;
1136}

◆ toModuleDef() [2/2]

ModuleDef * toModuleDef ( Definition * d)

Definition at line 1126 of file moduledef.cpp.

1127{
1128 if (d==nullptr) return nullptr;
1129 return (typeid(*d)==typeid(ModuleDefImpl)) ? static_cast<ModuleDef*>(d) : nullptr;
1130}

Referenced by getDefsNew(), ClassDefImpl::moveTo(), and MemberDefImpl::moveTo().