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 1128 of file moduledef.cpp.

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

◆ toModuleDef() [2/2]

ModuleDef * toModuleDef ( Definition * d)

Definition at line 1122 of file moduledef.cpp.

1123{
1124 if (d==nullptr) return nullptr;
1125 return (typeid(*d)==typeid(ModuleDefImpl)) ? static_cast<ModuleDef*>(d) : nullptr;
1126}

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